Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

8
LINES

< > BotCompany Repo | #1003808 // Test findOneOfTheWords

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Libraryless. Click here for Pure Java version (956L/6K/22K).

!752

p {
  assertEquals("crazy", findOneOfTheWords("the crazy girl", "crazy", "nice"));
  assertEquals("nice", findOneOfTheWords("the nice girl", "crazy", "nice"));
  assertEquals(null, findOneOfTheWords("a funny girl", "crazy", "nice"));
  print("ok");
}

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1003808
Snippet name: Test findOneOfTheWords
Eternal ID of this version: #1003808/1
Text MD5: 593b8e393114684350611635df9b865c
Transpilation MD5: 294650e4a31953da9a6a905cff92fa0b
Author: stefan
Category: javax / talking robots
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-07-27 19:33:49
Source code size: 263 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 518 / 654
Referenced in: [show references]