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

12
LINES

< > BotCompany Repo | #1034738 // test_leftArrowScriptParseErrors

JavaX fragment (include) [tags: use-pretranspiled]

Uses 679K of libraries. Click here for Pure Java version (35532L/178K).

1  
svoid test_leftArrowScriptParseErrors() {
2  
  new GazelleV_LeftArrowScriptParser parser;
3  
  var e = assertFail(-> parser.parse("unknownIdentifier"));
4  
  var inner = innerExceptionOfType(GazelleV_LeftArrowScriptParser.UnknownObject.class, e);
5  
  assertEqualsVerbose("unknownIdentifier", inner.name);
6  
  
7  
  // missing expression after assignment
8  
  assertFail(-> parser.parse("a <-"));
9  
  
10  
  // superfluous "}"
11  
  assertFail(-> parser.parse("}");
12  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 5 computer(s): bhatertpkbcr, ekrmjmnbrukm, gjtlkbvenryc, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1034738
Snippet name: test_leftArrowScriptParseErrors
Eternal ID of this version: #1034738/3
Text MD5: 1bd83e7bb19a69db93856f88bd30480e
Transpilation MD5: 41e62ba5e7d7c77eb91f361438cd02aa
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2024-07-07 06:09:59
Source code size: 448 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 185 / 286
Version history: 2 change(s)
Referenced in: [show references]