diff options
Diffstat (limited to 'Resources/Libraries/luaunit/test/ref')
64 files changed, 2862 insertions, 0 deletions
diff --git a/Resources/Libraries/luaunit/test/ref/errFailPassNilDefault-failures.txt b/Resources/Libraries/luaunit/test/ref/errFailPassNilDefault-failures.txt new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/Resources/Libraries/luaunit/test/ref/errFailPassNilDefault-failures.txt diff --git a/Resources/Libraries/luaunit/test/ref/errFailPassNilDefault-success.txt b/Resources/Libraries/luaunit/test/ref/errFailPassNilDefault-success.txt new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/Resources/Libraries/luaunit/test/ref/errFailPassNilDefault-success.txt diff --git a/Resources/Libraries/luaunit/test/ref/errFailPassNilDefault.txt b/Resources/Libraries/luaunit/test/ref/errFailPassNilDefault.txt new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/Resources/Libraries/luaunit/test/ref/errFailPassNilDefault.txt diff --git a/Resources/Libraries/luaunit/test/ref/errFailPassTapDefault-failures.txt b/Resources/Libraries/luaunit/test/ref/errFailPassTapDefault-failures.txt new file mode 100644 index 0000000..2979151 --- /dev/null +++ b/Resources/Libraries/luaunit/test/ref/errFailPassTapDefault-failures.txt @@ -0,0 +1,20 @@ +1..10 +# Started on 03/22/16 21:58:32 +# Starting class: TestAnotherThing +ok 1 TestAnotherThing.test1_Success1 +ok 2 TestAnotherThing.test1_Success2 +not ok 3 TestAnotherThing.test3_Fail1 +# test/test_with_err_fail_pass.lua:49: expected: 0, actual: 2 +not ok 4 TestAnotherThing.test3_Fail2 +# test/test_with_err_fail_pass.lua:53: expected: 0, actual: 3 +# Starting class: TestSomething +ok 5 TestSomething.test1_Success1 +ok 6 TestSomething.test1_Success2 +not ok 7 TestSomething.test2_Fail1 +# test/test_with_err_fail_pass.lua:15: expected: 0, actual: 2 +not ok 8 TestSomething.test2_Fail2 +# test/test_with_err_fail_pass.lua:19: expected: 0, actual: 3 +not ok 9 testFuncFail1 +# test/test_with_err_fail_pass.lua:62: expected: 0, actual: 3 +ok 10 testFuncSuccess1 +# Ran 10 tests in 0.000 seconds, 5 successes, 5 failures, 5 non-selected diff --git a/Resources/Libraries/luaunit/test/ref/errFailPassTapDefault-success.txt b/Resources/Libraries/luaunit/test/ref/errFailPassTapDefault-success.txt new file mode 100644 index 0000000..8dd71e7 --- /dev/null +++ b/Resources/Libraries/luaunit/test/ref/errFailPassTapDefault-success.txt @@ -0,0 +1,10 @@ +1..5 +# Started on 03/22/16 21:58:32 +# Starting class: TestAnotherThing +ok 1 TestAnotherThing.test1_Success1 +ok 2 TestAnotherThing.test1_Success2 +# Starting class: TestSomething +ok 3 TestSomething.test1_Success1 +ok 4 TestSomething.test1_Success2 +ok 5 testFuncSuccess1 +# Ran 5 tests in 0.000 seconds, 5 successes, 0 failures, 10 non-selected diff --git a/Resources/Libraries/luaunit/test/ref/errFailPassTapDefault.txt b/Resources/Libraries/luaunit/test/ref/errFailPassTapDefault.txt new file mode 100644 index 0000000..08c0558 --- /dev/null +++ b/Resources/Libraries/luaunit/test/ref/errFailPassTapDefault.txt @@ -0,0 +1,30 @@ +1..15 +# Started on 03/22/16 21:58:32 +# Starting class: TestAnotherThing +ok 1 TestAnotherThing.test1_Success1 +ok 2 TestAnotherThing.test1_Success2 +not ok 3 TestAnotherThing.test2_Err1 +# test/test_with_err_fail_pass.lua:41: attempt to perform arithmetic on a table value +not ok 4 TestAnotherThing.test2_Err2 +# test/test_with_err_fail_pass.lua:45: attempt to perform arithmetic on a table value +not ok 5 TestAnotherThing.test3_Fail1 +# test/test_with_err_fail_pass.lua:49: expected: 0, actual: 2 +not ok 6 TestAnotherThing.test3_Fail2 +# test/test_with_err_fail_pass.lua:53: expected: 0, actual: 3 +# Starting class: TestSomething +ok 7 TestSomething.test1_Success1 +ok 8 TestSomething.test1_Success2 +not ok 9 TestSomething.test2_Fail1 +# test/test_with_err_fail_pass.lua:15: expected: 0, actual: 2 +not ok 10 TestSomething.test2_Fail2 +# test/test_with_err_fail_pass.lua:19: expected: 0, actual: 3 +not ok 11 TestSomething.test3_Err1 +# test/test_with_err_fail_pass.lua:23: attempt to perform arithmetic on a table value +not ok 12 TestSomething.test3_Err2 +# test/test_with_err_fail_pass.lua:27: attempt to perform arithmetic on a table value +not ok 13 testFuncErr1 +# test/test_with_err_fail_pass.lua:66: attempt to perform arithmetic on a table value +not ok 14 testFuncFail1 +# test/test_with_err_fail_pass.lua:62: expected: 0, actual: 3 +ok 15 testFuncSuccess1 +# Ran 15 tests in 0.003 seconds, 5 successes, 5 failures, 5 errors diff --git a/Resources/Libraries/luaunit/test/ref/errFailPassTapQuiet-failures.txt b/Resources/Libraries/luaunit/test/ref/errFailPassTapQuiet-failures.txt new file mode 100644 index 0000000..75be7c0 --- /dev/null +++ b/Resources/Libraries/luaunit/test/ref/errFailPassTapQuiet-failures.txt @@ -0,0 +1,15 @@ +1..10 +# Started on 03/22/16 21:58:32 +# Starting class: TestAnotherThing +ok 1 TestAnotherThing.test1_Success1 +ok 2 TestAnotherThing.test1_Success2 +not ok 3 TestAnotherThing.test3_Fail1 +not ok 4 TestAnotherThing.test3_Fail2 +# Starting class: TestSomething +ok 5 TestSomething.test1_Success1 +ok 6 TestSomething.test1_Success2 +not ok 7 TestSomething.test2_Fail1 +not ok 8 TestSomething.test2_Fail2 +not ok 9 testFuncFail1 +ok 10 testFuncSuccess1 +# Ran 10 tests in 0.002 seconds, 5 successes, 5 failures, 5 non-selected diff --git a/Resources/Libraries/luaunit/test/ref/errFailPassTapQuiet-success.txt b/Resources/Libraries/luaunit/test/ref/errFailPassTapQuiet-success.txt new file mode 100644 index 0000000..8dd71e7 --- /dev/null +++ b/Resources/Libraries/luaunit/test/ref/errFailPassTapQuiet-success.txt @@ -0,0 +1,10 @@ +1..5 +# Started on 03/22/16 21:58:32 +# Starting class: TestAnotherThing +ok 1 TestAnotherThing.test1_Success1 +ok 2 TestAnotherThing.test1_Success2 +# Starting class: TestSomething +ok 3 TestSomething.test1_Success1 +ok 4 TestSomething.test1_Success2 +ok 5 testFuncSuccess1 +# Ran 5 tests in 0.000 seconds, 5 successes, 0 failures, 10 non-selected diff --git a/Resources/Libraries/luaunit/test/ref/errFailPassTapQuiet.txt b/Resources/Libraries/luaunit/test/ref/errFailPassTapQuiet.txt new file mode 100644 index 0000000..dc38b42 --- /dev/null +++ b/Resources/Libraries/luaunit/test/ref/errFailPassTapQuiet.txt @@ -0,0 +1,20 @@ +1..15 +# Started on 03/22/16 21:58:32 +# Starting class: TestAnotherThing +ok 1 TestAnotherThing.test1_Success1 +ok 2 TestAnotherThing.test1_Success2 +not ok 3 TestAnotherThing.test2_Err1 +not ok 4 TestAnotherThing.test2_Err2 +not ok 5 TestAnotherThing.test3_Fail1 +not ok 6 TestAnotherThing.test3_Fail2 +# Starting class: TestSomething +ok 7 TestSomething.test1_Success1 +ok 8 TestSomething.test1_Success2 +not ok 9 TestSomething.test2_Fail1 +not ok 10 TestSomething.test2_Fail2 +not ok 11 TestSomething.test3_Err1 +not ok 12 TestSomething.test3_Err2 +not ok 13 testFuncErr1 +not ok 14 testFuncFail1 +ok 15 testFuncSuccess1 +# Ran 15 tests in 0.002 seconds, 5 successes, 5 failures, 5 errors diff --git a/Resources/Libraries/luaunit/test/ref/errFailPassTapVerbose-failures.txt b/Resources/Libraries/luaunit/test/ref/errFailPassTapVerbose-failures.txt new file mode 100644 index 0000000..cdb5060 --- /dev/null +++ b/Resources/Libraries/luaunit/test/ref/errFailPassTapVerbose-failures.txt @@ -0,0 +1,30 @@ +1..10 +# Started on 03/22/16 21:58:32 +# Starting class: TestAnotherThing +ok 1 TestAnotherThing.test1_Success1 +ok 2 TestAnotherThing.test1_Success2 +not ok 3 TestAnotherThing.test3_Fail1 +# test/test_with_err_fail_pass.lua:49: expected: 0, actual: 2 +# stack traceback: +# test/test_with_err_fail_pass.lua:49: in function 'TestAnotherThing.test3_Fail1' +not ok 4 TestAnotherThing.test3_Fail2 +# test/test_with_err_fail_pass.lua:53: expected: 0, actual: 3 +# stack traceback: +# test/test_with_err_fail_pass.lua:53: in function 'TestAnotherThing.test3_Fail2' +# Starting class: TestSomething +ok 5 TestSomething.test1_Success1 +ok 6 TestSomething.test1_Success2 +not ok 7 TestSomething.test2_Fail1 +# test/test_with_err_fail_pass.lua:15: expected: 0, actual: 2 +# stack traceback: +# test/test_with_err_fail_pass.lua:15: in function 'TestSomething.test2_Fail1' +not ok 8 TestSomething.test2_Fail2 +# test/test_with_err_fail_pass.lua:19: expected: 0, actual: 3 +# stack traceback: +# test/test_with_err_fail_pass.lua:19: in function 'TestSomething.test2_Fail2' +not ok 9 testFuncFail1 +# test/test_with_err_fail_pass.lua:62: expected: 0, actual: 3 +# stack traceback: +# test/test_with_err_fail_pass.lua:62: in function 'testFuncFail1' +ok 10 testFuncSuccess1 +# Ran 10 tests in 0.000 seconds, 5 successes, 5 failures, 5 non-selected diff --git a/Resources/Libraries/luaunit/test/ref/errFailPassTapVerbose-success.txt b/Resources/Libraries/luaunit/test/ref/errFailPassTapVerbose-success.txt new file mode 100644 index 0000000..8dd71e7 --- /dev/null +++ b/Resources/Libraries/luaunit/test/ref/errFailPassTapVerbose-success.txt @@ -0,0 +1,10 @@ +1..5 +# Started on 03/22/16 21:58:32 +# Starting class: TestAnotherThing +ok 1 TestAnotherThing.test1_Success1 +ok 2 TestAnotherThing.test1_Success2 +# Starting class: TestSomething +ok 3 TestSomething.test1_Success1 +ok 4 TestSomething.test1_Success2 +ok 5 testFuncSuccess1 +# Ran 5 tests in 0.000 seconds, 5 successes, 0 failures, 10 non-selected diff --git a/Resources/Libraries/luaunit/test/ref/errFailPassTapVerbose.txt b/Resources/Libraries/luaunit/test/ref/errFailPassTapVerbose.txt new file mode 100644 index 0000000..c3380b7 --- /dev/null +++ b/Resources/Libraries/luaunit/test/ref/errFailPassTapVerbose.txt @@ -0,0 +1,50 @@ +1..15 +# Started on 03/22/16 21:58:32 +# Starting class: TestAnotherThing +ok 1 TestAnotherThing.test1_Success1 +ok 2 TestAnotherThing.test1_Success2 +not ok 3 TestAnotherThing.test2_Err1 +# test/test_with_err_fail_pass.lua:41: attempt to perform arithmetic on a table value +# stack traceback: +# test/test_with_err_fail_pass.lua:41: in function 'TestAnotherThing.test2_Err1' +not ok 4 TestAnotherThing.test2_Err2 +# test/test_with_err_fail_pass.lua:45: attempt to perform arithmetic on a table value +# stack traceback: +# test/test_with_err_fail_pass.lua:45: in function 'TestAnotherThing.test2_Err2' +not ok 5 TestAnotherThing.test3_Fail1 +# test/test_with_err_fail_pass.lua:49: expected: 0, actual: 2 +# stack traceback: +# test/test_with_err_fail_pass.lua:49: in function 'TestAnotherThing.test3_Fail1' +not ok 6 TestAnotherThing.test3_Fail2 +# test/test_with_err_fail_pass.lua:53: expected: 0, actual: 3 +# stack traceback: +# test/test_with_err_fail_pass.lua:53: in function 'TestAnotherThing.test3_Fail2' +# Starting class: TestSomething +ok 7 TestSomething.test1_Success1 +ok 8 TestSomething.test1_Success2 +not ok 9 TestSomething.test2_Fail1 +# test/test_with_err_fail_pass.lua:15: expected: 0, actual: 2 +# stack traceback: +# test/test_with_err_fail_pass.lua:15: in function 'TestSomething.test2_Fail1' +not ok 10 TestSomething.test2_Fail2 +# test/test_with_err_fail_pass.lua:19: expected: 0, actual: 3 +# stack traceback: +# test/test_with_err_fail_pass.lua:19: in function 'TestSomething.test2_Fail2' +not ok 11 TestSomething.test3_Err1 +# test/test_with_err_fail_pass.lua:23: attempt to perform arithmetic on a table value +# stack traceback: +# test/test_with_err_fail_pass.lua:23: in function 'TestSomething.test3_Err1' +not ok 12 TestSomething.test3_Err2 +# test/test_with_err_fail_pass.lua:27: attempt to perform arithmetic on a table value +# stack traceback: +# test/test_with_err_fail_pass.lua:27: in function 'TestSomething.test3_Err2' +not ok 13 testFuncErr1 +# test/test_with_err_fail_pass.lua:66: attempt to perform arithmetic on a table value +# stack traceback: +# test/test_with_err_fail_pass.lua:66: in function 'testFuncErr1' +not ok 14 testFuncFail1 +# test/test_with_err_fail_pass.lua:62: expected: 0, actual: 3 +# stack traceback: +# test/test_with_err_fail_pass.lua:62: in function 'testFuncFail1' +ok 15 testFuncSuccess1 +# Ran 15 tests in 0.000 seconds, 5 successes, 5 failures, 5 errors diff --git a/Resources/Libraries/luaunit/test/ref/errFailPassTextDefault-failures.txt b/Resources/Libraries/luaunit/test/ref/errFailPassTextDefault-failures.txt new file mode 100644 index 0000000..08bdc7c --- /dev/null +++ b/Resources/Libraries/luaunit/test/ref/errFailPassTextDefault-failures.txt @@ -0,0 +1,29 @@ +..FF..FFF. +Failed tests: +------------- +1) TestAnotherThing.test3_Fail1 +test/test_with_err_fail_pass.lua:49: expected: 0, actual: 2 +stack traceback: + test/test_with_err_fail_pass.lua:49: in function 'TestAnotherThing.test3_Fail1' + +2) TestAnotherThing.test3_Fail2 +test/test_with_err_fail_pass.lua:53: expected: 0, actual: 3 +stack traceback: + test/test_with_err_fail_pass.lua:53: in function 'TestAnotherThing.test3_Fail2' + +3) TestSomething.test2_Fail1 +test/test_with_err_fail_pass.lua:15: expected: 0, actual: 2 +stack traceback: + test/test_with_err_fail_pass.lua:15: in function 'TestSomething.test2_Fail1' + +4) TestSomething.test2_Fail2 +test/test_with_err_fail_pass.lua:19: expected: 0, actual: 3 +stack traceback: + test/test_with_err_fail_pass.lua:19: in function 'TestSomething.test2_Fail2' + +5) testFuncFail1 +test/test_with_err_fail_pass.lua:62: expected: 0, actual: 3 +stack traceback: + test/test_with_err_fail_pass.lua:62: in function 'testFuncFail1' + +Ran 10 tests in 0.001 seconds, 5 successes, 5 failures, 5 non-selected diff --git a/Resources/Libraries/luaunit/test/ref/errFailPassTextDefault-success.txt b/Resources/Libraries/luaunit/test/ref/errFailPassTextDefault-success.txt new file mode 100644 index 0000000..56ab148 --- /dev/null +++ b/Resources/Libraries/luaunit/test/ref/errFailPassTextDefault-success.txt @@ -0,0 +1,3 @@ +..... +Ran 5 tests in 0.000 seconds, 5 successes, 0 failures, 10 non-selected +OK diff --git a/Resources/Libraries/luaunit/test/ref/errFailPassTextDefault.txt b/Resources/Libraries/luaunit/test/ref/errFailPassTextDefault.txt new file mode 100644 index 0000000..cf1115c --- /dev/null +++ b/Resources/Libraries/luaunit/test/ref/errFailPassTextDefault.txt @@ -0,0 +1,56 @@ +..EEFF..FFEEEF. +Tests with errors: +------------------ +1) TestAnotherThing.test2_Err1 +test/test_with_err_fail_pass.lua:41: attempt to perform arithmetic on a table value +stack traceback: + test/test_with_err_fail_pass.lua:41: in function 'TestAnotherThing.test2_Err1' + +2) TestAnotherThing.test2_Err2 +test/test_with_err_fail_pass.lua:45: attempt to perform arithmetic on a table value +stack traceback: + test/test_with_err_fail_pass.lua:45: in function 'TestAnotherThing.test2_Err2' + +3) TestSomething.test3_Err1 +test/test_with_err_fail_pass.lua:23: attempt to perform arithmetic on a table value +stack traceback: + test/test_with_err_fail_pass.lua:23: in function 'TestSomething.test3_Err1' + +4) TestSomething.test3_Err2 +test/test_with_err_fail_pass.lua:27: attempt to perform arithmetic on a table value +stack traceback: + test/test_with_err_fail_pass.lua:27: in function 'TestSomething.test3_Err2' + +5) testFuncErr1 +test/test_with_err_fail_pass.lua:66: attempt to perform arithmetic on a table value +stack traceback: + test/test_with_err_fail_pass.lua:66: in function 'testFuncErr1' + +Failed tests: +------------- +1) TestAnotherThing.test3_Fail1 +test/test_with_err_fail_pass.lua:49: expected: 0, actual: 2 +stack traceback: + test/test_with_err_fail_pass.lua:49: in function 'TestAnotherThing.test3_Fail1' + +2) TestAnotherThing.test3_Fail2 +test/test_with_err_fail_pass.lua:53: expected: 0, actual: 3 +stack traceback: + test/test_with_err_fail_pass.lua:53: in function 'TestAnotherThing.test3_Fail2' + +3) TestSomething.test2_Fail1 +test/test_with_err_fail_pass.lua:15: expected: 0, actual: 2 +stack traceback: + test/test_with_err_fail_pass.lua:15: in function 'TestSomething.test2_Fail1' + +4) TestSomething.test2_Fail2 +test/test_with_err_fail_pass.lua:19: expected: 0, actual: 3 +stack traceback: + test/test_with_err_fail_pass.lua:19: in function 'TestSomething.test2_Fail2' + +5) testFuncFail1 +test/test_with_err_fail_pass.lua:62: expected: 0, actual: 3 +stack traceback: + test/test_with_err_fail_pass.lua:62: in function 'testFuncFail1' + +Ran 15 tests in 0.002 seconds, 5 successes, 5 failures, 5 errors diff --git a/Resources/Libraries/luaunit/test/ref/errFailPassTextQuiet-failures.txt b/Resources/Libraries/luaunit/test/ref/errFailPassTextQuiet-failures.txt new file mode 100644 index 0000000..08bdc7c --- /dev/null +++ b/Resources/Libraries/luaunit/test/ref/errFailPassTextQuiet-failures.txt @@ -0,0 +1,29 @@ +..FF..FFF. +Failed tests: +------------- +1) TestAnotherThing.test3_Fail1 +test/test_with_err_fail_pass.lua:49: expected: 0, actual: 2 +stack traceback: + test/test_with_err_fail_pass.lua:49: in function 'TestAnotherThing.test3_Fail1' + +2) TestAnotherThing.test3_Fail2 +test/test_with_err_fail_pass.lua:53: expected: 0, actual: 3 +stack traceback: + test/test_with_err_fail_pass.lua:53: in function 'TestAnotherThing.test3_Fail2' + +3) TestSomething.test2_Fail1 +test/test_with_err_fail_pass.lua:15: expected: 0, actual: 2 +stack traceback: + test/test_with_err_fail_pass.lua:15: in function 'TestSomething.test2_Fail1' + +4) TestSomething.test2_Fail2 +test/test_with_err_fail_pass.lua:19: expected: 0, actual: 3 +stack traceback: + test/test_with_err_fail_pass.lua:19: in function 'TestSomething.test2_Fail2' + +5) testFuncFail1 +test/test_with_err_fail_pass.lua:62: expected: 0, actual: 3 +stack traceback: + test/test_with_err_fail_pass.lua:62: in function 'testFuncFail1' + +Ran 10 tests in 0.001 seconds, 5 successes, 5 failures, 5 non-selected diff --git a/Resources/Libraries/luaunit/test/ref/errFailPassTextQuiet-success.txt b/Resources/Libraries/luaunit/test/ref/errFailPassTextQuiet-success.txt new file mode 100644 index 0000000..56ab148 --- /dev/null +++ b/Resources/Libraries/luaunit/test/ref/errFailPassTextQuiet-success.txt @@ -0,0 +1,3 @@ +..... +Ran 5 tests in 0.000 seconds, 5 successes, 0 failures, 10 non-selected +OK diff --git a/Resources/Libraries/luaunit/test/ref/errFailPassTextQuiet.txt b/Resources/Libraries/luaunit/test/ref/errFailPassTextQuiet.txt new file mode 100644 index 0000000..cf1115c --- /dev/null +++ b/Resources/Libraries/luaunit/test/ref/errFailPassTextQuiet.txt @@ -0,0 +1,56 @@ +..EEFF..FFEEEF. +Tests with errors: +------------------ +1) TestAnotherThing.test2_Err1 +test/test_with_err_fail_pass.lua:41: attempt to perform arithmetic on a table value +stack traceback: + test/test_with_err_fail_pass.lua:41: in function 'TestAnotherThing.test2_Err1' + +2) TestAnotherThing.test2_Err2 +test/test_with_err_fail_pass.lua:45: attempt to perform arithmetic on a table value +stack traceback: + test/test_with_err_fail_pass.lua:45: in function 'TestAnotherThing.test2_Err2' + +3) TestSomething.test3_Err1 +test/test_with_err_fail_pass.lua:23: attempt to perform arithmetic on a table value +stack traceback: + test/test_with_err_fail_pass.lua:23: in function 'TestSomething.test3_Err1' + +4) TestSomething.test3_Err2 +test/test_with_err_fail_pass.lua:27: attempt to perform arithmetic on a table value +stack traceback: + test/test_with_err_fail_pass.lua:27: in function 'TestSomething.test3_Err2' + +5) testFuncErr1 +test/test_with_err_fail_pass.lua:66: attempt to perform arithmetic on a table value +stack traceback: + test/test_with_err_fail_pass.lua:66: in function 'testFuncErr1' + +Failed tests: +------------- +1) TestAnotherThing.test3_Fail1 +test/test_with_err_fail_pass.lua:49: expected: 0, actual: 2 +stack traceback: + test/test_with_err_fail_pass.lua:49: in function 'TestAnotherThing.test3_Fail1' + +2) TestAnotherThing.test3_Fail2 +test/test_with_err_fail_pass.lua:53: expected: 0, actual: 3 +stack traceback: + test/test_with_err_fail_pass.lua:53: in function 'TestAnotherThing.test3_Fail2' + +3) TestSomething.test2_Fail1 +test/test_with_err_fail_pass.lua:15: expected: 0, actual: 2 +stack traceback: + test/test_with_err_fail_pass.lua:15: in function 'TestSomething.test2_Fail1' + +4) TestSomething.test2_Fail2 +test/test_with_err_fail_pass.lua:19: expected: 0, actual: 3 +stack traceback: + test/test_with_err_fail_pass.lua:19: in function 'TestSomething.test2_Fail2' + +5) testFuncFail1 +test/test_with_err_fail_pass.lua:62: expected: 0, actual: 3 +stack traceback: + test/test_with_err_fail_pass.lua:62: in function 'testFuncFail1' + +Ran 15 tests in 0.002 seconds, 5 successes, 5 failures, 5 errors diff --git a/Resources/Libraries/luaunit/test/ref/errFailPassTextStopOnError-1.txt b/Resources/Libraries/luaunit/test/ref/errFailPassTextStopOnError-1.txt new file mode 100644 index 0000000..56ab148 --- /dev/null +++ b/Resources/Libraries/luaunit/test/ref/errFailPassTextStopOnError-1.txt @@ -0,0 +1,3 @@ +..... +Ran 5 tests in 0.000 seconds, 5 successes, 0 failures, 10 non-selected +OK diff --git a/Resources/Libraries/luaunit/test/ref/errFailPassTextStopOnError-2.txt b/Resources/Libraries/luaunit/test/ref/errFailPassTextStopOnError-2.txt new file mode 100644 index 0000000..4e1c177 --- /dev/null +++ b/Resources/Libraries/luaunit/test/ref/errFailPassTextStopOnError-2.txt @@ -0,0 +1,25 @@ +..FFE +ERROR during LuaUnit test execution: +test/test_with_err_fail_pass.lua:23: attempt to perform arithmetic on a table value + +Tests with errors: +------------------ +1) TestSomething.test3_Err1 +test/test_with_err_fail_pass.lua:23: attempt to perform arithmetic on a table value +stack traceback: + test/test_with_err_fail_pass.lua:23: in function 'TestSomething.test3_Err1' + +Failed tests: +------------- +1) TestSomething.test2_Fail1 +test/test_with_err_fail_pass.lua:15: expected: 0, actual: 2 +stack traceback: + test/test_with_err_fail_pass.lua:15: in function 'TestSomething.test2_Fail1' + +2) TestSomething.test2_Fail2 +test/test_with_err_fail_pass.lua:19: expected: 0, actual: 3 +stack traceback: + test/test_with_err_fail_pass.lua:19: in function 'TestSomething.test2_Fail2' + +Ran 5 tests in 0.000 seconds, 2 successes, 2 failures, 1 error, 9 non-selected +LuaUnit ABORTED (as requested by --error or --failure option) diff --git a/Resources/Libraries/luaunit/test/ref/errFailPassTextStopOnError-3.txt b/Resources/Libraries/luaunit/test/ref/errFailPassTextStopOnError-3.txt new file mode 100644 index 0000000..9672c6d --- /dev/null +++ b/Resources/Libraries/luaunit/test/ref/errFailPassTextStopOnError-3.txt @@ -0,0 +1,13 @@ +..E +ERROR during LuaUnit test execution: +test/test_with_err_fail_pass.lua:41: attempt to perform arithmetic on a table value + +Tests with errors: +------------------ +1) TestAnotherThing.test2_Err1 +test/test_with_err_fail_pass.lua:41: attempt to perform arithmetic on a table value +stack traceback: + test/test_with_err_fail_pass.lua:41: in function 'TestAnotherThing.test2_Err1' + +Ran 3 tests in 0.000 seconds, 2 successes, 1 error, 9 non-selected +LuaUnit ABORTED (as requested by --error or --failure option) diff --git a/Resources/Libraries/luaunit/test/ref/errFailPassTextStopOnError-4.txt b/Resources/Libraries/luaunit/test/ref/errFailPassTextStopOnError-4.txt new file mode 100644 index 0000000..78178fd --- /dev/null +++ b/Resources/Libraries/luaunit/test/ref/errFailPassTextStopOnError-4.txt @@ -0,0 +1,13 @@ +..F +Failure during LuaUnit test execution: +test/test_with_err_fail_pass.lua:15: expected: 0, actual: 2 + +Failed tests: +------------- +1) TestSomething.test2_Fail1 +test/test_with_err_fail_pass.lua:15: expected: 0, actual: 2 +stack traceback: + test/test_with_err_fail_pass.lua:15: in function 'TestSomething.test2_Fail1' + +Ran 3 tests in 0.000 seconds, 2 successes, 1 failure, 9 non-selected +LuaUnit ABORTED (as requested by --error or --failure option) diff --git a/Resources/Libraries/luaunit/test/ref/errFailPassTextVerbose-failures.txt b/Resources/Libraries/luaunit/test/ref/errFailPassTextVerbose-failures.txt new file mode 100644 index 0000000..af48612 --- /dev/null +++ b/Resources/Libraries/luaunit/test/ref/errFailPassTextVerbose-failures.txt @@ -0,0 +1,45 @@ +Started on 03/22/16 21:29:18 + TestAnotherThing.test1_Success1 ... Ok + TestAnotherThing.test1_Success2 ... Ok + TestAnotherThing.test3_Fail1 ... FAIL +test/test_with_err_fail_pass.lua:49: expected: 0, actual: 2 + TestAnotherThing.test3_Fail2 ... FAIL +test/test_with_err_fail_pass.lua:53: expected: 0, actual: 3 + TestSomething.test1_Success1 ... Ok + TestSomething.test1_Success2 ... Ok + TestSomething.test2_Fail1 ... FAIL +test/test_with_err_fail_pass.lua:15: expected: 0, actual: 2 + TestSomething.test2_Fail2 ... FAIL +test/test_with_err_fail_pass.lua:19: expected: 0, actual: 3 + testFuncFail1 ... FAIL +test/test_with_err_fail_pass.lua:62: expected: 0, actual: 3 + testFuncSuccess1 ... Ok +========================================================= +Failed tests: +------------- +1) TestAnotherThing.test3_Fail1 +test/test_with_err_fail_pass.lua:49: expected: 0, actual: 2 +stack traceback: + test/test_with_err_fail_pass.lua:49: in function 'TestAnotherThing.test3_Fail1' + +2) TestAnotherThing.test3_Fail2 +test/test_with_err_fail_pass.lua:53: expected: 0, actual: 3 +stack traceback: + test/test_with_err_fail_pass.lua:53: in function 'TestAnotherThing.test3_Fail2' + +3) TestSomething.test2_Fail1 +test/test_with_err_fail_pass.lua:15: expected: 0, actual: 2 +stack traceback: + test/test_with_err_fail_pass.lua:15: in function 'TestSomething.test2_Fail1' + +4) TestSomething.test2_Fail2 +test/test_with_err_fail_pass.lua:19: expected: 0, actual: 3 +stack traceback: + test/test_with_err_fail_pass.lua:19: in function 'TestSomething.test2_Fail2' + +5) testFuncFail1 +test/test_with_err_fail_pass.lua:62: expected: 0, actual: 3 +stack traceback: + test/test_with_err_fail_pass.lua:62: in function 'testFuncFail1' + +Ran 10 tests in 0.001 seconds, 5 successes, 5 failures, 5 non-selected diff --git a/Resources/Libraries/luaunit/test/ref/errFailPassTextVerbose-success.txt b/Resources/Libraries/luaunit/test/ref/errFailPassTextVerbose-success.txt new file mode 100644 index 0000000..605df07 --- /dev/null +++ b/Resources/Libraries/luaunit/test/ref/errFailPassTextVerbose-success.txt @@ -0,0 +1,9 @@ +Started on 03/22/16 21:29:18 + TestAnotherThing.test1_Success1 ... Ok + TestAnotherThing.test1_Success2 ... Ok + TestSomething.test1_Success1 ... Ok + TestSomething.test1_Success2 ... Ok + testFuncSuccess1 ... Ok +========================================================= +Ran 5 tests in 0.000 seconds, 5 successes, 0 failures, 10 non-selected +OK diff --git a/Resources/Libraries/luaunit/test/ref/errFailPassTextVerbose.txt b/Resources/Libraries/luaunit/test/ref/errFailPassTextVerbose.txt new file mode 100644 index 0000000..7ebe9e3 --- /dev/null +++ b/Resources/Libraries/luaunit/test/ref/errFailPassTextVerbose.txt @@ -0,0 +1,82 @@ +Started on 03/22/16 21:29:18 + TestAnotherThing.test1_Success1 ... Ok + TestAnotherThing.test1_Success2 ... Ok + TestAnotherThing.test2_Err1 ... ERROR +test/test_with_err_fail_pass.lua:41: attempt to perform arithmetic on a table value + TestAnotherThing.test2_Err2 ... ERROR +test/test_with_err_fail_pass.lua:45: attempt to perform arithmetic on a table value + TestAnotherThing.test3_Fail1 ... FAIL +test/test_with_err_fail_pass.lua:49: expected: 0, actual: 2 + TestAnotherThing.test3_Fail2 ... FAIL +test/test_with_err_fail_pass.lua:53: expected: 0, actual: 3 + TestSomething.test1_Success1 ... Ok + TestSomething.test1_Success2 ... Ok + TestSomething.test2_Fail1 ... FAIL +test/test_with_err_fail_pass.lua:15: expected: 0, actual: 2 + TestSomething.test2_Fail2 ... FAIL +test/test_with_err_fail_pass.lua:19: expected: 0, actual: 3 + TestSomething.test3_Err1 ... ERROR +test/test_with_err_fail_pass.lua:23: attempt to perform arithmetic on a table value + TestSomething.test3_Err2 ... ERROR +test/test_with_err_fail_pass.lua:27: attempt to perform arithmetic on a table value + testFuncErr1 ... ERROR +test/test_with_err_fail_pass.lua:66: attempt to perform arithmetic on a table value + testFuncFail1 ... FAIL +test/test_with_err_fail_pass.lua:62: expected: 0, actual: 3 + testFuncSuccess1 ... Ok +========================================================= +Tests with errors: +------------------ +1) TestAnotherThing.test2_Err1 +test/test_with_err_fail_pass.lua:41: attempt to perform arithmetic on a table value +stack traceback: + test/test_with_err_fail_pass.lua:41: in function 'TestAnotherThing.test2_Err1' + +2) TestAnotherThing.test2_Err2 +test/test_with_err_fail_pass.lua:45: attempt to perform arithmetic on a table value +stack traceback: + test/test_with_err_fail_pass.lua:45: in function 'TestAnotherThing.test2_Err2' + +3) TestSomething.test3_Err1 +test/test_with_err_fail_pass.lua:23: attempt to perform arithmetic on a table value +stack traceback: + test/test_with_err_fail_pass.lua:23: in function 'TestSomething.test3_Err1' + +4) TestSomething.test3_Err2 +test/test_with_err_fail_pass.lua:27: attempt to perform arithmetic on a table value +stack traceback: + test/test_with_err_fail_pass.lua:27: in function 'TestSomething.test3_Err2' + +5) testFuncErr1 +test/test_with_err_fail_pass.lua:66: attempt to perform arithmetic on a table value +stack traceback: + test/test_with_err_fail_pass.lua:66: in function 'testFuncErr1' + +Failed tests: +------------- +1) TestAnotherThing.test3_Fail1 +test/test_with_err_fail_pass.lua:49: expected: 0, actual: 2 +stack traceback: + test/test_with_err_fail_pass.lua:49: in function 'TestAnotherThing.test3_Fail1' + +2) TestAnotherThing.test3_Fail2 +test/test_with_err_fail_pass.lua:53: expected: 0, actual: 3 +stack traceback: + test/test_with_err_fail_pass.lua:53: in function 'TestAnotherThing.test3_Fail2' + +3) TestSomething.test2_Fail1 +test/test_with_err_fail_pass.lua:15: expected: 0, actual: 2 +stack traceback: + test/test_with_err_fail_pass.lua:15: in function 'TestSomething.test2_Fail1' + +4) TestSomething.test2_Fail2 +test/test_with_err_fail_pass.lua:19: expected: 0, actual: 3 +stack traceback: + test/test_with_err_fail_pass.lua:19: in function 'TestSomething.test2_Fail2' + +5) testFuncFail1 +test/test_with_err_fail_pass.lua:62: expected: 0, actual: 3 +stack traceback: + test/test_with_err_fail_pass.lua:62: in function 'testFuncFail1' + +Ran 15 tests in 0.001 seconds, 5 successes, 5 failures, 5 errors diff --git a/Resources/Libraries/luaunit/test/ref/errFailPassXmlDefault-failures.txt b/Resources/Libraries/luaunit/test/ref/errFailPassXmlDefault-failures.txt new file mode 100644 index 0000000..db2925d --- /dev/null +++ b/Resources/Libraries/luaunit/test/ref/errFailPassXmlDefault-failures.txt @@ -0,0 +1,20 @@ +# XML output to test/ref/errFailPassXmlDefault-failures.xml +# Started on 04/30/19 20:22:52 +# Starting class: TestAnotherThing +# Starting test: TestAnotherThing.test1_Success1 +# Starting test: TestAnotherThing.test1_Success2 +# Starting test: TestAnotherThing.test3_Fail1 +# Failure: test/test_with_err_fail_pass.lua:49: expected: 0, actual: 2 +# Starting test: TestAnotherThing.test3_Fail2 +# Failure: test/test_with_err_fail_pass.lua:53: expected: 0, actual: 3 +# Starting class: TestSomething +# Starting test: TestSomething.test1_Success1 +# Starting test: TestSomething.test1_Success2 +# Starting test: TestSomething.test2_Fail1 +# Failure: test/test_with_err_fail_pass.lua:15: expected: 0, actual: 2 +# Starting test: TestSomething.test2_Fail2 +# Failure: test/test_with_err_fail_pass.lua:19: expected: 0, actual: 3 +# Starting test: testFuncFail1 +# Failure: test/test_with_err_fail_pass.lua:62: expected: 0, actual: 3 +# Starting test: testFuncSuccess1 +# Ran 10 tests in 0.000 seconds, 5 successes, 5 failures, 5 non-selected diff --git a/Resources/Libraries/luaunit/test/ref/errFailPassXmlDefault-failures.xml b/Resources/Libraries/luaunit/test/ref/errFailPassXmlDefault-failures.xml new file mode 100644 index 0000000..0ddd0e0 --- /dev/null +++ b/Resources/Libraries/luaunit/test/ref/errFailPassXmlDefault-failures.xml @@ -0,0 +1,46 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<testsuites> + <testsuite name="LuaUnit" id="00001" package="" hostname="localhost" tests="10" timestamp="2019-04-30T20:22:52" time="0.000" errors="0" failures="5" skipped="0"> + <properties> + <property name="Lua Version" value="Lua 5.4"/> + <property name="LuaUnit Version" value="3.4"/> + </properties> + <testcase classname="TestAnotherThing" name="TestAnotherThing.test1_Success1" time="0.000"> + </testcase> + <testcase classname="TestAnotherThing" name="TestAnotherThing.test1_Success2" time="0.000"> + </testcase> + <testcase classname="TestAnotherThing" name="TestAnotherThing.test3_Fail1" time="0.000"> + <failure type="test/test_with_err_fail_pass.lua:49: expected: 0, actual: 2"> + <![CDATA[stack traceback: + test/test_with_err_fail_pass.lua:49: in function 'TestAnotherThing.test3_Fail1']]></failure> + </testcase> + <testcase classname="TestAnotherThing" name="TestAnotherThing.test3_Fail2" time="0.000"> + <failure type="test/test_with_err_fail_pass.lua:53: expected: 0, actual: 3"> + <![CDATA[stack traceback: + test/test_with_err_fail_pass.lua:53: in function 'TestAnotherThing.test3_Fail2']]></failure> + </testcase> + <testcase classname="TestSomething" name="TestSomething.test1_Success1" time="0.000"> + </testcase> + <testcase classname="TestSomething" name="TestSomething.test1_Success2" time="0.000"> + </testcase> + <testcase classname="TestSomething" name="TestSomething.test2_Fail1" time="0.000"> + <failure type="test/test_with_err_fail_pass.lua:15: expected: 0, actual: 2"> + <![CDATA[stack traceback: + test/test_with_err_fail_pass.lua:15: in function 'TestSomething.test2_Fail1']]></failure> + </testcase> + <testcase classname="TestSomething" name="TestSomething.test2_Fail2" time="0.000"> + <failure type="test/test_with_err_fail_pass.lua:19: expected: 0, actual: 3"> + <![CDATA[stack traceback: + test/test_with_err_fail_pass.lua:19: in function 'TestSomething.test2_Fail2']]></failure> + </testcase> + <testcase classname="[TestFunctions]" name="testFuncFail1" time="0.000"> + <failure type="test/test_with_err_fail_pass.lua:62: expected: 0, actual: 3"> + <![CDATA[stack traceback: + test/test_with_err_fail_pass.lua:62: in function 'testFuncFail1']]></failure> + </testcase> + <testcase classname="[TestFunctions]" name="testFuncSuccess1" time="0.000"> + </testcase> + <system-out/> + <system-err/> + </testsuite> +</testsuites> diff --git a/Resources/Libraries/luaunit/test/ref/errFailPassXmlDefault-success.txt b/Resources/Libraries/luaunit/test/ref/errFailPassXmlDefault-success.txt new file mode 100644 index 0000000..03927e4 --- /dev/null +++ b/Resources/Libraries/luaunit/test/ref/errFailPassXmlDefault-success.txt @@ -0,0 +1,10 @@ +# XML output to test/ref/errFailPassXmlDefault-success.xml +# Started on 04/30/19 20:22:52 +# Starting class: TestAnotherThing +# Starting test: TestAnotherThing.test1_Success1 +# Starting test: TestAnotherThing.test1_Success2 +# Starting class: TestSomething +# Starting test: TestSomething.test1_Success1 +# Starting test: TestSomething.test1_Success2 +# Starting test: testFuncSuccess1 +# Ran 5 tests in 0.000 seconds, 5 successes, 0 failures, 10 non-selected diff --git a/Resources/Libraries/luaunit/test/ref/errFailPassXmlDefault-success.xml b/Resources/Libraries/luaunit/test/ref/errFailPassXmlDefault-success.xml new file mode 100644 index 0000000..22763a5 --- /dev/null +++ b/Resources/Libraries/luaunit/test/ref/errFailPassXmlDefault-success.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<testsuites> + <testsuite name="LuaUnit" id="00001" package="" hostname="localhost" tests="5" timestamp="2019-04-30T20:22:52" time="0.000" errors="0" failures="0" skipped="0"> + <properties> + <property name="Lua Version" value="Lua 5.4"/> + <property name="LuaUnit Version" value="3.4"/> + </properties> + <testcase classname="TestAnotherThing" name="TestAnotherThing.test1_Success1" time="0.000"> + </testcase> + <testcase classname="TestAnotherThing" name="TestAnotherThing.test1_Success2" time="0.000"> + </testcase> + <testcase classname="TestSomething" name="TestSomething.test1_Success1" time="0.000"> + </testcase> + <testcase classname="TestSomething" name="TestSomething.test1_Success2" time="0.000"> + </testcase> + <testcase classname="[TestFunctions]" name="testFuncSuccess1" time="0.000"> + </testcase> + <system-out/> + <system-err/> + </testsuite> +</testsuites> diff --git a/Resources/Libraries/luaunit/test/ref/errFailPassXmlDefault.txt b/Resources/Libraries/luaunit/test/ref/errFailPassXmlDefault.txt new file mode 100644 index 0000000..0e4c49e --- /dev/null +++ b/Resources/Libraries/luaunit/test/ref/errFailPassXmlDefault.txt @@ -0,0 +1,30 @@ +# XML output to test/ref/errFailPassXmlDefault.xml +# Started on 04/30/19 20:22:52 +# Starting class: TestAnotherThing +# Starting test: TestAnotherThing.test1_Success1 +# Starting test: TestAnotherThing.test1_Success2 +# Starting test: TestAnotherThing.test2_Err1 +# Error: test/test_with_err_fail_pass.lua:41: attempt to perform arithmetic on a table value +# Starting test: TestAnotherThing.test2_Err2 +# Error: test/test_with_err_fail_pass.lua:45: attempt to perform arithmetic on a table value +# Starting test: TestAnotherThing.test3_Fail1 +# Failure: test/test_with_err_fail_pass.lua:49: expected: 0, actual: 2 +# Starting test: TestAnotherThing.test3_Fail2 +# Failure: test/test_with_err_fail_pass.lua:53: expected: 0, actual: 3 +# Starting class: TestSomething +# Starting test: TestSomething.test1_Success1 +# Starting test: TestSomething.test1_Success2 +# Starting test: TestSomething.test2_Fail1 +# Failure: test/test_with_err_fail_pass.lua:15: expected: 0, actual: 2 +# Starting test: TestSomething.test2_Fail2 +# Failure: test/test_with_err_fail_pass.lua:19: expected: 0, actual: 3 +# Starting test: TestSomething.test3_Err1 +# Error: test/test_with_err_fail_pass.lua:23: attempt to perform arithmetic on a table value +# Starting test: TestSomething.test3_Err2 +# Error: test/test_with_err_fail_pass.lua:27: attempt to perform arithmetic on a table value +# Starting test: testFuncErr1 +# Error: test/test_with_err_fail_pass.lua:66: attempt to perform arithmetic on a table value +# Starting test: testFuncFail1 +# Failure: test/test_with_err_fail_pass.lua:62: expected: 0, actual: 3 +# Starting test: testFuncSuccess1 +# Ran 15 tests in 0.004 seconds, 5 successes, 5 failures, 5 errors diff --git a/Resources/Libraries/luaunit/test/ref/errFailPassXmlDefault.xml b/Resources/Libraries/luaunit/test/ref/errFailPassXmlDefault.xml new file mode 100644 index 0000000..9292bcb --- /dev/null +++ b/Resources/Libraries/luaunit/test/ref/errFailPassXmlDefault.xml @@ -0,0 +1,71 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<testsuites> + <testsuite name="LuaUnit" id="00001" package="" hostname="localhost" tests="15" timestamp="2019-04-30T20:22:52" time="0.004" errors="5" failures="5" skipped="0"> + <properties> + <property name="Lua Version" value="Lua 5.4"/> + <property name="LuaUnit Version" value="3.4"/> + </properties> + <testcase classname="TestAnotherThing" name="TestAnotherThing.test1_Success1" time="0.000"> + </testcase> + <testcase classname="TestAnotherThing" name="TestAnotherThing.test1_Success2" time="0.000"> + </testcase> + <testcase classname="TestAnotherThing" name="TestAnotherThing.test2_Err1" time="0.000"> + <error type="test/test_with_err_fail_pass.lua:41: attempt to perform arithmetic on a table value"> + <![CDATA[stack traceback: + test/test_with_err_fail_pass.lua:41: in function 'TestAnotherThing.test2_Err1']]></error> + </testcase> + <testcase classname="TestAnotherThing" name="TestAnotherThing.test2_Err2" time="0.000"> + <error type="test/test_with_err_fail_pass.lua:45: attempt to perform arithmetic on a table value"> + <![CDATA[stack traceback: + test/test_with_err_fail_pass.lua:45: in function 'TestAnotherThing.test2_Err2']]></error> + </testcase> + <testcase classname="TestAnotherThing" name="TestAnotherThing.test3_Fail1" time="0.000"> + <failure type="test/test_with_err_fail_pass.lua:49: expected: 0, actual: 2"> + <![CDATA[stack traceback: + test/test_with_err_fail_pass.lua:49: in function 'TestAnotherThing.test3_Fail1']]></failure> + </testcase> + <testcase classname="TestAnotherThing" name="TestAnotherThing.test3_Fail2" time="0.000"> + <failure type="test/test_with_err_fail_pass.lua:53: expected: 0, actual: 3"> + <![CDATA[stack traceback: + test/test_with_err_fail_pass.lua:53: in function 'TestAnotherThing.test3_Fail2']]></failure> + </testcase> + <testcase classname="TestSomething" name="TestSomething.test1_Success1" time="0.000"> + </testcase> + <testcase classname="TestSomething" name="TestSomething.test1_Success2" time="0.000"> + </testcase> + <testcase classname="TestSomething" name="TestSomething.test2_Fail1" time="0.000"> + <failure type="test/test_with_err_fail_pass.lua:15: expected: 0, actual: 2"> + <![CDATA[stack traceback: + test/test_with_err_fail_pass.lua:15: in function 'TestSomething.test2_Fail1']]></failure> + </testcase> + <testcase classname="TestSomething" name="TestSomething.test2_Fail2" time="0.000"> + <failure type="test/test_with_err_fail_pass.lua:19: expected: 0, actual: 3"> + <![CDATA[stack traceback: + test/test_with_err_fail_pass.lua:19: in function 'TestSomething.test2_Fail2']]></failure> + </testcase> + <testcase classname="TestSomething" name="TestSomething.test3_Err1" time="0.000"> + <error type="test/test_with_err_fail_pass.lua:23: attempt to perform arithmetic on a table value"> + <![CDATA[stack traceback: + test/test_with_err_fail_pass.lua:23: in function 'TestSomething.test3_Err1']]></error> + </testcase> + <testcase classname="TestSomething" name="TestSomething.test3_Err2" time="0.000"> + <error type="test/test_with_err_fail_pass.lua:27: attempt to perform arithmetic on a table value"> + <![CDATA[stack traceback: + test/test_with_err_fail_pass.lua:27: in function 'TestSomething.test3_Err2']]></error> + </testcase> + <testcase classname="[TestFunctions]" name="testFuncErr1" time="0.000"> + <error type="test/test_with_err_fail_pass.lua:66: attempt to perform arithmetic on a table value"> + <![CDATA[stack traceback: + test/test_with_err_fail_pass.lua:66: in function 'testFuncErr1']]></error> + </testcase> + <testcase classname="[TestFunctions]" name="testFuncFail1" time="0.000"> + <failure type="test/test_with_err_fail_pass.lua:62: expected: 0, actual: 3"> + <![CDATA[stack traceback: + test/test_with_err_fail_pass.lua:62: in function 'testFuncFail1']]></failure> + </testcase> + <testcase classname="[TestFunctions]" name="testFuncSuccess1" time="0.000"> + </testcase> + <system-out/> + <system-err/> + </testsuite> +</testsuites> diff --git a/Resources/Libraries/luaunit/test/ref/errFailPassXmlQuiet-failures.txt b/Resources/Libraries/luaunit/test/ref/errFailPassXmlQuiet-failures.txt new file mode 100644 index 0000000..b3ce2f9 --- /dev/null +++ b/Resources/Libraries/luaunit/test/ref/errFailPassXmlQuiet-failures.txt @@ -0,0 +1,20 @@ +# XML output to test/ref/errFailPassXmlQuiet-failures.xml +# Started on 04/30/19 20:22:53 +# Starting class: TestAnotherThing +# Starting test: TestAnotherThing.test1_Success1 +# Starting test: TestAnotherThing.test1_Success2 +# Starting test: TestAnotherThing.test3_Fail1 +# Failure: test/test_with_err_fail_pass.lua:49: expected: 0, actual: 2 +# Starting test: TestAnotherThing.test3_Fail2 +# Failure: test/test_with_err_fail_pass.lua:53: expected: 0, actual: 3 +# Starting class: TestSomething +# Starting test: TestSomething.test1_Success1 +# Starting test: TestSomething.test1_Success2 +# Starting test: TestSomething.test2_Fail1 +# Failure: test/test_with_err_fail_pass.lua:15: expected: 0, actual: 2 +# Starting test: TestSomething.test2_Fail2 +# Failure: test/test_with_err_fail_pass.lua:19: expected: 0, actual: 3 +# Starting test: testFuncFail1 +# Failure: test/test_with_err_fail_pass.lua:62: expected: 0, actual: 3 +# Starting test: testFuncSuccess1 +# Ran 10 tests in 0.000 seconds, 5 successes, 5 failures, 5 non-selected diff --git a/Resources/Libraries/luaunit/test/ref/errFailPassXmlQuiet-failures.xml b/Resources/Libraries/luaunit/test/ref/errFailPassXmlQuiet-failures.xml new file mode 100644 index 0000000..9ff97d5 --- /dev/null +++ b/Resources/Libraries/luaunit/test/ref/errFailPassXmlQuiet-failures.xml @@ -0,0 +1,46 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<testsuites> + <testsuite name="LuaUnit" id="00001" package="" hostname="localhost" tests="10" timestamp="2019-04-30T20:22:53" time="0.000" errors="0" failures="5" skipped="0"> + <properties> + <property name="Lua Version" value="Lua 5.4"/> + <property name="LuaUnit Version" value="3.4"/> + </properties> + <testcase classname="TestAnotherThing" name="TestAnotherThing.test1_Success1" time="0.000"> + </testcase> + <testcase classname="TestAnotherThing" name="TestAnotherThing.test1_Success2" time="0.000"> + </testcase> + <testcase classname="TestAnotherThing" name="TestAnotherThing.test3_Fail1" time="0.000"> + <failure type="test/test_with_err_fail_pass.lua:49: expected: 0, actual: 2"> + <![CDATA[stack traceback: + test/test_with_err_fail_pass.lua:49: in function 'TestAnotherThing.test3_Fail1']]></failure> + </testcase> + <testcase classname="TestAnotherThing" name="TestAnotherThing.test3_Fail2" time="0.000"> + <failure type="test/test_with_err_fail_pass.lua:53: expected: 0, actual: 3"> + <![CDATA[stack traceback: + test/test_with_err_fail_pass.lua:53: in function 'TestAnotherThing.test3_Fail2']]></failure> + </testcase> + <testcase classname="TestSomething" name="TestSomething.test1_Success1" time="0.000"> + </testcase> + <testcase classname="TestSomething" name="TestSomething.test1_Success2" time="0.000"> + </testcase> + <testcase classname="TestSomething" name="TestSomething.test2_Fail1" time="0.000"> + <failure type="test/test_with_err_fail_pass.lua:15: expected: 0, actual: 2"> + <![CDATA[stack traceback: + test/test_with_err_fail_pass.lua:15: in function 'TestSomething.test2_Fail1']]></failure> + </testcase> + <testcase classname="TestSomething" name="TestSomething.test2_Fail2" time="0.000"> + <failure type="test/test_with_err_fail_pass.lua:19: expected: 0, actual: 3"> + <![CDATA[stack traceback: + test/test_with_err_fail_pass.lua:19: in function 'TestSomething.test2_Fail2']]></failure> + </testcase> + <testcase classname="[TestFunctions]" name="testFuncFail1" time="0.000"> + <failure type="test/test_with_err_fail_pass.lua:62: expected: 0, actual: 3"> + <![CDATA[stack traceback: + test/test_with_err_fail_pass.lua:62: in function 'testFuncFail1']]></failure> + </testcase> + <testcase classname="[TestFunctions]" name="testFuncSuccess1" time="0.000"> + </testcase> + <system-out/> + <system-err/> + </testsuite> +</testsuites> diff --git a/Resources/Libraries/luaunit/test/ref/errFailPassXmlQuiet-success.txt b/Resources/Libraries/luaunit/test/ref/errFailPassXmlQuiet-success.txt new file mode 100644 index 0000000..92cc7b6 --- /dev/null +++ b/Resources/Libraries/luaunit/test/ref/errFailPassXmlQuiet-success.txt @@ -0,0 +1,10 @@ +# XML output to test/ref/errFailPassXmlQuiet-success.xml +# Started on 04/30/19 20:22:52 +# Starting class: TestAnotherThing +# Starting test: TestAnotherThing.test1_Success1 +# Starting test: TestAnotherThing.test1_Success2 +# Starting class: TestSomething +# Starting test: TestSomething.test1_Success1 +# Starting test: TestSomething.test1_Success2 +# Starting test: testFuncSuccess1 +# Ran 5 tests in 0.000 seconds, 5 successes, 0 failures, 10 non-selected diff --git a/Resources/Libraries/luaunit/test/ref/errFailPassXmlQuiet-success.xml b/Resources/Libraries/luaunit/test/ref/errFailPassXmlQuiet-success.xml new file mode 100644 index 0000000..22763a5 --- /dev/null +++ b/Resources/Libraries/luaunit/test/ref/errFailPassXmlQuiet-success.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<testsuites> + <testsuite name="LuaUnit" id="00001" package="" hostname="localhost" tests="5" timestamp="2019-04-30T20:22:52" time="0.000" errors="0" failures="0" skipped="0"> + <properties> + <property name="Lua Version" value="Lua 5.4"/> + <property name="LuaUnit Version" value="3.4"/> + </properties> + <testcase classname="TestAnotherThing" name="TestAnotherThing.test1_Success1" time="0.000"> + </testcase> + <testcase classname="TestAnotherThing" name="TestAnotherThing.test1_Success2" time="0.000"> + </testcase> + <testcase classname="TestSomething" name="TestSomething.test1_Success1" time="0.000"> + </testcase> + <testcase classname="TestSomething" name="TestSomething.test1_Success2" time="0.000"> + </testcase> + <testcase classname="[TestFunctions]" name="testFuncSuccess1" time="0.000"> + </testcase> + <system-out/> + <system-err/> + </testsuite> +</testsuites> diff --git a/Resources/Libraries/luaunit/test/ref/errFailPassXmlQuiet.txt b/Resources/Libraries/luaunit/test/ref/errFailPassXmlQuiet.txt new file mode 100644 index 0000000..1ce973f --- /dev/null +++ b/Resources/Libraries/luaunit/test/ref/errFailPassXmlQuiet.txt @@ -0,0 +1,30 @@ +# XML output to test/ref/errFailPassXmlQuiet.xml +# Started on 04/30/19 20:22:52 +# Starting class: TestAnotherThing +# Starting test: TestAnotherThing.test1_Success1 +# Starting test: TestAnotherThing.test1_Success2 +# Starting test: TestAnotherThing.test2_Err1 +# Error: test/test_with_err_fail_pass.lua:41: attempt to perform arithmetic on a table value +# Starting test: TestAnotherThing.test2_Err2 +# Error: test/test_with_err_fail_pass.lua:45: attempt to perform arithmetic on a table value +# Starting test: TestAnotherThing.test3_Fail1 +# Failure: test/test_with_err_fail_pass.lua:49: expected: 0, actual: 2 +# Starting test: TestAnotherThing.test3_Fail2 +# Failure: test/test_with_err_fail_pass.lua:53: expected: 0, actual: 3 +# Starting class: TestSomething +# Starting test: TestSomething.test1_Success1 +# Starting test: TestSomething.test1_Success2 +# Starting test: TestSomething.test2_Fail1 +# Failure: test/test_with_err_fail_pass.lua:15: expected: 0, actual: 2 +# Starting test: TestSomething.test2_Fail2 +# Failure: test/test_with_err_fail_pass.lua:19: expected: 0, actual: 3 +# Starting test: TestSomething.test3_Err1 +# Error: test/test_with_err_fail_pass.lua:23: attempt to perform arithmetic on a table value +# Starting test: TestSomething.test3_Err2 +# Error: test/test_with_err_fail_pass.lua:27: attempt to perform arithmetic on a table value +# Starting test: testFuncErr1 +# Error: test/test_with_err_fail_pass.lua:66: attempt to perform arithmetic on a table value +# Starting test: testFuncFail1 +# Failure: test/test_with_err_fail_pass.lua:62: expected: 0, actual: 3 +# Starting test: testFuncSuccess1 +# Ran 15 tests in 0.000 seconds, 5 successes, 5 failures, 5 errors diff --git a/Resources/Libraries/luaunit/test/ref/errFailPassXmlQuiet.xml b/Resources/Libraries/luaunit/test/ref/errFailPassXmlQuiet.xml new file mode 100644 index 0000000..a878300 --- /dev/null +++ b/Resources/Libraries/luaunit/test/ref/errFailPassXmlQuiet.xml @@ -0,0 +1,71 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<testsuites> + <testsuite name="LuaUnit" id="00001" package="" hostname="localhost" tests="15" timestamp="2019-04-30T20:22:52" time="0.000" errors="5" failures="5" skipped="0"> + <properties> + <property name="Lua Version" value="Lua 5.4"/> + <property name="LuaUnit Version" value="3.4"/> + </properties> + <testcase classname="TestAnotherThing" name="TestAnotherThing.test1_Success1" time="0.000"> + </testcase> + <testcase classname="TestAnotherThing" name="TestAnotherThing.test1_Success2" time="0.000"> + </testcase> + <testcase classname="TestAnotherThing" name="TestAnotherThing.test2_Err1" time="0.000"> + <error type="test/test_with_err_fail_pass.lua:41: attempt to perform arithmetic on a table value"> + <![CDATA[stack traceback: + test/test_with_err_fail_pass.lua:41: in function 'TestAnotherThing.test2_Err1']]></error> + </testcase> + <testcase classname="TestAnotherThing" name="TestAnotherThing.test2_Err2" time="0.000"> + <error type="test/test_with_err_fail_pass.lua:45: attempt to perform arithmetic on a table value"> + <![CDATA[stack traceback: + test/test_with_err_fail_pass.lua:45: in function 'TestAnotherThing.test2_Err2']]></error> + </testcase> + <testcase classname="TestAnotherThing" name="TestAnotherThing.test3_Fail1" time="0.000"> + <failure type="test/test_with_err_fail_pass.lua:49: expected: 0, actual: 2"> + <![CDATA[stack traceback: + test/test_with_err_fail_pass.lua:49: in function 'TestAnotherThing.test3_Fail1']]></failure> + </testcase> + <testcase classname="TestAnotherThing" name="TestAnotherThing.test3_Fail2" time="0.000"> + <failure type="test/test_with_err_fail_pass.lua:53: expected: 0, actual: 3"> + <![CDATA[stack traceback: + test/test_with_err_fail_pass.lua:53: in function 'TestAnotherThing.test3_Fail2']]></failure> + </testcase> + <testcase classname="TestSomething" name="TestSomething.test1_Success1" time="0.000"> + </testcase> + <testcase classname="TestSomething" name="TestSomething.test1_Success2" time="0.000"> + </testcase> + <testcase classname="TestSomething" name="TestSomething.test2_Fail1" time="0.000"> + <failure type="test/test_with_err_fail_pass.lua:15: expected: 0, actual: 2"> + <![CDATA[stack traceback: + test/test_with_err_fail_pass.lua:15: in function 'TestSomething.test2_Fail1']]></failure> + </testcase> + <testcase classname="TestSomething" name="TestSomething.test2_Fail2" time="0.000"> + <failure type="test/test_with_err_fail_pass.lua:19: expected: 0, actual: 3"> + <![CDATA[stack traceback: + test/test_with_err_fail_pass.lua:19: in function 'TestSomething.test2_Fail2']]></failure> + </testcase> + <testcase classname="TestSomething" name="TestSomething.test3_Err1" time="0.000"> + <error type="test/test_with_err_fail_pass.lua:23: attempt to perform arithmetic on a table value"> + <![CDATA[stack traceback: + test/test_with_err_fail_pass.lua:23: in function 'TestSomething.test3_Err1']]></error> + </testcase> + <testcase classname="TestSomething" name="TestSomething.test3_Err2" time="0.000"> + <error type="test/test_with_err_fail_pass.lua:27: attempt to perform arithmetic on a table value"> + <![CDATA[stack traceback: + test/test_with_err_fail_pass.lua:27: in function 'TestSomething.test3_Err2']]></error> + </testcase> + <testcase classname="[TestFunctions]" name="testFuncErr1" time="0.000"> + <error type="test/test_with_err_fail_pass.lua:66: attempt to perform arithmetic on a table value"> + <![CDATA[stack traceback: + test/test_with_err_fail_pass.lua:66: in function 'testFuncErr1']]></error> + </testcase> + <testcase classname="[TestFunctions]" name="testFuncFail1" time="0.000"> + <failure type="test/test_with_err_fail_pass.lua:62: expected: 0, actual: 3"> + <![CDATA[stack traceback: + test/test_with_err_fail_pass.lua:62: in function 'testFuncFail1']]></failure> + </testcase> + <testcase classname="[TestFunctions]" name="testFuncSuccess1" time="0.000"> + </testcase> + <system-out/> + <system-err/> + </testsuite> +</testsuites> diff --git a/Resources/Libraries/luaunit/test/ref/errFailPassXmlVerbose-failures.txt b/Resources/Libraries/luaunit/test/ref/errFailPassXmlVerbose-failures.txt new file mode 100644 index 0000000..cab05c6 --- /dev/null +++ b/Resources/Libraries/luaunit/test/ref/errFailPassXmlVerbose-failures.txt @@ -0,0 +1,20 @@ +# XML output to test/ref/errFailPassXmlVerbose-failures.xml +# Started on 04/30/19 20:22:53 +# Starting class: TestAnotherThing +# Starting test: TestAnotherThing.test1_Success1 +# Starting test: TestAnotherThing.test1_Success2 +# Starting test: TestAnotherThing.test3_Fail1 +# Failure: test/test_with_err_fail_pass.lua:49: expected: 0, actual: 2 +# Starting test: TestAnotherThing.test3_Fail2 +# Failure: test/test_with_err_fail_pass.lua:53: expected: 0, actual: 3 +# Starting class: TestSomething +# Starting test: TestSomething.test1_Success1 +# Starting test: TestSomething.test1_Success2 +# Starting test: TestSomething.test2_Fail1 +# Failure: test/test_with_err_fail_pass.lua:15: expected: 0, actual: 2 +# Starting test: TestSomething.test2_Fail2 +# Failure: test/test_with_err_fail_pass.lua:19: expected: 0, actual: 3 +# Starting test: testFuncFail1 +# Failure: test/test_with_err_fail_pass.lua:62: expected: 0, actual: 3 +# Starting test: testFuncSuccess1 +# Ran 10 tests in 0.000 seconds, 5 successes, 5 failures, 5 non-selected diff --git a/Resources/Libraries/luaunit/test/ref/errFailPassXmlVerbose-failures.xml b/Resources/Libraries/luaunit/test/ref/errFailPassXmlVerbose-failures.xml new file mode 100644 index 0000000..9ff97d5 --- /dev/null +++ b/Resources/Libraries/luaunit/test/ref/errFailPassXmlVerbose-failures.xml @@ -0,0 +1,46 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<testsuites> + <testsuite name="LuaUnit" id="00001" package="" hostname="localhost" tests="10" timestamp="2019-04-30T20:22:53" time="0.000" errors="0" failures="5" skipped="0"> + <properties> + <property name="Lua Version" value="Lua 5.4"/> + <property name="LuaUnit Version" value="3.4"/> + </properties> + <testcase classname="TestAnotherThing" name="TestAnotherThing.test1_Success1" time="0.000"> + </testcase> + <testcase classname="TestAnotherThing" name="TestAnotherThing.test1_Success2" time="0.000"> + </testcase> + <testcase classname="TestAnotherThing" name="TestAnotherThing.test3_Fail1" time="0.000"> + <failure type="test/test_with_err_fail_pass.lua:49: expected: 0, actual: 2"> + <![CDATA[stack traceback: + test/test_with_err_fail_pass.lua:49: in function 'TestAnotherThing.test3_Fail1']]></failure> + </testcase> + <testcase classname="TestAnotherThing" name="TestAnotherThing.test3_Fail2" time="0.000"> + <failure type="test/test_with_err_fail_pass.lua:53: expected: 0, actual: 3"> + <![CDATA[stack traceback: + test/test_with_err_fail_pass.lua:53: in function 'TestAnotherThing.test3_Fail2']]></failure> + </testcase> + <testcase classname="TestSomething" name="TestSomething.test1_Success1" time="0.000"> + </testcase> + <testcase classname="TestSomething" name="TestSomething.test1_Success2" time="0.000"> + </testcase> + <testcase classname="TestSomething" name="TestSomething.test2_Fail1" time="0.000"> + <failure type="test/test_with_err_fail_pass.lua:15: expected: 0, actual: 2"> + <![CDATA[stack traceback: + test/test_with_err_fail_pass.lua:15: in function 'TestSomething.test2_Fail1']]></failure> + </testcase> + <testcase classname="TestSomething" name="TestSomething.test2_Fail2" time="0.000"> + <failure type="test/test_with_err_fail_pass.lua:19: expected: 0, actual: 3"> + <![CDATA[stack traceback: + test/test_with_err_fail_pass.lua:19: in function 'TestSomething.test2_Fail2']]></failure> + </testcase> + <testcase classname="[TestFunctions]" name="testFuncFail1" time="0.000"> + <failure type="test/test_with_err_fail_pass.lua:62: expected: 0, actual: 3"> + <![CDATA[stack traceback: + test/test_with_err_fail_pass.lua:62: in function 'testFuncFail1']]></failure> + </testcase> + <testcase classname="[TestFunctions]" name="testFuncSuccess1" time="0.000"> + </testcase> + <system-out/> + <system-err/> + </testsuite> +</testsuites> diff --git a/Resources/Libraries/luaunit/test/ref/errFailPassXmlVerbose-success.txt b/Resources/Libraries/luaunit/test/ref/errFailPassXmlVerbose-success.txt new file mode 100644 index 0000000..41f49ff --- /dev/null +++ b/Resources/Libraries/luaunit/test/ref/errFailPassXmlVerbose-success.txt @@ -0,0 +1,10 @@ +# XML output to test/ref/errFailPassXmlVerbose-success.xml +# Started on 04/30/19 20:22:53 +# Starting class: TestAnotherThing +# Starting test: TestAnotherThing.test1_Success1 +# Starting test: TestAnotherThing.test1_Success2 +# Starting class: TestSomething +# Starting test: TestSomething.test1_Success1 +# Starting test: TestSomething.test1_Success2 +# Starting test: testFuncSuccess1 +# Ran 5 tests in 0.000 seconds, 5 successes, 0 failures, 10 non-selected diff --git a/Resources/Libraries/luaunit/test/ref/errFailPassXmlVerbose-success.xml b/Resources/Libraries/luaunit/test/ref/errFailPassXmlVerbose-success.xml new file mode 100644 index 0000000..3f10177 --- /dev/null +++ b/Resources/Libraries/luaunit/test/ref/errFailPassXmlVerbose-success.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<testsuites> + <testsuite name="LuaUnit" id="00001" package="" hostname="localhost" tests="5" timestamp="2019-04-30T20:22:53" time="0.000" errors="0" failures="0" skipped="0"> + <properties> + <property name="Lua Version" value="Lua 5.4"/> + <property name="LuaUnit Version" value="3.4"/> + </properties> + <testcase classname="TestAnotherThing" name="TestAnotherThing.test1_Success1" time="0.000"> + </testcase> + <testcase classname="TestAnotherThing" name="TestAnotherThing.test1_Success2" time="0.000"> + </testcase> + <testcase classname="TestSomething" name="TestSomething.test1_Success1" time="0.000"> + </testcase> + <testcase classname="TestSomething" name="TestSomething.test1_Success2" time="0.000"> + </testcase> + <testcase classname="[TestFunctions]" name="testFuncSuccess1" time="0.000"> + </testcase> + <system-out/> + <system-err/> + </testsuite> +</testsuites> diff --git a/Resources/Libraries/luaunit/test/ref/errFailPassXmlVerbose.txt b/Resources/Libraries/luaunit/test/ref/errFailPassXmlVerbose.txt new file mode 100644 index 0000000..9ff66b8 --- /dev/null +++ b/Resources/Libraries/luaunit/test/ref/errFailPassXmlVerbose.txt @@ -0,0 +1,30 @@ +# XML output to test/ref/errFailPassXmlVerbose.xml +# Started on 04/30/19 20:22:53 +# Starting class: TestAnotherThing +# Starting test: TestAnotherThing.test1_Success1 +# Starting test: TestAnotherThing.test1_Success2 +# Starting test: TestAnotherThing.test2_Err1 +# Error: test/test_with_err_fail_pass.lua:41: attempt to perform arithmetic on a table value +# Starting test: TestAnotherThing.test2_Err2 +# Error: test/test_with_err_fail_pass.lua:45: attempt to perform arithmetic on a table value +# Starting test: TestAnotherThing.test3_Fail1 +# Failure: test/test_with_err_fail_pass.lua:49: expected: 0, actual: 2 +# Starting test: TestAnotherThing.test3_Fail2 +# Failure: test/test_with_err_fail_pass.lua:53: expected: 0, actual: 3 +# Starting class: TestSomething +# Starting test: TestSomething.test1_Success1 +# Starting test: TestSomething.test1_Success2 +# Starting test: TestSomething.test2_Fail1 +# Failure: test/test_with_err_fail_pass.lua:15: expected: 0, actual: 2 +# Starting test: TestSomething.test2_Fail2 +# Failure: test/test_with_err_fail_pass.lua:19: expected: 0, actual: 3 +# Starting test: TestSomething.test3_Err1 +# Error: test/test_with_err_fail_pass.lua:23: attempt to perform arithmetic on a table value +# Starting test: TestSomething.test3_Err2 +# Error: test/test_with_err_fail_pass.lua:27: attempt to perform arithmetic on a table value +# Starting test: testFuncErr1 +# Error: test/test_with_err_fail_pass.lua:66: attempt to perform arithmetic on a table value +# Starting test: testFuncFail1 +# Failure: test/test_with_err_fail_pass.lua:62: expected: 0, actual: 3 +# Starting test: testFuncSuccess1 +# Ran 15 tests in 0.000 seconds, 5 successes, 5 failures, 5 errors diff --git a/Resources/Libraries/luaunit/test/ref/errFailPassXmlVerbose.xml b/Resources/Libraries/luaunit/test/ref/errFailPassXmlVerbose.xml new file mode 100644 index 0000000..dc36ba1 --- /dev/null +++ b/Resources/Libraries/luaunit/test/ref/errFailPassXmlVerbose.xml @@ -0,0 +1,71 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<testsuites> + <testsuite name="LuaUnit" id="00001" package="" hostname="localhost" tests="15" timestamp="2019-04-30T20:22:53" time="0.000" errors="5" failures="5" skipped="0"> + <properties> + <property name="Lua Version" value="Lua 5.4"/> + <property name="LuaUnit Version" value="3.4"/> + </properties> + <testcase classname="TestAnotherThing" name="TestAnotherThing.test1_Success1" time="0.000"> + </testcase> + <testcase classname="TestAnotherThing" name="TestAnotherThing.test1_Success2" time="0.000"> + </testcase> + <testcase classname="TestAnotherThing" name="TestAnotherThing.test2_Err1" time="0.000"> + <error type="test/test_with_err_fail_pass.lua:41: attempt to perform arithmetic on a table value"> + <![CDATA[stack traceback: + test/test_with_err_fail_pass.lua:41: in function 'TestAnotherThing.test2_Err1']]></error> + </testcase> + <testcase classname="TestAnotherThing" name="TestAnotherThing.test2_Err2" time="0.000"> + <error type="test/test_with_err_fail_pass.lua:45: attempt to perform arithmetic on a table value"> + <![CDATA[stack traceback: + test/test_with_err_fail_pass.lua:45: in function 'TestAnotherThing.test2_Err2']]></error> + </testcase> + <testcase classname="TestAnotherThing" name="TestAnotherThing.test3_Fail1" time="0.000"> + <failure type="test/test_with_err_fail_pass.lua:49: expected: 0, actual: 2"> + <![CDATA[stack traceback: + test/test_with_err_fail_pass.lua:49: in function 'TestAnotherThing.test3_Fail1']]></failure> + </testcase> + <testcase classname="TestAnotherThing" name="TestAnotherThing.test3_Fail2" time="0.000"> + <failure type="test/test_with_err_fail_pass.lua:53: expected: 0, actual: 3"> + <![CDATA[stack traceback: + test/test_with_err_fail_pass.lua:53: in function 'TestAnotherThing.test3_Fail2']]></failure> + </testcase> + <testcase classname="TestSomething" name="TestSomething.test1_Success1" time="0.000"> + </testcase> + <testcase classname="TestSomething" name="TestSomething.test1_Success2" time="0.000"> + </testcase> + <testcase classname="TestSomething" name="TestSomething.test2_Fail1" time="0.000"> + <failure type="test/test_with_err_fail_pass.lua:15: expected: 0, actual: 2"> + <![CDATA[stack traceback: + test/test_with_err_fail_pass.lua:15: in function 'TestSomething.test2_Fail1']]></failure> + </testcase> + <testcase classname="TestSomething" name="TestSomething.test2_Fail2" time="0.000"> + <failure type="test/test_with_err_fail_pass.lua:19: expected: 0, actual: 3"> + <![CDATA[stack traceback: + test/test_with_err_fail_pass.lua:19: in function 'TestSomething.test2_Fail2']]></failure> + </testcase> + <testcase classname="TestSomething" name="TestSomething.test3_Err1" time="0.000"> + <error type="test/test_with_err_fail_pass.lua:23: attempt to perform arithmetic on a table value"> + <![CDATA[stack traceback: + test/test_with_err_fail_pass.lua:23: in function 'TestSomething.test3_Err1']]></error> + </testcase> + <testcase classname="TestSomething" name="TestSomething.test3_Err2" time="0.000"> + <error type="test/test_with_err_fail_pass.lua:27: attempt to perform arithmetic on a table value"> + <![CDATA[stack traceback: + test/test_with_err_fail_pass.lua:27: in function 'TestSomething.test3_Err2']]></error> + </testcase> + <testcase classname="[TestFunctions]" name="testFuncErr1" time="0.000"> + <error type="test/test_with_err_fail_pass.lua:66: attempt to perform arithmetic on a table value"> + <![CDATA[stack traceback: + test/test_with_err_fail_pass.lua:66: in function 'testFuncErr1']]></error> + </testcase> + <testcase classname="[TestFunctions]" name="testFuncFail1" time="0.000"> + <failure type="test/test_with_err_fail_pass.lua:62: expected: 0, actual: 3"> + <![CDATA[stack traceback: + test/test_with_err_fail_pass.lua:62: in function 'testFuncFail1']]></failure> + </testcase> + <testcase classname="[TestFunctions]" name="testFuncSuccess1" time="0.000"> + </testcase> + <system-out/> + <system-err/> + </testsuite> +</testsuites> diff --git a/Resources/Libraries/luaunit/test/ref/errPassFailTapQuiet.txt b/Resources/Libraries/luaunit/test/ref/errPassFailTapQuiet.txt new file mode 100644 index 0000000..fb5196c --- /dev/null +++ b/Resources/Libraries/luaunit/test/ref/errPassFailTapQuiet.txt @@ -0,0 +1,20 @@ +1..15 +# Started on 03/22/16 21:54:40 +# Starting class: TestAnotherThing +ok 1 TestAnotherThing.test1_Success1 +ok 2 TestAnotherThing.test1_Success2 +not ok 3 TestAnotherThing.test2_Err1 +not ok 4 TestAnotherThing.test2_Err2 +not ok 5 TestAnotherThing.test3_Fail1 +not ok 6 TestAnotherThing.test3_Fail2 +# Starting class: TestSomething +ok 7 TestSomething.test1_Success1 +ok 8 TestSomething.test1_Success2 +not ok 9 TestSomething.test2_Fail1 +not ok 10 TestSomething.test2_Fail2 +not ok 11 TestSomething.test3_Err1 +not ok 12 TestSomething.test3_Err2 +not ok 13 testFuncErr1 +not ok 14 testFuncFail1 +ok 15 testFuncSuccess1 +# Ran 15 tests in 0.000 seconds, 5 successes, 5 failures, 5 errors diff --git a/Resources/Libraries/luaunit/test/ref/exampleNilDefault.txt b/Resources/Libraries/luaunit/test/ref/exampleNilDefault.txt new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/Resources/Libraries/luaunit/test/ref/exampleNilDefault.txt diff --git a/Resources/Libraries/luaunit/test/ref/exampleTapDefault.txt b/Resources/Libraries/luaunit/test/ref/exampleTapDefault.txt new file mode 100644 index 0000000..0ae668d --- /dev/null +++ b/Resources/Libraries/luaunit/test/ref/exampleTapDefault.txt @@ -0,0 +1,36 @@ +1..16 +# Started on 04/28/19 21:02:44 +# Starting class: TestTiti +not ok 1 TestTiti.test1_withFailure +# example_with_luaunit.lua:109: expected: 2, actual: 1 +not ok 2 TestTiti.test2_withFailure +# example_with_luaunit.lua:118: expected: "bof" +# actual: "hop" +ok 3 TestTiti.test3 +# Starting class: TestToto +not ok 4 TestToto.test1_withFailure +# example_with_luaunit.lua:21: expected: 2, actual: 1 +not ok 5 TestToto.test2_withFailure +# example_with_luaunit.lua:30: expected: "bof" +# actual: "hop" +ok 6 TestToto.test3 +not ok 7 TestToto.test4 +# example_with_luaunit.lua:43: Received the not expected value: 1 +not ok 8 TestToto.test5 +# example_with_luaunit.lua:49: expected: false or nil, actual: 1 +not ok 9 TestToto.test6 +# example_with_luaunit.lua:57: expected: false, actual: nil +not ok 10 TestToto.test7 +# example_with_luaunit.lua:63: expected: {1, 2, three=3} +# actual: {1, 2} +not ok 11 TestToto.test8a +# example_with_luaunit.lua:81: Bouhouhoum error! +not ok 12 TestToto.test8b +# example_with_luaunit.lua:81: Bouhouhoum error! +ok 13 # SKIP Test is skipped because ... +not ok 14 test1_withAssertionError +# example_with_luaunit.lua:134: assertion failed! +not ok 15 test2_withAssertionError +# example_with_luaunit.lua:140: assertion failed! +ok 16 test3 +# Ran 15 tests in 0.000 seconds, 3 successes, 8 failures, 4 errors, 1 skipped diff --git a/Resources/Libraries/luaunit/test/ref/exampleTapQuiet.txt b/Resources/Libraries/luaunit/test/ref/exampleTapQuiet.txt new file mode 100644 index 0000000..5cd7c62 --- /dev/null +++ b/Resources/Libraries/luaunit/test/ref/exampleTapQuiet.txt @@ -0,0 +1,21 @@ +1..16 +# Started on 04/28/19 21:02:44 +# Starting class: TestTiti +not ok 1 TestTiti.test1_withFailure +not ok 2 TestTiti.test2_withFailure +ok 3 TestTiti.test3 +# Starting class: TestToto +not ok 4 TestToto.test1_withFailure +not ok 5 TestToto.test2_withFailure +ok 6 TestToto.test3 +not ok 7 TestToto.test4 +not ok 8 TestToto.test5 +not ok 9 TestToto.test6 +not ok 10 TestToto.test7 +not ok 11 TestToto.test8a +not ok 12 TestToto.test8b +ok 13 # SKIP Test is skipped because ... +not ok 14 test1_withAssertionError +not ok 15 test2_withAssertionError +ok 16 test3 +# Ran 15 tests in 0.000 seconds, 3 successes, 8 failures, 4 errors, 1 skipped diff --git a/Resources/Libraries/luaunit/test/ref/exampleTapVerbose.txt b/Resources/Libraries/luaunit/test/ref/exampleTapVerbose.txt new file mode 100644 index 0000000..23e3917 --- /dev/null +++ b/Resources/Libraries/luaunit/test/ref/exampleTapVerbose.txt @@ -0,0 +1,63 @@ +1..16 +# Started on 04/28/19 21:02:44 +# Starting class: TestTiti +not ok 1 TestTiti.test1_withFailure +# example_with_luaunit.lua:109: expected: 2, actual: 1 +# stack traceback: +# example_with_luaunit.lua:109: in function 'TestTiti.test1_withFailure' +not ok 2 TestTiti.test2_withFailure +# example_with_luaunit.lua:118: expected: "bof" +# actual: "hop" +# stack traceback: +# example_with_luaunit.lua:118: in function 'TestTiti.test2_withFailure' +ok 3 TestTiti.test3 +# Starting class: TestToto +not ok 4 TestToto.test1_withFailure +# example_with_luaunit.lua:21: expected: 2, actual: 1 +# stack traceback: +# example_with_luaunit.lua:21: in function 'TestToto.test1_withFailure' +not ok 5 TestToto.test2_withFailure +# example_with_luaunit.lua:30: expected: "bof" +# actual: "hop" +# stack traceback: +# example_with_luaunit.lua:30: in function 'TestToto.test2_withFailure' +ok 6 TestToto.test3 +not ok 7 TestToto.test4 +# example_with_luaunit.lua:43: Received the not expected value: 1 +# stack traceback: +# example_with_luaunit.lua:43: in function 'TestToto.test4' +not ok 8 TestToto.test5 +# example_with_luaunit.lua:49: expected: false or nil, actual: 1 +# stack traceback: +# example_with_luaunit.lua:49: in function 'TestToto.test5' +not ok 9 TestToto.test6 +# example_with_luaunit.lua:57: expected: false, actual: nil +# stack traceback: +# example_with_luaunit.lua:57: in function 'TestToto.test6' +not ok 10 TestToto.test7 +# example_with_luaunit.lua:63: expected: {1, 2, three=3} +# actual: {1, 2} +# stack traceback: +# example_with_luaunit.lua:63: in function 'TestToto.test7' +not ok 11 TestToto.test8a +# example_with_luaunit.lua:81: Bouhouhoum error! +# stack traceback: +# example_with_luaunit.lua:81: in function 'funcWithError' +# example_with_luaunit.lua:68: in function 'TestToto.test8a' +not ok 12 TestToto.test8b +# example_with_luaunit.lua:81: Bouhouhoum error! +# stack traceback: +# example_with_luaunit.lua:81: in function 'funcWithError' +# example_with_luaunit.lua:77: in function 'funcWithFuncWithError' +# example_with_luaunit.lua:73: in function 'TestToto.test8b' +ok 13 # SKIP Test is skipped because ... +not ok 14 test1_withAssertionError +# example_with_luaunit.lua:134: assertion failed! +# stack traceback: +# example_with_luaunit.lua:134: in function 'test1_withAssertionError' +not ok 15 test2_withAssertionError +# example_with_luaunit.lua:140: assertion failed! +# stack traceback: +# example_with_luaunit.lua:140: in function 'test2_withAssertionError' +ok 16 test3 +# Ran 15 tests in 0.000 seconds, 3 successes, 8 failures, 4 errors, 1 skipped diff --git a/Resources/Libraries/luaunit/test/ref/exampleTextDefault.txt b/Resources/Libraries/luaunit/test/ref/exampleTextDefault.txt new file mode 100644 index 0000000..9af3673 --- /dev/null +++ b/Resources/Libraries/luaunit/test/ref/exampleTextDefault.txt @@ -0,0 +1,72 @@ +FF.FF.FFFFEESEE. +Tests with errors: +------------------ +1) TestToto.test8a +example_with_luaunit.lua:81: Bouhouhoum error! +stack traceback: + example_with_luaunit.lua:81: in function 'funcWithError' + example_with_luaunit.lua:68: in function 'TestToto.test8a' + +2) TestToto.test8b +example_with_luaunit.lua:81: Bouhouhoum error! +stack traceback: + example_with_luaunit.lua:81: in function 'funcWithError' + example_with_luaunit.lua:77: in function 'funcWithFuncWithError' + example_with_luaunit.lua:73: in function 'TestToto.test8b' + +3) test1_withAssertionError +example_with_luaunit.lua:134: assertion failed! +stack traceback: + example_with_luaunit.lua:134: in function 'test1_withAssertionError' + +4) test2_withAssertionError +example_with_luaunit.lua:140: assertion failed! +stack traceback: + example_with_luaunit.lua:140: in function 'test2_withAssertionError' + +Failed tests: +------------- +1) TestTiti.test1_withFailure +example_with_luaunit.lua:109: expected: 2, actual: 1 +stack traceback: + example_with_luaunit.lua:109: in function 'TestTiti.test1_withFailure' + +2) TestTiti.test2_withFailure +example_with_luaunit.lua:118: expected: "bof" +actual: "hop" +stack traceback: + example_with_luaunit.lua:118: in function 'TestTiti.test2_withFailure' + +3) TestToto.test1_withFailure +example_with_luaunit.lua:21: expected: 2, actual: 1 +stack traceback: + example_with_luaunit.lua:21: in function 'TestToto.test1_withFailure' + +4) TestToto.test2_withFailure +example_with_luaunit.lua:30: expected: "bof" +actual: "hop" +stack traceback: + example_with_luaunit.lua:30: in function 'TestToto.test2_withFailure' + +5) TestToto.test4 +example_with_luaunit.lua:43: Received the not expected value: 1 +stack traceback: + example_with_luaunit.lua:43: in function 'TestToto.test4' + +6) TestToto.test5 +example_with_luaunit.lua:49: expected: false or nil, actual: 1 +stack traceback: + example_with_luaunit.lua:49: in function 'TestToto.test5' + +7) TestToto.test6 +example_with_luaunit.lua:57: expected: false, actual: nil +stack traceback: + example_with_luaunit.lua:57: in function 'TestToto.test6' + +8) TestToto.test7 +example_with_luaunit.lua:63: expected: {1, 2, three=3} +actual: {1, 2} +stack traceback: + example_with_luaunit.lua:63: in function 'TestToto.test7' + +Ran 15 tests in 0.009 seconds, 3 successes, 8 failures, 4 errors, 1 skipped diff --git a/Resources/Libraries/luaunit/test/ref/exampleTextQuiet.txt b/Resources/Libraries/luaunit/test/ref/exampleTextQuiet.txt new file mode 100644 index 0000000..38ba67d --- /dev/null +++ b/Resources/Libraries/luaunit/test/ref/exampleTextQuiet.txt @@ -0,0 +1,72 @@ +FF.FF.FFFFEESEE. +Tests with errors: +------------------ +1) TestToto.test8a +example_with_luaunit.lua:81: Bouhouhoum error! +stack traceback: + example_with_luaunit.lua:81: in function 'funcWithError' + example_with_luaunit.lua:68: in function 'TestToto.test8a' + +2) TestToto.test8b +example_with_luaunit.lua:81: Bouhouhoum error! +stack traceback: + example_with_luaunit.lua:81: in function 'funcWithError' + example_with_luaunit.lua:77: in function 'funcWithFuncWithError' + example_with_luaunit.lua:73: in function 'TestToto.test8b' + +3) test1_withAssertionError +example_with_luaunit.lua:134: assertion failed! +stack traceback: + example_with_luaunit.lua:134: in function 'test1_withAssertionError' + +4) test2_withAssertionError +example_with_luaunit.lua:140: assertion failed! +stack traceback: + example_with_luaunit.lua:140: in function 'test2_withAssertionError' + +Failed tests: +------------- +1) TestTiti.test1_withFailure +example_with_luaunit.lua:109: expected: 2, actual: 1 +stack traceback: + example_with_luaunit.lua:109: in function 'TestTiti.test1_withFailure' + +2) TestTiti.test2_withFailure +example_with_luaunit.lua:118: expected: "bof" +actual: "hop" +stack traceback: + example_with_luaunit.lua:118: in function 'TestTiti.test2_withFailure' + +3) TestToto.test1_withFailure +example_with_luaunit.lua:21: expected: 2, actual: 1 +stack traceback: + example_with_luaunit.lua:21: in function 'TestToto.test1_withFailure' + +4) TestToto.test2_withFailure +example_with_luaunit.lua:30: expected: "bof" +actual: "hop" +stack traceback: + example_with_luaunit.lua:30: in function 'TestToto.test2_withFailure' + +5) TestToto.test4 +example_with_luaunit.lua:43: Received the not expected value: 1 +stack traceback: + example_with_luaunit.lua:43: in function 'TestToto.test4' + +6) TestToto.test5 +example_with_luaunit.lua:49: expected: false or nil, actual: 1 +stack traceback: + example_with_luaunit.lua:49: in function 'TestToto.test5' + +7) TestToto.test6 +example_with_luaunit.lua:57: expected: false, actual: nil +stack traceback: + example_with_luaunit.lua:57: in function 'TestToto.test6' + +8) TestToto.test7 +example_with_luaunit.lua:63: expected: {1, 2, three=3} +actual: {1, 2} +stack traceback: + example_with_luaunit.lua:63: in function 'TestToto.test7' + +Ran 15 tests in 0.000 seconds, 3 successes, 8 failures, 4 errors, 1 skipped diff --git a/Resources/Libraries/luaunit/test/ref/exampleTextVerbose.txt b/Resources/Libraries/luaunit/test/ref/exampleTextVerbose.txt new file mode 100644 index 0000000..3d0c8ea --- /dev/null +++ b/Resources/Libraries/luaunit/test/ref/exampleTextVerbose.txt @@ -0,0 +1,105 @@ +Started on 04/28/19 21:02:44 + TestTiti.test1_withFailure ... FAIL +example_with_luaunit.lua:109: expected: 2, actual: 1 + TestTiti.test2_withFailure ... FAIL +example_with_luaunit.lua:118: expected: "bof" +actual: "hop" + TestTiti.test3 ... Ok + TestToto.test1_withFailure ... FAIL +example_with_luaunit.lua:21: expected: 2, actual: 1 + TestToto.test2_withFailure ... FAIL +example_with_luaunit.lua:30: expected: "bof" +actual: "hop" + TestToto.test3 ... Ok + TestToto.test4 ... FAIL +example_with_luaunit.lua:43: Received the not expected value: 1 + TestToto.test5 ... FAIL +example_with_luaunit.lua:49: expected: false or nil, actual: 1 + TestToto.test6 ... FAIL +example_with_luaunit.lua:57: expected: false, actual: nil + TestToto.test7 ... FAIL +example_with_luaunit.lua:63: expected: {1, 2, three=3} +actual: {1, 2} + TestToto.test8a ... ERROR +example_with_luaunit.lua:81: Bouhouhoum error! + TestToto.test8b ... ERROR +example_with_luaunit.lua:81: Bouhouhoum error! + TestToto.test_skipped ... SKIP +Test is skipped because ... + test1_withAssertionError ... ERROR +example_with_luaunit.lua:134: assertion failed! + test2_withAssertionError ... ERROR +example_with_luaunit.lua:140: assertion failed! + test3 ... Ok +========================================================= +Tests with errors: +------------------ +1) TestToto.test8a +example_with_luaunit.lua:81: Bouhouhoum error! +stack traceback: + example_with_luaunit.lua:81: in function 'funcWithError' + example_with_luaunit.lua:68: in function 'TestToto.test8a' + +2) TestToto.test8b +example_with_luaunit.lua:81: Bouhouhoum error! +stack traceback: + example_with_luaunit.lua:81: in function 'funcWithError' + example_with_luaunit.lua:77: in function 'funcWithFuncWithError' + example_with_luaunit.lua:73: in function 'TestToto.test8b' + +3) test1_withAssertionError +example_with_luaunit.lua:134: assertion failed! +stack traceback: + example_with_luaunit.lua:134: in function 'test1_withAssertionError' + +4) test2_withAssertionError +example_with_luaunit.lua:140: assertion failed! +stack traceback: + example_with_luaunit.lua:140: in function 'test2_withAssertionError' + +Failed tests: +------------- +1) TestTiti.test1_withFailure +example_with_luaunit.lua:109: expected: 2, actual: 1 +stack traceback: + example_with_luaunit.lua:109: in function 'TestTiti.test1_withFailure' + +2) TestTiti.test2_withFailure +example_with_luaunit.lua:118: expected: "bof" +actual: "hop" +stack traceback: + example_with_luaunit.lua:118: in function 'TestTiti.test2_withFailure' + +3) TestToto.test1_withFailure +example_with_luaunit.lua:21: expected: 2, actual: 1 +stack traceback: + example_with_luaunit.lua:21: in function 'TestToto.test1_withFailure' + +4) TestToto.test2_withFailure +example_with_luaunit.lua:30: expected: "bof" +actual: "hop" +stack traceback: + example_with_luaunit.lua:30: in function 'TestToto.test2_withFailure' + +5) TestToto.test4 +example_with_luaunit.lua:43: Received the not expected value: 1 +stack traceback: + example_with_luaunit.lua:43: in function 'TestToto.test4' + +6) TestToto.test5 +example_with_luaunit.lua:49: expected: false or nil, actual: 1 +stack traceback: + example_with_luaunit.lua:49: in function 'TestToto.test5' + +7) TestToto.test6 +example_with_luaunit.lua:57: expected: false, actual: nil +stack traceback: + example_with_luaunit.lua:57: in function 'TestToto.test6' + +8) TestToto.test7 +example_with_luaunit.lua:63: expected: {1, 2, three=3} +actual: {1, 2} +stack traceback: + example_with_luaunit.lua:63: in function 'TestToto.test7' + +Ran 15 tests in 0.000 seconds, 3 successes, 8 failures, 4 errors, 1 skipped diff --git a/Resources/Libraries/luaunit/test/ref/exampleXmlDefault.txt b/Resources/Libraries/luaunit/test/ref/exampleXmlDefault.txt new file mode 100644 index 0000000..db288f5 --- /dev/null +++ b/Resources/Libraries/luaunit/test/ref/exampleXmlDefault.txt @@ -0,0 +1,36 @@ +# XML output to test/ref/exampleXmlDefault.xml +# Started on 04/28/19 21:02:44 +# Starting class: TestTiti +# Starting test: TestTiti.test1_withFailure +# Failure: example_with_luaunit.lua:109: expected: 2, actual: 1 +# Starting test: TestTiti.test2_withFailure +# Failure: example_with_luaunit.lua:118: expected: "bof" +# actual: "hop" +# Starting test: TestTiti.test3 +# Starting class: TestToto +# Starting test: TestToto.test1_withFailure +# Failure: example_with_luaunit.lua:21: expected: 2, actual: 1 +# Starting test: TestToto.test2_withFailure +# Failure: example_with_luaunit.lua:30: expected: "bof" +# actual: "hop" +# Starting test: TestToto.test3 +# Starting test: TestToto.test4 +# Failure: example_with_luaunit.lua:43: Received the not expected value: 1 +# Starting test: TestToto.test5 +# Failure: example_with_luaunit.lua:49: expected: false or nil, actual: 1 +# Starting test: TestToto.test6 +# Failure: example_with_luaunit.lua:57: expected: false, actual: nil +# Starting test: TestToto.test7 +# Failure: example_with_luaunit.lua:63: expected: {1, 2, three=3} +# actual: {1, 2} +# Starting test: TestToto.test8a +# Error: example_with_luaunit.lua:81: Bouhouhoum error! +# Starting test: TestToto.test8b +# Error: example_with_luaunit.lua:81: Bouhouhoum error! +# Starting test: TestToto.test_skipped +# Starting test: test1_withAssertionError +# Error: example_with_luaunit.lua:134: assertion failed! +# Starting test: test2_withAssertionError +# Error: example_with_luaunit.lua:140: assertion failed! +# Starting test: test3 +# Ran 15 tests in 0.009 seconds, 3 successes, 8 failures, 4 errors, 1 skipped diff --git a/Resources/Libraries/luaunit/test/ref/exampleXmlDefault.xml b/Resources/Libraries/luaunit/test/ref/exampleXmlDefault.xml new file mode 100644 index 0000000..c403c80 --- /dev/null +++ b/Resources/Libraries/luaunit/test/ref/exampleXmlDefault.xml @@ -0,0 +1,86 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<testsuites> + <testsuite name="LuaUnit" id="00001" package="" hostname="localhost" tests="15" timestamp="2019-04-28T21:02:44" time="0.009" errors="4" failures="8" skipped="1"> + <properties> + <property name="Lua Version" value="Lua 5.4"/> + <property name="LuaUnit Version" value="3.4"/> + </properties> + <testcase classname="TestTiti" name="TestTiti.test1_withFailure" time="0.000"> + <failure type="example_with_luaunit.lua:109: expected: 2, actual: 1"> + <![CDATA[stack traceback: + example_with_luaunit.lua:109: in function 'TestTiti.test1_withFailure']]></failure> + </testcase> + <testcase classname="TestTiti" name="TestTiti.test2_withFailure" time="0.000"> + <failure type="example_with_luaunit.lua:118: expected: "bof" +actual: "hop""> + <![CDATA[stack traceback: + example_with_luaunit.lua:118: in function 'TestTiti.test2_withFailure']]></failure> + </testcase> + <testcase classname="TestTiti" name="TestTiti.test3" time="0.000"> + </testcase> + <testcase classname="TestToto" name="TestToto.test1_withFailure" time="0.000"> + <failure type="example_with_luaunit.lua:21: expected: 2, actual: 1"> + <![CDATA[stack traceback: + example_with_luaunit.lua:21: in function 'TestToto.test1_withFailure']]></failure> + </testcase> + <testcase classname="TestToto" name="TestToto.test2_withFailure" time="0.000"> + <failure type="example_with_luaunit.lua:30: expected: "bof" +actual: "hop""> + <![CDATA[stack traceback: + example_with_luaunit.lua:30: in function 'TestToto.test2_withFailure']]></failure> + </testcase> + <testcase classname="TestToto" name="TestToto.test3" time="0.000"> + </testcase> + <testcase classname="TestToto" name="TestToto.test4" time="0.000"> + <failure type="example_with_luaunit.lua:43: Received the not expected value: 1"> + <![CDATA[stack traceback: + example_with_luaunit.lua:43: in function 'TestToto.test4']]></failure> + </testcase> + <testcase classname="TestToto" name="TestToto.test5" time="0.000"> + <failure type="example_with_luaunit.lua:49: expected: false or nil, actual: 1"> + <![CDATA[stack traceback: + example_with_luaunit.lua:49: in function 'TestToto.test5']]></failure> + </testcase> + <testcase classname="TestToto" name="TestToto.test6" time="0.000"> + <failure type="example_with_luaunit.lua:57: expected: false, actual: nil"> + <![CDATA[stack traceback: + example_with_luaunit.lua:57: in function 'TestToto.test6']]></failure> + </testcase> + <testcase classname="TestToto" name="TestToto.test7" time="0.000"> + <failure type="example_with_luaunit.lua:63: expected: {1, 2, three=3} +actual: {1, 2}"> + <![CDATA[stack traceback: + example_with_luaunit.lua:63: in function 'TestToto.test7']]></failure> + </testcase> + <testcase classname="TestToto" name="TestToto.test8a" time="0.000"> + <error type="example_with_luaunit.lua:81: Bouhouhoum error!"> + <![CDATA[stack traceback: + example_with_luaunit.lua:81: in function 'funcWithError' + example_with_luaunit.lua:68: in function 'TestToto.test8a']]></error> + </testcase> + <testcase classname="TestToto" name="TestToto.test8b" time="0.000"> + <error type="example_with_luaunit.lua:81: Bouhouhoum error!"> + <![CDATA[stack traceback: + example_with_luaunit.lua:81: in function 'funcWithError' + example_with_luaunit.lua:77: in function 'funcWithFuncWithError' + example_with_luaunit.lua:73: in function 'TestToto.test8b']]></error> + </testcase> + <testcase classname="TestToto" name="TestToto.test_skipped" time="0.000"> + <skipped>Test is skipped because ...</skipped> + </testcase> + <testcase classname="[TestFunctions]" name="test1_withAssertionError" time="0.000"> + <error type="example_with_luaunit.lua:134: assertion failed!"> + <![CDATA[stack traceback: + example_with_luaunit.lua:134: in function 'test1_withAssertionError']]></error> + </testcase> + <testcase classname="[TestFunctions]" name="test2_withAssertionError" time="0.000"> + <error type="example_with_luaunit.lua:140: assertion failed!"> + <![CDATA[stack traceback: + example_with_luaunit.lua:140: in function 'test2_withAssertionError']]></error> + </testcase> + <testcase classname="[TestFunctions]" name="test3" time="0.000"> + </testcase> + <system-out/> + <system-err/> + </testsuite> +</testsuites> diff --git a/Resources/Libraries/luaunit/test/ref/exampleXmlQuiet.txt b/Resources/Libraries/luaunit/test/ref/exampleXmlQuiet.txt new file mode 100644 index 0000000..171688a --- /dev/null +++ b/Resources/Libraries/luaunit/test/ref/exampleXmlQuiet.txt @@ -0,0 +1,36 @@ +# XML output to test/ref/exampleXmlQuiet.xml +# Started on 04/28/19 21:02:44 +# Starting class: TestTiti +# Starting test: TestTiti.test1_withFailure +# Failure: example_with_luaunit.lua:109: expected: 2, actual: 1 +# Starting test: TestTiti.test2_withFailure +# Failure: example_with_luaunit.lua:118: expected: "bof" +# actual: "hop" +# Starting test: TestTiti.test3 +# Starting class: TestToto +# Starting test: TestToto.test1_withFailure +# Failure: example_with_luaunit.lua:21: expected: 2, actual: 1 +# Starting test: TestToto.test2_withFailure +# Failure: example_with_luaunit.lua:30: expected: "bof" +# actual: "hop" +# Starting test: TestToto.test3 +# Starting test: TestToto.test4 +# Failure: example_with_luaunit.lua:43: Received the not expected value: 1 +# Starting test: TestToto.test5 +# Failure: example_with_luaunit.lua:49: expected: false or nil, actual: 1 +# Starting test: TestToto.test6 +# Failure: example_with_luaunit.lua:57: expected: false, actual: nil +# Starting test: TestToto.test7 +# Failure: example_with_luaunit.lua:63: expected: {1, 2, three=3} +# actual: {1, 2} +# Starting test: TestToto.test8a +# Error: example_with_luaunit.lua:81: Bouhouhoum error! +# Starting test: TestToto.test8b +# Error: example_with_luaunit.lua:81: Bouhouhoum error! +# Starting test: TestToto.test_skipped +# Starting test: test1_withAssertionError +# Error: example_with_luaunit.lua:134: assertion failed! +# Starting test: test2_withAssertionError +# Error: example_with_luaunit.lua:140: assertion failed! +# Starting test: test3 +# Ran 15 tests in 0.000 seconds, 3 successes, 8 failures, 4 errors, 1 skipped diff --git a/Resources/Libraries/luaunit/test/ref/exampleXmlQuiet.xml b/Resources/Libraries/luaunit/test/ref/exampleXmlQuiet.xml new file mode 100644 index 0000000..9f8fbcf --- /dev/null +++ b/Resources/Libraries/luaunit/test/ref/exampleXmlQuiet.xml @@ -0,0 +1,86 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<testsuites> + <testsuite name="LuaUnit" id="00001" package="" hostname="localhost" tests="15" timestamp="2019-04-28T21:02:44" time="0.000" errors="4" failures="8" skipped="1"> + <properties> + <property name="Lua Version" value="Lua 5.4"/> + <property name="LuaUnit Version" value="3.4"/> + </properties> + <testcase classname="TestTiti" name="TestTiti.test1_withFailure" time="0.000"> + <failure type="example_with_luaunit.lua:109: expected: 2, actual: 1"> + <![CDATA[stack traceback: + example_with_luaunit.lua:109: in function 'TestTiti.test1_withFailure']]></failure> + </testcase> + <testcase classname="TestTiti" name="TestTiti.test2_withFailure" time="0.000"> + <failure type="example_with_luaunit.lua:118: expected: "bof" +actual: "hop""> + <![CDATA[stack traceback: + example_with_luaunit.lua:118: in function 'TestTiti.test2_withFailure']]></failure> + </testcase> + <testcase classname="TestTiti" name="TestTiti.test3" time="0.000"> + </testcase> + <testcase classname="TestToto" name="TestToto.test1_withFailure" time="0.000"> + <failure type="example_with_luaunit.lua:21: expected: 2, actual: 1"> + <![CDATA[stack traceback: + example_with_luaunit.lua:21: in function 'TestToto.test1_withFailure']]></failure> + </testcase> + <testcase classname="TestToto" name="TestToto.test2_withFailure" time="0.000"> + <failure type="example_with_luaunit.lua:30: expected: "bof" +actual: "hop""> + <![CDATA[stack traceback: + example_with_luaunit.lua:30: in function 'TestToto.test2_withFailure']]></failure> + </testcase> + <testcase classname="TestToto" name="TestToto.test3" time="0.000"> + </testcase> + <testcase classname="TestToto" name="TestToto.test4" time="0.000"> + <failure type="example_with_luaunit.lua:43: Received the not expected value: 1"> + <![CDATA[stack traceback: + example_with_luaunit.lua:43: in function 'TestToto.test4']]></failure> + </testcase> + <testcase classname="TestToto" name="TestToto.test5" time="0.000"> + <failure type="example_with_luaunit.lua:49: expected: false or nil, actual: 1"> + <![CDATA[stack traceback: + example_with_luaunit.lua:49: in function 'TestToto.test5']]></failure> + </testcase> + <testcase classname="TestToto" name="TestToto.test6" time="0.000"> + <failure type="example_with_luaunit.lua:57: expected: false, actual: nil"> + <![CDATA[stack traceback: + example_with_luaunit.lua:57: in function 'TestToto.test6']]></failure> + </testcase> + <testcase classname="TestToto" name="TestToto.test7" time="0.000"> + <failure type="example_with_luaunit.lua:63: expected: {1, 2, three=3} +actual: {1, 2}"> + <![CDATA[stack traceback: + example_with_luaunit.lua:63: in function 'TestToto.test7']]></failure> + </testcase> + <testcase classname="TestToto" name="TestToto.test8a" time="0.000"> + <error type="example_with_luaunit.lua:81: Bouhouhoum error!"> + <![CDATA[stack traceback: + example_with_luaunit.lua:81: in function 'funcWithError' + example_with_luaunit.lua:68: in function 'TestToto.test8a']]></error> + </testcase> + <testcase classname="TestToto" name="TestToto.test8b" time="0.000"> + <error type="example_with_luaunit.lua:81: Bouhouhoum error!"> + <![CDATA[stack traceback: + example_with_luaunit.lua:81: in function 'funcWithError' + example_with_luaunit.lua:77: in function 'funcWithFuncWithError' + example_with_luaunit.lua:73: in function 'TestToto.test8b']]></error> + </testcase> + <testcase classname="TestToto" name="TestToto.test_skipped" time="0.000"> + <skipped>Test is skipped because ...</skipped> + </testcase> + <testcase classname="[TestFunctions]" name="test1_withAssertionError" time="0.000"> + <error type="example_with_luaunit.lua:134: assertion failed!"> + <![CDATA[stack traceback: + example_with_luaunit.lua:134: in function 'test1_withAssertionError']]></error> + </testcase> + <testcase classname="[TestFunctions]" name="test2_withAssertionError" time="0.000"> + <error type="example_with_luaunit.lua:140: assertion failed!"> + <![CDATA[stack traceback: + example_with_luaunit.lua:140: in function 'test2_withAssertionError']]></error> + </testcase> + <testcase classname="[TestFunctions]" name="test3" time="0.000"> + </testcase> + <system-out/> + <system-err/> + </testsuite> +</testsuites> diff --git a/Resources/Libraries/luaunit/test/ref/exampleXmlVerbose.txt b/Resources/Libraries/luaunit/test/ref/exampleXmlVerbose.txt new file mode 100644 index 0000000..1b6410b --- /dev/null +++ b/Resources/Libraries/luaunit/test/ref/exampleXmlVerbose.txt @@ -0,0 +1,36 @@ +# XML output to test/ref/exampleXmlVerbose.xml +# Started on 04/28/19 21:02:44 +# Starting class: TestTiti +# Starting test: TestTiti.test1_withFailure +# Failure: example_with_luaunit.lua:109: expected: 2, actual: 1 +# Starting test: TestTiti.test2_withFailure +# Failure: example_with_luaunit.lua:118: expected: "bof" +# actual: "hop" +# Starting test: TestTiti.test3 +# Starting class: TestToto +# Starting test: TestToto.test1_withFailure +# Failure: example_with_luaunit.lua:21: expected: 2, actual: 1 +# Starting test: TestToto.test2_withFailure +# Failure: example_with_luaunit.lua:30: expected: "bof" +# actual: "hop" +# Starting test: TestToto.test3 +# Starting test: TestToto.test4 +# Failure: example_with_luaunit.lua:43: Received the not expected value: 1 +# Starting test: TestToto.test5 +# Failure: example_with_luaunit.lua:49: expected: false or nil, actual: 1 +# Starting test: TestToto.test6 +# Failure: example_with_luaunit.lua:57: expected: false, actual: nil +# Starting test: TestToto.test7 +# Failure: example_with_luaunit.lua:63: expected: {1, 2, three=3} +# actual: {1, 2} +# Starting test: TestToto.test8a +# Error: example_with_luaunit.lua:81: Bouhouhoum error! +# Starting test: TestToto.test8b +# Error: example_with_luaunit.lua:81: Bouhouhoum error! +# Starting test: TestToto.test_skipped +# Starting test: test1_withAssertionError +# Error: example_with_luaunit.lua:134: assertion failed! +# Starting test: test2_withAssertionError +# Error: example_with_luaunit.lua:140: assertion failed! +# Starting test: test3 +# Ran 15 tests in 0.010 seconds, 3 successes, 8 failures, 4 errors, 1 skipped diff --git a/Resources/Libraries/luaunit/test/ref/exampleXmlVerbose.xml b/Resources/Libraries/luaunit/test/ref/exampleXmlVerbose.xml new file mode 100644 index 0000000..7687c45 --- /dev/null +++ b/Resources/Libraries/luaunit/test/ref/exampleXmlVerbose.xml @@ -0,0 +1,86 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<testsuites> + <testsuite name="LuaUnit" id="00001" package="" hostname="localhost" tests="15" timestamp="2019-04-28T21:02:44" time="0.010" errors="4" failures="8" skipped="1"> + <properties> + <property name="Lua Version" value="Lua 5.4"/> + <property name="LuaUnit Version" value="3.4"/> + </properties> + <testcase classname="TestTiti" name="TestTiti.test1_withFailure" time="0.000"> + <failure type="example_with_luaunit.lua:109: expected: 2, actual: 1"> + <![CDATA[stack traceback: + example_with_luaunit.lua:109: in function 'TestTiti.test1_withFailure']]></failure> + </testcase> + <testcase classname="TestTiti" name="TestTiti.test2_withFailure" time="0.000"> + <failure type="example_with_luaunit.lua:118: expected: "bof" +actual: "hop""> + <![CDATA[stack traceback: + example_with_luaunit.lua:118: in function 'TestTiti.test2_withFailure']]></failure> + </testcase> + <testcase classname="TestTiti" name="TestTiti.test3" time="0.000"> + </testcase> + <testcase classname="TestToto" name="TestToto.test1_withFailure" time="0.000"> + <failure type="example_with_luaunit.lua:21: expected: 2, actual: 1"> + <![CDATA[stack traceback: + example_with_luaunit.lua:21: in function 'TestToto.test1_withFailure']]></failure> + </testcase> + <testcase classname="TestToto" name="TestToto.test2_withFailure" time="0.000"> + <failure type="example_with_luaunit.lua:30: expected: "bof" +actual: "hop""> + <![CDATA[stack traceback: + example_with_luaunit.lua:30: in function 'TestToto.test2_withFailure']]></failure> + </testcase> + <testcase classname="TestToto" name="TestToto.test3" time="0.000"> + </testcase> + <testcase classname="TestToto" name="TestToto.test4" time="0.000"> + <failure type="example_with_luaunit.lua:43: Received the not expected value: 1"> + <![CDATA[stack traceback: + example_with_luaunit.lua:43: in function 'TestToto.test4']]></failure> + </testcase> + <testcase classname="TestToto" name="TestToto.test5" time="0.000"> + <failure type="example_with_luaunit.lua:49: expected: false or nil, actual: 1"> + <![CDATA[stack traceback: + example_with_luaunit.lua:49: in function 'TestToto.test5']]></failure> + </testcase> + <testcase classname="TestToto" name="TestToto.test6" time="0.000"> + <failure type="example_with_luaunit.lua:57: expected: false, actual: nil"> + <![CDATA[stack traceback: + example_with_luaunit.lua:57: in function 'TestToto.test6']]></failure> + </testcase> + <testcase classname="TestToto" name="TestToto.test7" time="0.000"> + <failure type="example_with_luaunit.lua:63: expected: {1, 2, three=3} +actual: {1, 2}"> + <![CDATA[stack traceback: + example_with_luaunit.lua:63: in function 'TestToto.test7']]></failure> + </testcase> + <testcase classname="TestToto" name="TestToto.test8a" time="0.000"> + <error type="example_with_luaunit.lua:81: Bouhouhoum error!"> + <![CDATA[stack traceback: + example_with_luaunit.lua:81: in function 'funcWithError' + example_with_luaunit.lua:68: in function 'TestToto.test8a']]></error> + </testcase> + <testcase classname="TestToto" name="TestToto.test8b" time="0.000"> + <error type="example_with_luaunit.lua:81: Bouhouhoum error!"> + <![CDATA[stack traceback: + example_with_luaunit.lua:81: in function 'funcWithError' + example_with_luaunit.lua:77: in function 'funcWithFuncWithError' + example_with_luaunit.lua:73: in function 'TestToto.test8b']]></error> + </testcase> + <testcase classname="TestToto" name="TestToto.test_skipped" time="0.000"> + <skipped>Test is skipped because ...</skipped> + </testcase> + <testcase classname="[TestFunctions]" name="test1_withAssertionError" time="0.000"> + <error type="example_with_luaunit.lua:134: assertion failed!"> + <![CDATA[stack traceback: + example_with_luaunit.lua:134: in function 'test1_withAssertionError']]></error> + </testcase> + <testcase classname="[TestFunctions]" name="test2_withAssertionError" time="0.000"> + <error type="example_with_luaunit.lua:140: assertion failed!"> + <![CDATA[stack traceback: + example_with_luaunit.lua:140: in function 'test2_withAssertionError']]></error> + </testcase> + <testcase classname="[TestFunctions]" name="test3" time="0.000"> + </testcase> + <system-out/> + <system-err/> + </testsuite> +</testsuites> diff --git a/Resources/Libraries/luaunit/test/ref/some_lists_comparisons.txt b/Resources/Libraries/luaunit/test/ref/some_lists_comparisons.txt new file mode 100644 index 0000000..414c5a7 --- /dev/null +++ b/Resources/Libraries/luaunit/test/ref/some_lists_comparisons.txt @@ -0,0 +1,844 @@ +Started on 11/08/16 21:28:53 + TestListCompare.test1 ... FAIL +test/some_lists_comparisons.lua:22: expected: +{ + 121221, + 122211, + 121221, + 122211, + 121221, + 122212, + 121212, + 122112, + 121221, + 121212, + 122121 +} +actual: +{ + 121221, + 122211, + 121221, + 122211, + 121221, + 122212, + 121212, + 122112, + 122121, + 121212, + 122121 +} +List difference analysis: +* lists A (actual) and B (expected) have the same size +* lists A and B start differing at index 9 +* lists A and B are equal again from index 10 +* Common parts: + = A[1], B[1]: 121221 + = A[2], B[2]: 122211 + = A[3], B[3]: 121221 + = A[4], B[4]: 122211 + = A[5], B[5]: 121221 + = A[6], B[6]: 122212 + = A[7], B[7]: 121212 + = A[8], B[8]: 122112 +* Differing parts: + - A[9]: 122121 + + B[9]: 121221 +* Common parts at the end of the lists + = A[10], B[10]: 121212 + = A[11], B[11]: 122121 + TestListCompare.test1b ... FAIL +test/some_lists_comparisons.lua:28: expected: +{ + 121221, + 122211, + 121221, + 122112, + 121212, + 121122, + 121212, + 122122, + 121212, + 122112, + 121212 +} +actual: +{ + 121221, + 122211, + 121221, + 122112, + 121212, + 121122, + 121212, + 122122, + 121212, + 122112, + 122112 +} +List difference analysis: +* lists A (actual) and B (expected) have the same size +* lists A and B start differing at index 11 +* Common parts: + = A[1], B[1]: 121221 + = A[2], B[2]: 122211 + = A[3], B[3]: 121221 + = A[4], B[4]: 122112 + = A[5], B[5]: 121212 + = A[6], B[6]: 121122 + = A[7], B[7]: 121212 + = A[8], B[8]: 122122 + = A[9], B[9]: 121212 + = A[10], B[10]: 122112 +* Differing parts: + - A[11]: 122112 + + B[11]: 121212 + TestListCompare.test1c ... FAIL +test/some_lists_comparisons.lua:34: expected: +{ + 121212, + 122121, + 111212, + 122121, + 122121, + 121212, + 121121, + 121212, + 121221, + 122212, + 112121 +} +actual: +{ + 122112, + 122121, + 111212, + 122121, + 122121, + 121212, + 121121, + 121212, + 121221, + 122212, + 112121 +} +List difference analysis: +* lists A (actual) and B (expected) have the same size +* lists A and B start differing at index 1 +* lists A and B are equal again from index 2 +* Differing parts: + - A[1]: 122112 + + B[1]: 121212 +* Common parts at the end of the lists + = A[2], B[2]: 122121 + = A[3], B[3]: 111212 + = A[4], B[4]: 122121 + = A[5], B[5]: 122121 + = A[6], B[6]: 121212 + = A[7], B[7]: 121121 + = A[8], B[8]: 121212 + = A[9], B[9]: 121221 + = A[10], B[10]: 122212 + = A[11], B[11]: 112121 + TestListCompare.test2 ... FAIL +test/some_lists_comparisons.lua:43: expected: {1, 2, 3, 4, 5, 6, 8, 7, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20} +actual: {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20} +List difference analysis: +* lists A (actual) and B (expected) have the same size +* lists A and B start differing at index 7 +* lists A and B are equal again from index 9 +* Common parts: + = A[1], B[1]: 1 + = A[2], B[2]: 2 + = A[3], B[3]: 3 + = A[4], B[4]: 4 + = A[5], B[5]: 5 + = A[6], B[6]: 6 +* Differing parts: + - A[7]: 7 + + B[7]: 8 + - A[8]: 8 + + B[8]: 7 +* Common parts at the end of the lists + = A[9], B[9]: 9 + = A[10], B[10]: 10 + = A[11], B[11]: 11 + = A[12], B[12]: 12 + = A[13], B[13]: 13 + = A[14], B[14]: 14 + = A[15], B[15]: 15 + = A[16], B[16]: 16 + = A[17], B[17]: 17 + = A[18], B[18]: 18 + = A[19], B[19]: 19 + = A[20], B[20]: 20 + TestListCompare.test3 ... FAIL +test/some_lists_comparisons.lua:57: expected: {1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20} +actual: {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20} +List difference analysis: +* list sizes differ: list A (actual) has 20 items, list B (expected) has 19 items +* lists A and B start differing at index 7 +* lists A and B are equal again from index 8 for A, 7 for B +* Common parts: + = A[1], B[1]: 1 + = A[2], B[2]: 2 + = A[3], B[3]: 3 + = A[4], B[4]: 4 + = A[5], B[5]: 5 + = A[6], B[6]: 6 +* Present only in one list: + - A[7]: 7 +* Common parts at the end of the lists + = A[8], B[7]: 8 + = A[9], B[8]: 9 + = A[10], B[9]: 10 + = A[11], B[10]: 11 + = A[12], B[11]: 12 + = A[13], B[12]: 13 + = A[14], B[13]: 14 + = A[15], B[14]: 15 + = A[16], B[15]: 16 + = A[17], B[16]: 17 + = A[18], B[17]: 18 + = A[19], B[18]: 19 + = A[20], B[19]: 20 + TestListCompare.test4 ... FAIL +test/some_lists_comparisons.lua:74: expected: {1, 2, 3, 4, 5, 6, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20} +actual: {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20} +List difference analysis: +* list sizes differ: list A (actual) has 20 items, list B (expected) has 17 items +* lists A and B start differing at index 7 +* lists A and B are equal again from index 10 for A, 7 for B +* Common parts: + = A[1], B[1]: 1 + = A[2], B[2]: 2 + = A[3], B[3]: 3 + = A[4], B[4]: 4 + = A[5], B[5]: 5 + = A[6], B[6]: 6 +* Present only in one list: + - A[7]: 7 + - A[8]: 8 + - A[9]: 9 +* Common parts at the end of the lists + = A[10], B[7]: 10 + = A[11], B[8]: 11 + = A[12], B[9]: 12 + = A[13], B[10]: 13 + = A[14], B[11]: 14 + = A[15], B[12]: 15 + = A[16], B[13]: 16 + = A[17], B[14]: 17 + = A[18], B[15]: 18 + = A[19], B[16]: 19 + = A[20], B[17]: 20 + TestListCompare.test5a ... FAIL +test/some_lists_comparisons.lua:98: expected: {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20} +actual: {1, 2, 3, 4, 6, 5, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20} +List difference analysis: +* list sizes differ: list A (expected) has 17 items, list B (actual) has 20 items +* lists A and B start differing at index 5 +* lists A and B are equal again from index 7 for A, 10 for B +* Common parts: + = A[1], B[1]: 1 + = A[2], B[2]: 2 + = A[3], B[3]: 3 + = A[4], B[4]: 4 +* Differing parts: + - A[5]: 6 + + B[5]: 5 + - A[6]: 5 + + B[6]: 6 +* Present only in one list: + + B[7]: 7 + + B[8]: 8 + + B[9]: 9 +* Common parts at the end of the lists + = A[7], B[10]: 10 + = A[8], B[11]: 11 + = A[9], B[12]: 12 + = A[10], B[13]: 13 + = A[11], B[14]: 14 + = A[12], B[15]: 15 + = A[13], B[16]: 16 + = A[14], B[17]: 17 + = A[15], B[18]: 18 + = A[16], B[19]: 19 + = A[17], B[20]: 20 + TestListCompare.test5b ... FAIL +test/some_lists_comparisons.lua:103: expected: {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20} +actual: {1, 2, 3, 4, 6, 5, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20} +List difference analysis: +* list sizes differ: list A (actual) has 17 items, list B (expected) has 20 items +* lists A and B start differing at index 5 +* lists A and B are equal again from index 7 for A, 10 for B +* Common parts: + = A[1], B[1]: 1 + = A[2], B[2]: 2 + = A[3], B[3]: 3 + = A[4], B[4]: 4 +* Differing parts: + - A[5]: 6 + + B[5]: 5 + - A[6]: 5 + + B[6]: 6 +* Present only in one list: + + B[7]: 7 + + B[8]: 8 + + B[9]: 9 +* Common parts at the end of the lists + = A[7], B[10]: 10 + = A[8], B[11]: 11 + = A[9], B[12]: 12 + = A[10], B[13]: 13 + = A[11], B[14]: 14 + = A[12], B[15]: 15 + = A[13], B[16]: 16 + = A[14], B[17]: 17 + = A[15], B[18]: 18 + = A[16], B[19]: 19 + = A[17], B[20]: 20 + TestListCompare.test5c ... FAIL +test/some_lists_comparisons.lua:109: expected: <table 01-00CF52E8> {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20} +actual: <table 02-00CF5158> {1, 2, 3, 4, 6, 5, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20} +List difference analysis: +* list sizes differ: list <table 02-00CF5158> A (actual) has 17 items, list <table 01-00CF52E8> B (expected) has 20 items +* lists A and B start differing at index 5 +* lists A and B are equal again from index 7 for A, 10 for B +* Common parts: + = A[1], B[1]: 1 + = A[2], B[2]: 2 + = A[3], B[3]: 3 + = A[4], B[4]: 4 +* Differing parts: + - A[5]: 6 + + B[5]: 5 + - A[6]: 5 + + B[6]: 6 +* Present only in one list: + + B[7]: 7 + + B[8]: 8 + + B[9]: 9 +* Common parts at the end of the lists + = A[7], B[10]: 10 + = A[8], B[11]: 11 + = A[9], B[12]: 12 + = A[10], B[13]: 13 + = A[11], B[14]: 14 + = A[12], B[15]: 15 + = A[13], B[16]: 16 + = A[14], B[17]: 17 + = A[15], B[18]: 18 + = A[16], B[19]: 19 + = A[17], B[20]: 20 + TestListCompare.test6 ... FAIL +test/some_lists_comparisons.lua:117: expected: +{ + "aaa", + "bbb", + "ccc", + function: 00E70160, + 1.1, + 2.1, + 8=true, + 9=false, + 10=thread: 00E35480, + 11=thread: 00E35480, + 12=thread: 00E35480 +} +actual: +{ + "aaa", + "bbb", + "ccc", + function: 00E70160, + 1.1, + 2.1, + 8=false, + 9=false, + 10=thread: 00E35480, + 11=thread: 00E35480, + 12=thread: 00E35480 +} +List difference analysis: +* lists A (actual) and B (expected) have the same size +* lists A and B start differing at index 8 +* lists A and B are equal again from index 9 +* Common parts: + = A[1], B[1]: "aaa" + = A[2], B[2]: "bbb" + = A[3], B[3]: "ccc" + = A[4], B[4]: function: 00E70160 + = A[5], B[5]: 1.1 + = A[6], B[6]: 2.1 + = A[7], B[7]: nil +* Differing parts: + - A[8]: false + + B[8]: true +* Common parts at the end of the lists + = A[9], B[9]: false + = A[10], B[10]: thread: 00E35480 + = A[11], B[11]: thread: 00E35480 + = A[12], B[12]: thread: 00E35480 + TestListCompare.test7 ... FAIL +test/some_lists_comparisons.lua:123: expected: {{1, 2, 3}, {1, 2}, {{1}, {2}}, {"aa", "cc"}, 1, 2, 1.33, #Inf, {a=1}, {}} +actual: {{1, 2, 3}, {1, 2}, {{2}, {2}}, {"aa", "bb"}, 1, 2, 1.33, #Inf, {a=1}, {}} +List difference analysis: +* lists A (actual) and B (expected) have the same size +* lists A and B start differing at index 3 +* lists A and B are equal again from index 5 +* Common parts: + = A[1], B[1]: {1, 2, 3} + = A[2], B[2]: {1, 2} +* Differing parts: + - A[3]: {{2}, {2}} + + B[3]: {{1}, {2}} + - A[4]: {"aa", "bb"} + + B[4]: {"aa", "cc"} +* Common parts at the end of the lists + = A[5], B[5]: 1 + = A[6], B[6]: 2 + = A[7], B[7]: 1.33 + = A[8], B[8]: #Inf + = A[9], B[9]: {a=1} + = A[10], B[10]: {} +========================================================= +Failed tests: +------------- +1) TestListCompare.test1 +test/some_lists_comparisons.lua:22: expected: +{ + 121221, + 122211, + 121221, + 122211, + 121221, + 122212, + 121212, + 122112, + 121221, + 121212, + 122121 +} +actual: +{ + 121221, + 122211, + 121221, + 122211, + 121221, + 122212, + 121212, + 122112, + 122121, + 121212, + 122121 +} +List difference analysis: +* lists A (actual) and B (expected) have the same size +* lists A and B start differing at index 9 +* lists A and B are equal again from index 10 +* Common parts: + = A[1], B[1]: 121221 + = A[2], B[2]: 122211 + = A[3], B[3]: 121221 + = A[4], B[4]: 122211 + = A[5], B[5]: 121221 + = A[6], B[6]: 122212 + = A[7], B[7]: 121212 + = A[8], B[8]: 122112 +* Differing parts: + - A[9]: 122121 + + B[9]: 121221 +* Common parts at the end of the lists + = A[10], B[10]: 121212 + = A[11], B[11]: 122121 +stack traceback: + test/some_lists_comparisons.lua:22: in function 'TestListCompare.test1' + +2) TestListCompare.test1b +test/some_lists_comparisons.lua:28: expected: +{ + 121221, + 122211, + 121221, + 122112, + 121212, + 121122, + 121212, + 122122, + 121212, + 122112, + 121212 +} +actual: +{ + 121221, + 122211, + 121221, + 122112, + 121212, + 121122, + 121212, + 122122, + 121212, + 122112, + 122112 +} +List difference analysis: +* lists A (actual) and B (expected) have the same size +* lists A and B start differing at index 11 +* Common parts: + = A[1], B[1]: 121221 + = A[2], B[2]: 122211 + = A[3], B[3]: 121221 + = A[4], B[4]: 122112 + = A[5], B[5]: 121212 + = A[6], B[6]: 121122 + = A[7], B[7]: 121212 + = A[8], B[8]: 122122 + = A[9], B[9]: 121212 + = A[10], B[10]: 122112 +* Differing parts: + - A[11]: 122112 + + B[11]: 121212 +stack traceback: + test/some_lists_comparisons.lua:28: in function 'TestListCompare.test1b' + +3) TestListCompare.test1c +test/some_lists_comparisons.lua:34: expected: +{ + 121212, + 122121, + 111212, + 122121, + 122121, + 121212, + 121121, + 121212, + 121221, + 122212, + 112121 +} +actual: +{ + 122112, + 122121, + 111212, + 122121, + 122121, + 121212, + 121121, + 121212, + 121221, + 122212, + 112121 +} +List difference analysis: +* lists A (actual) and B (expected) have the same size +* lists A and B start differing at index 1 +* lists A and B are equal again from index 2 +* Differing parts: + - A[1]: 122112 + + B[1]: 121212 +* Common parts at the end of the lists + = A[2], B[2]: 122121 + = A[3], B[3]: 111212 + = A[4], B[4]: 122121 + = A[5], B[5]: 122121 + = A[6], B[6]: 121212 + = A[7], B[7]: 121121 + = A[8], B[8]: 121212 + = A[9], B[9]: 121221 + = A[10], B[10]: 122212 + = A[11], B[11]: 112121 +stack traceback: + test/some_lists_comparisons.lua:34: in function 'TestListCompare.test1c' + +4) TestListCompare.test2 +test/some_lists_comparisons.lua:43: expected: {1, 2, 3, 4, 5, 6, 8, 7, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20} +actual: {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20} +List difference analysis: +* lists A (actual) and B (expected) have the same size +* lists A and B start differing at index 7 +* lists A and B are equal again from index 9 +* Common parts: + = A[1], B[1]: 1 + = A[2], B[2]: 2 + = A[3], B[3]: 3 + = A[4], B[4]: 4 + = A[5], B[5]: 5 + = A[6], B[6]: 6 +* Differing parts: + - A[7]: 7 + + B[7]: 8 + - A[8]: 8 + + B[8]: 7 +* Common parts at the end of the lists + = A[9], B[9]: 9 + = A[10], B[10]: 10 + = A[11], B[11]: 11 + = A[12], B[12]: 12 + = A[13], B[13]: 13 + = A[14], B[14]: 14 + = A[15], B[15]: 15 + = A[16], B[16]: 16 + = A[17], B[17]: 17 + = A[18], B[18]: 18 + = A[19], B[19]: 19 + = A[20], B[20]: 20 +stack traceback: + test/some_lists_comparisons.lua:43: in function 'TestListCompare.test2' + +5) TestListCompare.test3 +test/some_lists_comparisons.lua:57: expected: {1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20} +actual: {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20} +List difference analysis: +* list sizes differ: list A (actual) has 20 items, list B (expected) has 19 items +* lists A and B start differing at index 7 +* lists A and B are equal again from index 8 for A, 7 for B +* Common parts: + = A[1], B[1]: 1 + = A[2], B[2]: 2 + = A[3], B[3]: 3 + = A[4], B[4]: 4 + = A[5], B[5]: 5 + = A[6], B[6]: 6 +* Present only in one list: + - A[7]: 7 +* Common parts at the end of the lists + = A[8], B[7]: 8 + = A[9], B[8]: 9 + = A[10], B[9]: 10 + = A[11], B[10]: 11 + = A[12], B[11]: 12 + = A[13], B[12]: 13 + = A[14], B[13]: 14 + = A[15], B[14]: 15 + = A[16], B[15]: 16 + = A[17], B[16]: 17 + = A[18], B[17]: 18 + = A[19], B[18]: 19 + = A[20], B[19]: 20 +stack traceback: + test/some_lists_comparisons.lua:57: in function 'TestListCompare.test3' + +6) TestListCompare.test4 +test/some_lists_comparisons.lua:74: expected: {1, 2, 3, 4, 5, 6, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20} +actual: {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20} +List difference analysis: +* list sizes differ: list A (actual) has 20 items, list B (expected) has 17 items +* lists A and B start differing at index 7 +* lists A and B are equal again from index 10 for A, 7 for B +* Common parts: + = A[1], B[1]: 1 + = A[2], B[2]: 2 + = A[3], B[3]: 3 + = A[4], B[4]: 4 + = A[5], B[5]: 5 + = A[6], B[6]: 6 +* Present only in one list: + - A[7]: 7 + - A[8]: 8 + - A[9]: 9 +* Common parts at the end of the lists + = A[10], B[7]: 10 + = A[11], B[8]: 11 + = A[12], B[9]: 12 + = A[13], B[10]: 13 + = A[14], B[11]: 14 + = A[15], B[12]: 15 + = A[16], B[13]: 16 + = A[17], B[14]: 17 + = A[18], B[15]: 18 + = A[19], B[16]: 19 + = A[20], B[17]: 20 +stack traceback: + test/some_lists_comparisons.lua:74: in function 'TestListCompare.test4' + +7) TestListCompare.test5a +test/some_lists_comparisons.lua:98: expected: {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20} +actual: {1, 2, 3, 4, 6, 5, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20} +List difference analysis: +* list sizes differ: list A (expected) has 17 items, list B (actual) has 20 items +* lists A and B start differing at index 5 +* lists A and B are equal again from index 7 for A, 10 for B +* Common parts: + = A[1], B[1]: 1 + = A[2], B[2]: 2 + = A[3], B[3]: 3 + = A[4], B[4]: 4 +* Differing parts: + - A[5]: 6 + + B[5]: 5 + - A[6]: 5 + + B[6]: 6 +* Present only in one list: + + B[7]: 7 + + B[8]: 8 + + B[9]: 9 +* Common parts at the end of the lists + = A[7], B[10]: 10 + = A[8], B[11]: 11 + = A[9], B[12]: 12 + = A[10], B[13]: 13 + = A[11], B[14]: 14 + = A[12], B[15]: 15 + = A[13], B[16]: 16 + = A[14], B[17]: 17 + = A[15], B[18]: 18 + = A[16], B[19]: 19 + = A[17], B[20]: 20 +stack traceback: + test/some_lists_comparisons.lua:98: in function 'TestListCompare.test5a' + +8) TestListCompare.test5b +test/some_lists_comparisons.lua:103: expected: {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20} +actual: {1, 2, 3, 4, 6, 5, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20} +List difference analysis: +* list sizes differ: list A (actual) has 17 items, list B (expected) has 20 items +* lists A and B start differing at index 5 +* lists A and B are equal again from index 7 for A, 10 for B +* Common parts: + = A[1], B[1]: 1 + = A[2], B[2]: 2 + = A[3], B[3]: 3 + = A[4], B[4]: 4 +* Differing parts: + - A[5]: 6 + + B[5]: 5 + - A[6]: 5 + + B[6]: 6 +* Present only in one list: + + B[7]: 7 + + B[8]: 8 + + B[9]: 9 +* Common parts at the end of the lists + = A[7], B[10]: 10 + = A[8], B[11]: 11 + = A[9], B[12]: 12 + = A[10], B[13]: 13 + = A[11], B[14]: 14 + = A[12], B[15]: 15 + = A[13], B[16]: 16 + = A[14], B[17]: 17 + = A[15], B[18]: 18 + = A[16], B[19]: 19 + = A[17], B[20]: 20 +stack traceback: + test/some_lists_comparisons.lua:103: in function 'TestListCompare.test5b' + +9) TestListCompare.test5c +test/some_lists_comparisons.lua:109: expected: <table 01-00CF52E8> {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20} +actual: <table 02-00CF5158> {1, 2, 3, 4, 6, 5, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20} +List difference analysis: +* list sizes differ: list <table 02-00CF5158> A (actual) has 17 items, list <table 01-00CF52E8> B (expected) has 20 items +* lists A and B start differing at index 5 +* lists A and B are equal again from index 7 for A, 10 for B +* Common parts: + = A[1], B[1]: 1 + = A[2], B[2]: 2 + = A[3], B[3]: 3 + = A[4], B[4]: 4 +* Differing parts: + - A[5]: 6 + + B[5]: 5 + - A[6]: 5 + + B[6]: 6 +* Present only in one list: + + B[7]: 7 + + B[8]: 8 + + B[9]: 9 +* Common parts at the end of the lists + = A[7], B[10]: 10 + = A[8], B[11]: 11 + = A[9], B[12]: 12 + = A[10], B[13]: 13 + = A[11], B[14]: 14 + = A[12], B[15]: 15 + = A[13], B[16]: 16 + = A[14], B[17]: 17 + = A[15], B[18]: 18 + = A[16], B[19]: 19 + = A[17], B[20]: 20 +stack traceback: + test/some_lists_comparisons.lua:109: in function 'TestListCompare.test5c' + +10) TestListCompare.test6 +test/some_lists_comparisons.lua:117: expected: +{ + "aaa", + "bbb", + "ccc", + function: 00E70160, + 1.1, + 2.1, + 8=true, + 9=false, + 10=thread: 00E35480, + 11=thread: 00E35480, + 12=thread: 00E35480 +} +actual: +{ + "aaa", + "bbb", + "ccc", + function: 00E70160, + 1.1, + 2.1, + 8=false, + 9=false, + 10=thread: 00E35480, + 11=thread: 00E35480, + 12=thread: 00E35480 +} +List difference analysis: +* lists A (actual) and B (expected) have the same size +* lists A and B start differing at index 8 +* lists A and B are equal again from index 9 +* Common parts: + = A[1], B[1]: "aaa" + = A[2], B[2]: "bbb" + = A[3], B[3]: "ccc" + = A[4], B[4]: function: 00E70160 + = A[5], B[5]: 1.1 + = A[6], B[6]: 2.1 + = A[7], B[7]: nil +* Differing parts: + - A[8]: false + + B[8]: true +* Common parts at the end of the lists + = A[9], B[9]: false + = A[10], B[10]: thread: 00E35480 + = A[11], B[11]: thread: 00E35480 + = A[12], B[12]: thread: 00E35480 +stack traceback: + test/some_lists_comparisons.lua:117: in function 'TestListCompare.test6' + +11) TestListCompare.test7 +test/some_lists_comparisons.lua:123: expected: {{1, 2, 3}, {1, 2}, {{1}, {2}}, {"aa", "cc"}, 1, 2, 1.33, #Inf, {a=1}, {}} +actual: {{1, 2, 3}, {1, 2}, {{2}, {2}}, {"aa", "bb"}, 1, 2, 1.33, #Inf, {a=1}, {}} +List difference analysis: +* lists A (actual) and B (expected) have the same size +* lists A and B start differing at index 3 +* lists A and B are equal again from index 5 +* Common parts: + = A[1], B[1]: {1, 2, 3} + = A[2], B[2]: {1, 2} +* Differing parts: + - A[3]: {{2}, {2}} + + B[3]: {{1}, {2}} + - A[4]: {"aa", "bb"} + + B[4]: {"aa", "cc"} +* Common parts at the end of the lists + = A[5], B[5]: 1 + = A[6], B[6]: 2 + = A[7], B[7]: 1.33 + = A[8], B[8]: #Inf + = A[9], B[9]: {a=1} + = A[10], B[10]: {} +stack traceback: + test/some_lists_comparisons.lua:123: in function 'TestListCompare.test7' + +Ran 11 tests in 0.005 seconds, 0 successes, 11 failures diff --git a/Resources/Libraries/luaunit/test/ref/testWithXmlDefault.txt b/Resources/Libraries/luaunit/test/ref/testWithXmlDefault.txt new file mode 100644 index 0000000..c60800f --- /dev/null +++ b/Resources/Libraries/luaunit/test/ref/testWithXmlDefault.txt @@ -0,0 +1,11 @@ +# XML output to test/ref/testWithXmlDefault.xml +# Started on 04/28/19 21:05:11 +# Starting class: TestFailuresWithXml +# Starting test: TestFailuresWithXml.test_failure_with_cdata_xml +# Failure: test/test_with_xml.lua:13: expected: "got it" +# actual: "cdata does not like ]]>" +# Starting test: TestFailuresWithXml.test_failure_with_simple_xml +# Failure: test/test_with_xml.lua:9: expected: "got it" +# actual: '<toto>ti"ti</toto>' +# Starting test: TestThatLastsALongTime +# Ran 3 tests in 1.101 seconds, 1 success, 2 failures diff --git a/Resources/Libraries/luaunit/test/ref/testWithXmlDefault.xml b/Resources/Libraries/luaunit/test/ref/testWithXmlDefault.xml new file mode 100644 index 0000000..0ce8362 --- /dev/null +++ b/Resources/Libraries/luaunit/test/ref/testWithXmlDefault.xml @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<testsuites> + <testsuite name="LuaUnit" id="00001" package="" hostname="localhost" tests="3" timestamp="2019-04-28T21:05:11" time="1.101" errors="0" failures="2" skipped="0"> + <properties> + <property name="Lua Version" value="Lua 5.4"/> + <property name="LuaUnit Version" value="3.4"/> + </properties> + <testcase classname="TestFailuresWithXml" name="TestFailuresWithXml.test_failure_with_cdata_xml" time="0.000"> + <failure type="test/test_with_xml.lua:13: expected: "got it" +actual: "cdata does not like ]]>""> + <![CDATA[stack traceback: + test/test_with_xml.lua:13: in function 'TestFailuresWithXml.test_failure_with_cdata_xml']]></failure> + </testcase> + <testcase classname="TestFailuresWithXml" name="TestFailuresWithXml.test_failure_with_simple_xml" time="0.000"> + <failure type="test/test_with_xml.lua:9: expected: "got it" +actual: '<toto>ti"ti</toto>'"> + <![CDATA[stack traceback: + test/test_with_xml.lua:9: in function 'TestFailuresWithXml.test_failure_with_simple_xml']]></failure> + </testcase> + <testcase classname="[TestFunctions]" name="TestThatLastsALongTime" time="0.000"> + </testcase> + <system-out/> + <system-err/> + </testsuite> +</testsuites> diff --git a/Resources/Libraries/luaunit/test/ref/testWithXmlQuiet.txt b/Resources/Libraries/luaunit/test/ref/testWithXmlQuiet.txt new file mode 100644 index 0000000..f3ef77b --- /dev/null +++ b/Resources/Libraries/luaunit/test/ref/testWithXmlQuiet.txt @@ -0,0 +1,11 @@ +# XML output to test/ref/testWithXmlQuiet.xml +# Started on 04/28/19 21:05:13 +# Starting class: TestFailuresWithXml +# Starting test: TestFailuresWithXml.test_failure_with_cdata_xml +# Failure: test/test_with_xml.lua:13: expected: "got it" +# actual: "cdata does not like ]]>" +# Starting test: TestFailuresWithXml.test_failure_with_simple_xml +# Failure: test/test_with_xml.lua:9: expected: "got it" +# actual: '<toto>ti"ti</toto>' +# Starting test: TestThatLastsALongTime +# Ran 3 tests in 1.105 seconds, 1 success, 2 failures diff --git a/Resources/Libraries/luaunit/test/ref/testWithXmlQuiet.xml b/Resources/Libraries/luaunit/test/ref/testWithXmlQuiet.xml new file mode 100644 index 0000000..0a89946 --- /dev/null +++ b/Resources/Libraries/luaunit/test/ref/testWithXmlQuiet.xml @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<testsuites> + <testsuite name="LuaUnit" id="00001" package="" hostname="localhost" tests="3" timestamp="2019-04-28T21:05:13" time="1.105" errors="0" failures="2" skipped="0"> + <properties> + <property name="Lua Version" value="Lua 5.4"/> + <property name="LuaUnit Version" value="3.4"/> + </properties> + <testcase classname="TestFailuresWithXml" name="TestFailuresWithXml.test_failure_with_cdata_xml" time="0.000"> + <failure type="test/test_with_xml.lua:13: expected: "got it" +actual: "cdata does not like ]]>""> + <![CDATA[stack traceback: + test/test_with_xml.lua:13: in function 'TestFailuresWithXml.test_failure_with_cdata_xml']]></failure> + </testcase> + <testcase classname="TestFailuresWithXml" name="TestFailuresWithXml.test_failure_with_simple_xml" time="0.000"> + <failure type="test/test_with_xml.lua:9: expected: "got it" +actual: '<toto>ti"ti</toto>'"> + <![CDATA[stack traceback: + test/test_with_xml.lua:9: in function 'TestFailuresWithXml.test_failure_with_simple_xml']]></failure> + </testcase> + <testcase classname="[TestFunctions]" name="TestThatLastsALongTime" time="0.000"> + </testcase> + <system-out/> + <system-err/> + </testsuite> +</testsuites> diff --git a/Resources/Libraries/luaunit/test/ref/testWithXmlVerbose.txt b/Resources/Libraries/luaunit/test/ref/testWithXmlVerbose.txt new file mode 100644 index 0000000..8c0a529 --- /dev/null +++ b/Resources/Libraries/luaunit/test/ref/testWithXmlVerbose.txt @@ -0,0 +1,11 @@ +# XML output to test/ref/testWithXmlVerbose.xml +# Started on 04/28/19 21:05:12 +# Starting class: TestFailuresWithXml +# Starting test: TestFailuresWithXml.test_failure_with_cdata_xml +# Failure: test/test_with_xml.lua:13: expected: "got it" +# actual: "cdata does not like ]]>" +# Starting test: TestFailuresWithXml.test_failure_with_simple_xml +# Failure: test/test_with_xml.lua:9: expected: "got it" +# actual: '<toto>ti"ti</toto>' +# Starting test: TestThatLastsALongTime +# Ran 3 tests in 1.101 seconds, 1 success, 2 failures diff --git a/Resources/Libraries/luaunit/test/ref/testWithXmlVerbose.xml b/Resources/Libraries/luaunit/test/ref/testWithXmlVerbose.xml new file mode 100644 index 0000000..2ba7668 --- /dev/null +++ b/Resources/Libraries/luaunit/test/ref/testWithXmlVerbose.xml @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<testsuites> + <testsuite name="LuaUnit" id="00001" package="" hostname="localhost" tests="3" timestamp="2019-04-28T21:05:12" time="1.101" errors="0" failures="2" skipped="0"> + <properties> + <property name="Lua Version" value="Lua 5.4"/> + <property name="LuaUnit Version" value="3.4"/> + </properties> + <testcase classname="TestFailuresWithXml" name="TestFailuresWithXml.test_failure_with_cdata_xml" time="0.000"> + <failure type="test/test_with_xml.lua:13: expected: "got it" +actual: "cdata does not like ]]>""> + <![CDATA[stack traceback: + test/test_with_xml.lua:13: in function 'TestFailuresWithXml.test_failure_with_cdata_xml']]></failure> + </testcase> + <testcase classname="TestFailuresWithXml" name="TestFailuresWithXml.test_failure_with_simple_xml" time="0.000"> + <failure type="test/test_with_xml.lua:9: expected: "got it" +actual: '<toto>ti"ti</toto>'"> + <![CDATA[stack traceback: + test/test_with_xml.lua:9: in function 'TestFailuresWithXml.test_failure_with_simple_xml']]></failure> + </testcase> + <testcase classname="[TestFunctions]" name="TestThatLastsALongTime" time="0.000"> + </testcase> + <system-out/> + <system-err/> + </testsuite> +</testsuites> |