aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org/zwobble
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2022-03-09 21:05:53 +0000
committerMichael Williamson <mike@zwobble.org>2022-03-09 21:05:53 +0000
commit85194879a8848f01a8db3f42d8ee6d4f24e6cfdb (patch)
treea7ee4e40ea037664a6e31bd09b5254137a969f97 /src/test/java/org/zwobble
parentdeff5d7c556f3cf3bab3309cc21548a1dcac4f0a (diff)
Ignore w:u elements when w:val is missing
Diffstat (limited to 'src/test/java/org/zwobble')
-rw-r--r--src/test/java/org/zwobble/mammoth/tests/docx/BodyXmlTests.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/java/org/zwobble/mammoth/tests/docx/BodyXmlTests.java b/src/test/java/org/zwobble/mammoth/tests/docx/BodyXmlTests.java
index cff4338..1898897 100644
--- a/src/test/java/org/zwobble/mammoth/tests/docx/BodyXmlTests.java
+++ b/src/test/java/org/zwobble/mammoth/tests/docx/BodyXmlTests.java
@@ -579,12 +579,12 @@ public class BodyXmlTests {
}
@Test
- public void runIsUnderlinedIfUnderlineElementIsPresentWithoutValAttribute() {
+ public void runIsNotUnderlinedIfUnderlineElementIsPresentWithoutValAttribute() {
XmlElement element = runXmlWithProperties(element("w:u"));
assertThat(
readSuccess(bodyReader(), element),
- hasProperty("underline", equalTo(true))
+ hasProperty("underline", equalTo(false))
);
}