Add Nil constructor and tests
Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
16
tests/nil.npp
Normal file
16
tests/nil.npp
Normal file
@@ -0,0 +1,16 @@
|
||||
# Nil type operator and function tests
|
||||
|
||||
a = nil
|
||||
|
||||
println("__not__")
|
||||
println(!nil)
|
||||
println(!!nil)
|
||||
|
||||
println("__eq__")
|
||||
println(nil == nil)
|
||||
|
||||
println("__ne__")
|
||||
println(nil != nil)
|
||||
|
||||
println("constructor")
|
||||
println(Nil())
|
||||
Reference in New Issue
Block a user