aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org/zwobble/mammoth/tests/MammothTests.java
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2016-04-30 16:39:18 +0100
committerMichael Williamson <mike@zwobble.org>2016-04-30 16:39:18 +0100
commit5a6b58e7b1f36c2858ae60710d289c4760c7d566 (patch)
tree705754bd31f7ef81e18e204f931ddbc1dbefcd60 /src/test/java/org/zwobble/mammoth/tests/MammothTests.java
parent06195a2e0a98d670e732411ab9826dcb0d56cbbf (diff)
Include original line in parse exception
Diffstat (limited to 'src/test/java/org/zwobble/mammoth/tests/MammothTests.java')
-rw-r--r--src/test/java/org/zwobble/mammoth/tests/MammothTests.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/test/java/org/zwobble/mammoth/tests/MammothTests.java b/src/test/java/org/zwobble/mammoth/tests/MammothTests.java
index f0210bf..455fa0c 100644
--- a/src/test/java/org/zwobble/mammoth/tests/MammothTests.java
+++ b/src/test/java/org/zwobble/mammoth/tests/MammothTests.java
@@ -198,7 +198,10 @@ public class MammothTests {
() -> new DocumentConverter().addStyleMap("p =>\np[style-name=] =>"));
assertThat(
exception.getMessage(),
- equalTo("error reading style map at line 2, character 14: expected token of type STRING but was of type CLOSE_SQUARE_BRACKET"));
+ equalTo(
+ "error reading style map at line 2, character 14: expected token of type STRING but was of type CLOSE_SQUARE_BRACKET\n\n" +
+ "p[style-name=] =>\n" +
+ " ^"));
}
@Test