]> de.git.xonotic.org Git - xonotic/gmqcc.git/blob - tests/equality.qc
Merge branch 'master' into test-suite
[xonotic/gmqcc.git] / tests / equality.qc
1 void(string, ...) print = #1;
2 string(float) ftos = #2;
3
4 void(float a, float b) main = {
5     if (a == b) print("eq,");
6     if (a != b) print("ne,");
7     if (a >  b) print("gt,");
8     if (a <  b) print("lt,");
9     if (a >= b) print("ge,");
10     if (a <= b) print("le,");
11 };