diff options
author | LiamDevine <none@none> | 2010-06-10 19:42:45 +0400 |
---|---|---|
committer | LiamDevine <none@none> | 2010-06-10 19:42:45 +0400 |
commit | c458102d760118f59d878d423c6b85eb9aa6b06d (patch) | |
tree | 3401f52a35f89a9cfa197d90c98a421731eb751a /tests/testfx.lua | |
parent | d401f6666365895845123661775f9006ddafd60d (diff) |
vs2010 sln
Diffstat (limited to 'tests/testfx.lua')
-rw-r--r-- | tests/testfx.lua | 5 |
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() |