diff options
Diffstat (limited to 'tests/comparison.c')
| -rw-r--r-- | tests/comparison.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/comparison.c b/tests/comparison.c new file mode 100644 index 0000000..44b7f46 --- /dev/null +++ b/tests/comparison.c @@ -0,0 +1,14 @@ +int main() { + int a = 10; + int b = 5; + int c = 10; + + int lt = a < b; + int le = a <= c; + int gt = a > b; + int ge = a >= c; + int eq = a == c; + int ne = a != b; + + return lt + le + gt + ge + eq + ne; +} |
