add tests for casting and range in macro processor

time-shift
Houtan Bastani 2019-08-07 11:30:16 -04:00
parent b33900b86c
commit ea06dfbcd5
No known key found for this signature in database
GPG Key ID: 000094FB955BE169
1 changed files with 9 additions and 1 deletions

View File

@ -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
@#echomacrovars