mirror of
https://gitlab.com/camelot/kickc.git
synced 2025-01-04 18:31:55 +00:00
Added bool min test
This commit is contained in:
parent
1ae9dbb6cf
commit
e319ec9260
@ -45,6 +45,11 @@ public class TestPrograms {
|
|||||||
AsmFragmentTemplateUsages.logUsages(log, false, false, false, false, false, false);
|
AsmFragmentTemplateUsages.logUsages(log, false, false, false, false, false, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testBoolMin() throws IOException, URISyntaxException {
|
||||||
|
compileAndCompare("bool-min");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testInlineString3() throws IOException, URISyntaxException {
|
public void testInlineString3() throws IOException, URISyntaxException {
|
||||||
try {
|
try {
|
||||||
|
11
src/test/java/dk/camelot64/kickc/test/kc/bool-min.kc
Normal file
11
src/test/java/dk/camelot64/kickc/test/kc/bool-min.kc
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
// A Minimal test of boolean variables.
|
||||||
|
// Boolean variables are bytes under the hood
|
||||||
|
// 0: false, !=0 : true
|
||||||
|
|
||||||
|
void main() {
|
||||||
|
const byte* SCREEN = $400;
|
||||||
|
boolean b = true;
|
||||||
|
if(b) {
|
||||||
|
*SCREEN = 't';
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user