Verified Commit ea06dfbc authored by Houtan Bastani's avatar Houtan Bastani
Browse files

add tests for casting and range in macro processor

parent b33900b8
......@@ -191,5 +191,13 @@ stoch_simul;
@#error "Numeric comparison incorrect"
@#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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment