mirror of
https://github.com/TangentFoxy/inspect.lua.git
synced 2025-07-29 11:32:17 +00:00
first tests with dictionary-type table are passing!
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user