From 2bf18e7843542dd4ba3bfaa3b09078401bfb6b7b Mon Sep 17 00:00:00 2001 From: Said Al Attrach Date: Sat, 30 Mar 2019 18:14:20 +0100 Subject: test: move trim to global helpers --- test/unit/helpers.lua | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'test/unit/helpers.lua') diff --git a/test/unit/helpers.lua b/test/unit/helpers.lua index beb25f25db..1345fbce17 100644 --- a/test/unit/helpers.lua +++ b/test/unit/helpers.lua @@ -16,6 +16,7 @@ local neq = global_helpers.neq local map = global_helpers.map local eq = global_helpers.eq local ok = global_helpers.ok +local trim = global_helpers.trim -- C constants. local NULL = ffi.cast('void*', 0) @@ -120,10 +121,6 @@ local deinit = only_separate(function() end end) -local function trim(s) - return s:match('^%s*(.*%S)') or '' -end - -- a Set that keeps around the lines we've already seen local cdefs_init = Set:new() local cdefs_mod = nil -- cgit