Debian Codegraph @

test cases/common/64 arithmetic bidmas/meson.build

raw
1 project('arithmetic bidmas')
2
3 if 5 * 3 - 6 / 2 + 1 != 13
4 error('Arithmetic bidmas broken')
5 endif
6 if 5 * (3 - 6 / 2) + 1 != 1
7 error('Arithmetic bidmas with brackets broken')
8 endif
9
10 if 5 * 12 / 2 * 3 != 90
11 error('Sequential multiplication and division broken')
12 endif
13 if 5 * (12 / (2 * 3)) != 10
14 error('Sequential multiplication and division with brackets broken')
15 endif