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

12
LINES

< > BotCompany Repo | #1032664 // test_simpleCalc

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

Transpiled version (5602L) is out of date.

set flag ShuntingYardParser_debug.

svoid test_simpleCalc() {
  testFunctionValues simpleCalc(
    "1+2*3", 7.0,
    "1 + 2 * 3", 7.0,
    "-3e2", -300.0,
    " - 3e2 ", -300.0,
    "-(1+2)", -3.0,
    " - ( 1 + 2 ) ", -3.0,
  );
}

Author comment

Began life as a copy of #1032663

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1032664
Snippet name: test_simpleCalc
Eternal ID of this version: #1032664/5
Text MD5: 807bc657378e86a3884ff4c2bb2d6710
Author: stefan
Category: javax / maths
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-10-02 01:16:14
Source code size: 242 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 85 / 127
Version history: 4 change(s)
Referenced in: [show references]