Download Jar. Libraryless. Click here for Pure Java version (1239L/9K).
1 | !7 |
2 | |
3 | p { |
4 | assertEquals(pair("a", ll()), tok_parseFunctionCall("a()")); |
5 | assertEquals(pair("a", ll("b")), tok_parseFunctionCall("a(b)")); |
6 | assertEquals(pair("a", ll("b(c)")), tok_parseFunctionCall("a(b(c))")); |
7 | assertEquals(pair("a", ll("b(c, d)")), tok_parseFunctionCall("a(b(c, d))")); |
8 | assertEquals(pair("a", ll("b(c, d)", "e")), tok_parseFunctionCall("a(b(c, d), e)")); |
9 | assertEquals(pair("foo", ll("a", "1")), tok_parseFunctionCall("foo(a, 1)")); |
10 | assertNull(tok_parseFunctionCall("f")); |
11 | assertNull(tok_parseFunctionCall("123")); |
12 | assertNull(tok_parseFunctionCall("(f)")); |
13 | print("OK"); |
14 | } |
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: | 554 / 1385 |
Version history: | 2 change(s) |
Referenced in: | [show references] |