first tests with dictionary-type table are passing!

This commit is contained in:
Enrique García Cota
2011-04-23 23:29:52 +02:00
parent ecf208a938
commit 51153a31c6
2 changed files with 80 additions and 28 deletions

View File

@@ -51,7 +51,11 @@ context( 'inspect', function()
end)
test('Should work with nested arrays', function()
assert_equal(inspect({1,2,3, {4,5}, 6}), "{1, 2, 3, {4, 5}, 6}" )
assert_equal(inspect({'a','b','c', {'d','e'}, 'f'}), '{"a", "b", "c", {"d", "e"}, "f"}' )
end)
test('Should work with simple hash-like tables', function()
assert_equal(inspect({a = 1, b = 2}), "{\n a = 1,\n b = 2\n}")
end)
end)