From cb23d88a2e0064cc17c9c13f94cbc7a5a743353e Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 16 Feb 2014 03:06:56 +0100 Subject: [PATCH] add a test for bug 1514, proving that shadowmaster display is broken --- core/scripts/tests/common.lua | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/core/scripts/tests/common.lua b/core/scripts/tests/common.lua index c79f5bd09..50d45701f 100755 --- a/core/scripts/tests/common.lua +++ b/core/scripts/tests/common.lua @@ -938,6 +938,19 @@ function test_coordinates_no_plane() assert_true(find_in_report(f, r.name .. " %(0,0%), Berg")) end +function test_show_shadowmaster_attacks() + local r = region.create(0, 0, "plain") + local f = faction.create("noreply@eressea.de", "human", "de") + local u = unit.create(f, r, 1) + u.race = "shadowmaster" + u:clear_orders() + u:add_order("ZEIGE Schattenmeister") + process_orders() + init_reports() + write_report(f) + assert_false(find_in_report(f, ", ,")) +end + function test_coordinates_named_plane() local p = plane.create(0, -3, -3, 7, 7, "Hell") local r = region.create(0, 0, "mountain")