Fixed the close over methods and member vars bug, but there's something remaining causing the safe_recursive_delete not to work. Gotta save progress and do other stuff
This commit is contained in:
24
tests/test_set.krak
Normal file
24
tests/test_set.krak
Normal file
@@ -0,0 +1,24 @@
|
||||
import io:*
|
||||
import set:*
|
||||
|
||||
fun main():int {
|
||||
var s = set(3)
|
||||
println(s.contains(3))
|
||||
println(s.contains(1))
|
||||
s.remove(3)
|
||||
s.add(4)
|
||||
println(s.contains(3))
|
||||
println(s.contains(4))
|
||||
|
||||
println(s == set(4))
|
||||
println(s == set(5))
|
||||
s.add(set(5))
|
||||
println(s == set(4))
|
||||
println(s == set(5))
|
||||
println(s.contains(3))
|
||||
println(s.contains(4))
|
||||
println(s.contains(5))
|
||||
|
||||
s.for_each( fun(it: int) println(it); )
|
||||
return 0
|
||||
}
|
||||
Reference in New Issue
Block a user