Fix XML empty element handling
Change-Id: I80a1653685e221731f9be889b2794f3bc6a38cf2
diff --git a/matrix_test.go b/matrix_test.go
index 1a3f7b0..f985736 100644
--- a/matrix_test.go
+++ b/matrix_test.go
@@ -873,6 +873,13 @@
assert.Equal("Mann", tokens[8])
assert.Equal(".", tokens[9])
assert.Equal(10, len(tokens))
+
+ tokens = ttokenize(mat, w, "das<br class=\"br\" />ging.")
+ assert.Equal("das", tokens[0])
+ assert.Equal("<br class=\"br\" />", tokens[1])
+ assert.Equal("ging", tokens[2])
+ assert.Equal(".", tokens[3])
+ assert.Equal(4, len(tokens))
}
func TestMatokDatokEquivalence(t *testing.T) {