mirror of
https://gitlab.com/camelot/kickc.git
synced 2025-04-07 06:37:31 +00:00
fixed tests
This commit is contained in:
parent
fa6e54fb87
commit
f31dc244b5
src/test
@ -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.");
|
||||
|
@ -2,4 +2,6 @@
|
||||
void main() {
|
||||
word w = 5000;
|
||||
byte b = w;
|
||||
const byte* screen = 0x0400;
|
||||
screen[0] = b;
|
||||
}
|
@ -1,5 +0,0 @@
|
||||
void main() {
|
||||
word w = { -1, -1};
|
||||
byte* screen = $400;
|
||||
*screen = <w;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user