Skip to content
Browse files

test zip

  • Loading branch information...
1 parent aae93bc commit 3acafc964be3b09a89745deab03abc865426533f @javierguerragiraldez committed Dec 12, 2011
Showing with 9 additions and 0 deletions.
  1. +9 −0 tests/list_test.lua
View
9 tests/list_test.lua
@@ -44,5 +44,14 @@ context ('list', function ()
assert_equal ('{{"a","x"},{"b","y"}}', serialize(t))
assert_equal ('{1,2}', serialize(t2))
end))
+
+ test ('zip', strict.wrap(function ()
+ assert_equal (
+ '{{"a","x"},{"b","y"},{"c","z"}}',
+ serialize(List.zip({'a','b','c'},{'x','y','z'})))
+ assert_equal (
+ '{{"a","x"},{"b","y"}}',
+ serialize(List.zip({'a','b','c'},{'x','y'})))
+ end))
end)

0 comments on commit 3acafc9

Please sign in to comment.
Something went wrong with that request. Please try again.