Transpiled version (3962L) is out of date.
1 | svoid assertJavaSourceEqualsVerbose_v2(S msg default "", S src, LS tok) { |
2 | LS tokens1 = javaTokC(src), tokens2 = codeTokens(tok); |
3 | int iDiff = indexOfDifference(tokens1, tokens2); |
4 | if (iDiff < 0) print(msg, "OK: \n" + join(tok)); |
5 | else { |
6 | print(sfu(tok)); |
7 | fail(prependWithColonSpace(msg) + "Error in token " + iDiff + " (" + get(tokens1, iDiff) + "/" + get(tokens2, iDiff) + "):\n" |
8 | + "= got =\n" |
9 | + join(tok) + "\n" |
10 | + "= expected =\n" |
11 | + src); |
12 | } |
13 | } |
Began life as a copy of #1031313
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, ekrmjmnbrukm, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1033010 |
Snippet name: | assertJavaSourceEqualsVerbose_v2 |
Eternal ID of this version: | #1033010/9 |
Text MD5: | 09e78e20b745b6d2e043160cbb01ac10 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-04-28 23:33:13 |
Source code size: | 494 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 177 / 268 |
Version history: | 8 change(s) |
Referenced in: | [show references] |