Add logical op tests
This commit is contained in:
parent
d0262c586e
commit
2771609049
6
examples/LogicalAnd.nct
Normal file
6
examples/LogicalAnd.nct
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
u16 x = 0;
|
||||||
|
u16 y = 5;
|
||||||
|
|
||||||
|
if(x && y) {
|
||||||
|
u16 z = 9;
|
||||||
|
}
|
7
examples/LogicalAndOr.nct
Normal file
7
examples/LogicalAndOr.nct
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
u16 x = 0;
|
||||||
|
u16 y = 5;
|
||||||
|
u16 z = 9;
|
||||||
|
|
||||||
|
if(x && y || z) {
|
||||||
|
u16 w = 15;
|
||||||
|
}
|
6
examples/LogicalOr.nct
Normal file
6
examples/LogicalOr.nct
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
u16 x = 0;
|
||||||
|
u16 y = 5;
|
||||||
|
|
||||||
|
if(x || y) {
|
||||||
|
u16 z = 9;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user