The Meson Build System
http://mesonbuild.com/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
376 B
15 lines
376 B
project('arithmetic bidmas') |
|
|
|
if 5 * 3 - 6 / 2 + 1 != 13 |
|
error('Arithmetic bidmas broken') |
|
endif |
|
if 5 * (3 - 6 / 2) + 1 != 1 |
|
error('Arithmetic bidmas with brackets broken') |
|
endif |
|
|
|
if 5 * 12 / 2 * 3 != 90 |
|
error('Sequential multiplication and division broken') |
|
endif |
|
if 5 * (12 / (2 * 3)) != 10 |
|
error('Sequential multiplication and division with brackets broken') |
|
endif
|
|
|