mirror of
https://gitlab.com/camelot/kickc.git
synced 2025-01-02 05:30:53 +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);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testBoolMin() throws IOException, URISyntaxException {
|
||||
compileAndCompare("bool-min");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testInlineString3() throws IOException, URISyntaxException {
|
||||
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