mirror of
https://gitlab.com/camelot/kickc.git
synced 2024-11-24 14:31:15 +00:00
Added test for issue
This commit is contained in:
parent
50b4d2f24c
commit
5bc38ae3c0
@ -36,6 +36,15 @@ public class TestPrograms {
|
|||||||
public 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
|
@Test
|
||||||
public void testFunctionAsArray() throws IOException, URISyntaxException {
|
public void testFunctionAsArray() throws IOException, URISyntaxException {
|
||||||
compileAndCompare("function-as-array");
|
compileAndCompare("function-as-array");
|
||||||
|
7
src/test/kc/float-error-message.kc
Normal file
7
src/test/kc/float-error-message.kc
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
// Tests what error message an accidental float gives
|
||||||
|
|
||||||
|
char* VIC_MEMORY = 0xd018;
|
||||||
|
|
||||||
|
void main() {
|
||||||
|
*VIC_MEMORY = 0.14;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user