Download Jar. Libraryless. Click here for Pure Java version (1239L/9K).
!7 p { assertEquals(pair("a", ll()), tok_parseFunctionCall("a()")); assertEquals(pair("a", ll("b")), tok_parseFunctionCall("a(b)")); assertEquals(pair("a", ll("b(c)")), tok_parseFunctionCall("a(b(c))")); assertEquals(pair("a", ll("b(c, d)")), tok_parseFunctionCall("a(b(c, d))")); assertEquals(pair("a", ll("b(c, d)", "e")), tok_parseFunctionCall("a(b(c, d), e)")); assertEquals(pair("foo", ll("a", "1")), tok_parseFunctionCall("foo(a, 1)")); assertNull(tok_parseFunctionCall("f")); assertNull(tok_parseFunctionCall("123")); assertNull(tok_parseFunctionCall("(f)")); print("OK"); }
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1012495 |
Snippet name: | Test tok_parseFunctionCall (OK) |
Eternal ID of this version: | #1012495/3 |
Text MD5: | 118adc2d63b03e14e95d8d7d3a845406 |
Transpilation MD5: | f8feea7ecb522946baf099fab43e2ab0 |
Author: | stefan |
Category: | javax / parsing |
Type: | JavaX source code (desktop) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-12-04 00:16:31 |
Source code size: | 615 bytes / 14 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 555 / 1386 |
Version history: | 2 change(s) |
Referenced in: | -