Updated test for lume.wordwrap()

This commit is contained in:
rxi 2015-05-05 19:13:38 +01:00
parent b25fee071f
commit fce4a5e5df

View File

@ -491,8 +491,8 @@ end
-- lume.wordwrap -- lume.wordwrap
tests["lume.wordwrap"] = function() tests["lume.wordwrap"] = function()
local str = "A small string with some words and then some more words" local str = "A small string with some words and then some more words"
local b = "A small string with\nsome words and then\nsome more words" local b = "A small string with \nsome words and then \nsome more words"
local fn = function(str) return #str >= 20 end local fn = function(str) return #str >= 20 end
testeq( lume.wordwrap(str), str ) testeq( lume.wordwrap(str), str )
testeq( lume.wordwrap(str, 20), b ) testeq( lume.wordwrap(str, 20), b )