1
0
mirror of https://gitlab.com/camelot/kickc.git synced 2025-04-06 15:41:05 +00:00

fixed tests

This commit is contained in:
jespergravgaard 2019-05-19 00:07:52 +02:00
parent fa6e54fb87
commit f31dc244b5
3 changed files with 2 additions and 10 deletions

View File

@ -1831,11 +1831,6 @@ public class TestPrograms {
assertError("invalid-consttype", "Constant variable has a non-matching type", false);
}
@Test
public void testValueListError() throws IOException, URISyntaxException {
assertError("valuelist-error", "Value list not resolved to word constructor");
}
@Test
public void testArrayUninitialized() throws IOException, URISyntaxException {
assertError("array-uninitialized", "Array has no declared size.");

View File

@ -2,4 +2,6 @@
void main() {
word w = 5000;
byte b = w;
const byte* screen = 0x0400;
screen[0] = b;
}

View File

@ -1,5 +0,0 @@
void main() {
word w = { -1, -1};
byte* screen = $400;
*screen = <w;
}