Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/premake-4.x-stable.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLiamDevine <none@none>2010-06-10 19:42:45 +0400
committerLiamDevine <none@none>2010-06-10 19:42:45 +0400
commitc458102d760118f59d878d423c6b85eb9aa6b06d (patch)
tree3401f52a35f89a9cfa197d90c98a421731eb751a /tests/testfx.lua
parentd401f6666365895845123661775f9006ddafd60d (diff)
vs2010 sln
Diffstat (limited to 'tests/testfx.lua')
-rw-r--r--tests/testfx.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/testfx.lua b/tests/testfx.lua
index 55fbb0b..ff58c3a 100644
--- a/tests/testfx.lua
+++ b/tests/testfx.lua
@@ -15,6 +15,11 @@
--
-- Assertion functions
--
+ function test.string_contains(buffer, expected)
+ if not string.find(buffer,expected) then
+ test.fail("\n==Fail==: Expected to find :\n%s\nyet it was not found in buffer:\n%s\n", expected,buffer)
+ end
+ end
function test.capture(expected)
local actual = io.endcapture()