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.
16 lines
381 B
16 lines
381 B
10 years ago
|
project('arithmetic bidmas', 'c')
|
||
|
|
||
|
if 5 * 3 - 6 / 2 + 1 != 13
|
||
7 years ago
|
error('Arithmetic bidmas broken')
|
||
10 years ago
|
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
|