From bf1effc7efac320ba4b213dd15b87980903e5c60 Mon Sep 17 00:00:00 2001 From: Yegor Bugayenko Date: Mon, 2 Dec 2024 07:57:30 +0300 Subject: [PATCH] #132 line counting fixed --- src/test/java/com/yegor256/xsline/StClasspathTest.java | 2 +- src/test/java/com/yegor256/xsline/TrClasspathTest.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/test/java/com/yegor256/xsline/StClasspathTest.java b/src/test/java/com/yegor256/xsline/StClasspathTest.java index dc0ba5c..5490074 100644 --- a/src/test/java/com/yegor256/xsline/StClasspathTest.java +++ b/src/test/java/com/yegor256/xsline/StClasspathTest.java @@ -64,7 +64,7 @@ void emitsXslError() { 0, new XMLDocument("hello") ) ).getMessage(), - Matchers.containsString("terminated by xsl:message at line 32 in emit-error.xsl") + Matchers.containsString("terminated by xsl:message at line 31 in emit-error.xsl") ); } } diff --git a/src/test/java/com/yegor256/xsline/TrClasspathTest.java b/src/test/java/com/yegor256/xsline/TrClasspathTest.java index 651f8df..f34ce6d 100644 --- a/src/test/java/com/yegor256/xsline/TrClasspathTest.java +++ b/src/test/java/com/yegor256/xsline/TrClasspathTest.java @@ -67,7 +67,7 @@ void emitsXslError() { new XMLDocument("hello") ) ).getMessage(), - Matchers.containsString("terminated by xsl:message at line 32 in emit-error.xsl") + Matchers.containsString("terminated by xsl:message at line 31 in emit-error.xsl") ); } @@ -84,7 +84,7 @@ void emitsXslErrorWhenDefault() { ).back() ).pass(new XMLDocument("")) ).getMessage(), - Matchers.containsString("by xsl:message at line 32 in emit-error.xsl") + Matchers.containsString("by xsl:message at line 31 in emit-error.xsl") ); } }