Libraryless. Click here for Pure Java version (5352L/30K).
1 | svoid test_parseECJOutputForErrors() { |
2 | S text = unindentMLS([[ |
3 | ---------- |
4 | 1. ERROR in /home/stefan/JavaX-Caches/Temp/1642773472353/UserCode_1642773470538.java (at line 26) |
5 | xg.fillRect(10, 10, 10, 10); |
6 | ^^ |
7 | xg cannot be resolved |
8 | ---------- |
9 | ]]; |
10 | |
11 | var errors = parseECJOutputForErrors(text); |
12 | assertEqualsVerbose(1, l(errors)); |
13 | assertEqualsVerbose("xg cannot be resolved", first(errors).error); |
14 | assertEqualsVerbose(26, first(errors).lineNr); |
15 | assertEqualsVerbose(intRange(3, 5), first(errors).colRange); |
16 | } |
Began life as a copy of #1034084
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1034085 |
Snippet name: | test_parseECJOutputForErrors |
Eternal ID of this version: | #1034085/4 |
Text MD5: | 5101ad5e877d3bae80f62de9b66cf058 |
Transpilation MD5: | 1218e05281ee4a0abb4d5241c2f559f4 |
Author: | stefan |
Category: | javax / compiling |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-01-21 16:22:05 |
Source code size: | 558 bytes / 16 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 123 / 221 |
Version history: | 3 change(s) |
Referenced in: | [show references] |