Browse Source

Added a new test for defrag().

deiu 8 years ago
parent
commit
dcb3b8ad75
1 changed files with 5 additions and 0 deletions
  1. 5 0
      rdf_test.go

+ 5 - 0
rdf_test.go

@@ -18,3 +18,8 @@ func TestRDFDebrack(t *testing.T) {
 	assert.Equal(t, "<test", debrack("<test"))
 	assert.Equal(t, "test>", debrack("test>"))
 }
+
+func TestDefrag(t *testing.T) {
+	assert.Equal(t, "test", defrag("test"))
+	assert.Equal(t, "test", defrag("test#me"))
+}