Add logical op tests

This commit is contained in:
Mid 2025-09-13 11:20:11 +03:00
parent d0262c586e
commit 2771609049
3 changed files with 19 additions and 0 deletions

6
examples/LogicalAnd.nct Normal file
View File

@ -0,0 +1,6 @@
u16 x = 0;
u16 y = 5;
if(x && y) {
u16 z = 9;
}

View 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
View File

@ -0,0 +1,6 @@
u16 x = 0;
u16 y = 5;
if(x || y) {
u16 z = 9;
}