Interpreter up to 71/73 tests passing, the only ones that don't yet are the future ones. Struct size is still wrong though
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
Test linear map:
|
||||
3
|
||||
2
|
||||
1
|
||||
@@ -10,6 +11,7 @@ Lookie, a map!
|
||||
What I get for not testing different types
|
||||
key: 7, value: Lookie, a map!
|
||||
key: 30, value: we'll look for for_each too
|
||||
Test hash map:
|
||||
3
|
||||
2
|
||||
1
|
||||
|
||||
@@ -24,9 +24,11 @@ fun test_map<T,V>(m: ref T, mapEx: ref V) {
|
||||
mapEx.for_each(fun(key:int, value:*char) { print("key: "); print(key); print(", value: "); println(value); })
|
||||
}
|
||||
fun main(): int {
|
||||
println("Test linear map:")
|
||||
var m1 = map(3,1)
|
||||
var mapEx1 = map(7, "Lookie, a map!")
|
||||
test_map(m1, mapEx1)
|
||||
println("Test hash map:")
|
||||
var m2 = hash_map(3,1)
|
||||
var mapEx2 = hash_map(7, "Lookie, a map!")
|
||||
test_map(m2, mapEx2)
|
||||
|
||||
Reference in New Issue
Block a user