1
0
mirror of https://gitlab.com/camelot/kickc.git synced 2024-09-08 17:54:40 +00:00

Added test for issue

This commit is contained in:
jespergravgaard 2019-08-22 10:36:05 +02:00
parent 50b4d2f24c
commit 5bc38ae3c0
2 changed files with 16 additions and 0 deletions

View File

@ -36,6 +36,15 @@ public class TestPrograms {
public TestPrograms() {
}
// TODO: Fix float error message https://gitlab.com/camelot/kickc/issues/286
/*
@Test
public void testFloatErrorMessage() throws IOException, URISyntaxException {
compileAndCompare("float-error-message");
}
*/
@Test
public void testFunctionAsArray() throws IOException, URISyntaxException {
compileAndCompare("function-as-array");

View File

@ -0,0 +1,7 @@
// Tests what error message an accidental float gives
char* VIC_MEMORY = 0xd018;
void main() {
*VIC_MEMORY = 0.14;
}