From 4db5a6b683b22bfacbc0c6378ea7cafe5687f9c6 Mon Sep 17 00:00:00 2001 From: rxi Date: Sat, 8 Mar 2014 16:19:31 +0000 Subject: [PATCH] Added another test for lume.reduce() --- test/test_lume.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_lume.lua b/test/test_lume.lua index d96e83d..2c1b314 100644 --- a/test/test_lume.lua +++ b/test/test_lume.lua @@ -155,7 +155,7 @@ tests["lume.reduce"] = function() testeq( lume.reduce({"cat", "dog"}, concat, "pig"), "pigcatdog" ) testeq( lume.reduce({"me", "ow"}, concat), "meow" ) testeq( lume.reduce({1, 2, 3, 4}, add), 10 ) - testeq( lume.reduce({1, 2, 3, 4}, add), 10 ) + testeq( lume.reduce({1, 2, 3, 4}, add, 5), 15 ) testeq( lume.reduce({1}, add), 1 ) testeq( lume.reduce({}, concat, "potato"), "potato" ) end