Add tests for operators
This commit is contained in:
parent
4cd94ff462
commit
cab894a97e
6 changed files with 54 additions and 0 deletions
21
tests/generators/nim/test_operator_binary.c
Normal file
21
tests/generators/nim/test_operator_binary.c
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
int main() {
|
||||
a + b;
|
||||
a - b;
|
||||
(a * b);
|
||||
a / b;
|
||||
a % b;
|
||||
a >> b;
|
||||
a << b;
|
||||
a && b;
|
||||
a || b;
|
||||
a ^ b;
|
||||
|
||||
a < b;
|
||||
a > b;
|
||||
a <= b;
|
||||
a >= b;
|
||||
a == b;
|
||||
a != b;
|
||||
(a & b);
|
||||
a | b;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue