Skip to content

Commit

Permalink
fixing this with the s/Null/Undef/ commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Stevan Little committed Feb 12, 2013
1 parent ff48b51 commit de85abe
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -45,7 +45,7 @@ class ArrayHashIndexingTestSuite extends FunSuite with BeforeAndAfter with Parse
test("... basic test with a simple array (indexing 3)") {
val result = interpretCode("my @x = [1, 2, 3]; @x[3]")

assert(result.asInstanceOf[MoeNullObject] === runtime.NativeObjects.getUndef);
assert(result.asInstanceOf[MoeUndefObject] === runtime.NativeObjects.getUndef);
}

// hashes
Expand All @@ -71,7 +71,7 @@ class ArrayHashIndexingTestSuite extends FunSuite with BeforeAndAfter with Parse
test("... basic test with a simple hash (indexing three)") {
val result = interpretCode(""" my %x = { one => 1, two => 2 }; %x{"three"} """)

assert(result.asInstanceOf[MoeNullObject] === runtime.NativeObjects.getUndef);
assert(result.asInstanceOf[MoeUndefObject] === runtime.NativeObjects.getUndef);
}

// Both
Expand Down

0 comments on commit de85abe

Please sign in to comment.