From f9627a0cfb6a5997581fd76fed15d2b9069526de Mon Sep 17 00:00:00 2001 From: lethosor Date: Sat, 3 Jul 2021 00:33:28 -0400 Subject: [PATCH] Add another split() test for pattern delimiters --- test/library/string.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/library/string.lua b/test/library/string.lua index 102c10c09..350f07d5e 100644 --- a/test/library/string.lua +++ b/test/library/string.lua @@ -33,6 +33,8 @@ function test.split() expect.table_eq({'hello','world'}, ('hello.world'):split('.', true), 'ensure literal interpretation when plain is true') + expect.table_eq({'', '', '', ''}, ('abc'):split('.'), + 'ensure pattern interpretation when plain is false') -- we don't actually care what this returns, just that it does return expect.true_(('hello world'):split('.*'), 'ensure no infinite loop')