Changeset

301:fcb7e63630ae

Warn when subtest function does not exist
author Matthew Wild <mwild1@gmail.com>
date Sat, 15 Nov 2008 23:11:17 +0000
parents 300:0ebf2ef5124e
children 302:8aedb3766ec7
files tests/test.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test.lua	Sat Nov 15 23:10:41 2008 +0000
+++ b/tests/test.lua	Sat Nov 15 23:11:17 2008 +0000
@@ -71,6 +71,7 @@
 end
 
 function runtest(f, msg)
+	if not f then print("SUBTEST NOT FOUND: "..(msg or "(no description)")); return; end
 	local success, ret = pcall(f);
 	if success and verbosity >= 2 then
 		print("SUBTEST PASSED: "..(msg or "(no description)"));