blob: 18716c6fa48719b18ccdeaef5f9fc1adc1b96a25 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
package org.zwobble.mammoth.tests.html;
import org.junit.Test;
import org.zwobble.mammoth.html.Html;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.zwobble.mammoth.tests.DeepReflectionMatcher.deepEquals;
import static org.zwobble.mammoth.util.MammothLists.list;
public class HtmlCollapseTests {
@Test
public void collapsingDoesNothingToSingleTextNode() {
assertThat(
Html.collapse(list(Html.text("Bluebells"))),
deepEquals(list(Html.text("Bluebells"))));
}
}
|