Skip to content
Snippets Groups Projects
Verified Commit ea06dfbc authored by Houtan Bastani's avatar Houtan Bastani
Browse files

add tests for casting and range in macro processor

parent b33900b8
Branches
No related tags found
No related merge requests found
Pipeline #1585 passed
...@@ -191,5 +191,13 @@ stoch_simul; ...@@ -191,5 +191,13 @@ stoch_simul;
@#error "Numeric comparison incorrect" @#error "Numeric comparison incorrect"
@#endif @#endif
@#if ([1] + (array)(real) "2") != [1, 2]
@#error "Cast error"
@#endif
@#if -3:-1.5:3 != [] || 3:-1:-0.1 != [3, 2, 1, 0]
@#error "Range error"
@#endif
@#echomacrovars(save) @#echomacrovars(save)
@#echomacrovars @#echomacrovars
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment