-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* narrow down failing test' * on failure, print the filename
- Loading branch information
1 parent
66b7b13
commit 2ce1b8e
Showing
5 changed files
with
8 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,6 +39,7 @@ function test_coordinates_unnamed_plane() | |
local f = faction.create("human", "[email protected]", "de") | ||
local u = unit.create(f, r, 1) | ||
init_reports() | ||
f.id = 1 | ||
write_report(f) | ||
assert_true(find_in_report(f, r.name .. " %(0,0%), Berg")) | ||
remove_report(f) | ||
|
@@ -49,6 +50,7 @@ function test_coordinates_no_plane() | |
local f = faction.create("human", "[email protected]", "de") | ||
local u = unit.create(f, r, 1) | ||
init_reports() | ||
f.id = 2 | ||
write_report(f) | ||
assert_true(find_in_report(f, r.name .. " %(0,0%), Berg")) | ||
remove_report(f) | ||
|
@@ -63,6 +65,7 @@ function test_show_shadowmaster_attacks() | |
u:add_order("ZEIGE Schattenmeister") | ||
process_orders() | ||
init_reports() | ||
f.id = 3 | ||
write_report(f) | ||
assert_false(find_in_report(f, ", ,")) | ||
remove_report(f) | ||
|
@@ -74,6 +77,7 @@ function test_coordinates_named_plane() | |
local f = faction.create("human", "[email protected]", "de") | ||
local u = unit.create(f, r, 1) | ||
init_reports() | ||
f.id = 4 | ||
write_report(f) | ||
assert_true(find_in_report(f, r.name .. " %(0,0,Hell%), Berg")) | ||
remove_report(f) | ||
|
@@ -85,6 +89,7 @@ function test_coordinates_noname_plane() | |
local f = faction.create("human", "[email protected]", "de") | ||
local u = unit.create(f, r, 1) | ||
init_reports() | ||
f.id = 5 | ||
write_report(f) | ||
assert_true(find_in_report(f, r.name .. " %(0,0%), Berg")) | ||
remove_report(f) | ||
|
@@ -110,6 +115,7 @@ function test_lighthouse() | |
assert_not_nil(b) | ||
|
||
init_reports() | ||
f.id = 6 | ||
write_report(f) | ||
assert_false(find_in_report(f, "The Babadook")) | ||
assert_true(find_in_report(f, " %(1,0%) %(vom Turm erblickt%)")) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters