mirror of
https://github.com/TangentFoxy/lume.git
synced 2024-11-19 07:04:24 +00:00
Updated test for lume.wordwrap()
This commit is contained in:
parent
b25fee071f
commit
fce4a5e5df
@ -491,8 +491,8 @@ end
|
||||
|
||||
-- lume.wordwrap
|
||||
tests["lume.wordwrap"] = function()
|
||||
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 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 fn = function(str) return #str >= 20 end
|
||||
testeq( lume.wordwrap(str), str )
|
||||
testeq( lume.wordwrap(str, 20), b )
|
||||
|
Loading…
Reference in New Issue
Block a user