From 8d2ec1ac71ecbefc4bee1e52b7b0a74b057619e1 Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Tue, 7 Oct 2008 22:25:55 +0000 Subject: Adapt tests to new friendly errors and correct line numbers --- .../Region/ScriptEngine/Shared/CodeTools/Tests/CSCodeGeneratorTest.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region/ScriptEngine/Shared/CodeTools') diff --git a/OpenSim/Region/ScriptEngine/Shared/CodeTools/Tests/CSCodeGeneratorTest.cs b/OpenSim/Region/ScriptEngine/Shared/CodeTools/Tests/CSCodeGeneratorTest.cs index 356f547..2284282 100644 --- a/OpenSim/Region/ScriptEngine/Shared/CodeTools/Tests/CSCodeGeneratorTest.cs +++ b/OpenSim/Region/ScriptEngine/Shared/CodeTools/Tests/CSCodeGeneratorTest.cs @@ -1564,7 +1564,7 @@ default { // The syntax error is on line 6, char 5 (expected ';', found // '}'). - Assert.AreEqual("Line (5,4) Line 6, char 5: syntax error", e.Message); + Assert.AreEqual("Line (4,4) syntax error", e.Message); throw; } } @@ -1589,7 +1589,7 @@ default catch (System.Exception e) { // The syntax error is on line 5, char 14 (Syntax error) - Assert.AreEqual("Line (4,13) Line 5, char 14: syntax error", e.Message); + Assert.AreEqual("Line (3,13) syntax error", e.Message); throw; } -- cgit v1.1