diff options
Diffstat (limited to 'unxhtmlify_test.go')
| -rw-r--r-- | unxhtmlify_test.go | 18 | 
1 files changed, 18 insertions, 0 deletions
| diff --git a/unxhtmlify_test.go b/unxhtmlify_test.go new file mode 100644 index 0000000..ac6ab38 --- /dev/null +++ b/unxhtmlify_test.go @@ -0,0 +1,18 @@ +package main + +import "testing" + +func TestUnxhtmlifyLine(t *testing.T) { +	var tests = []struct { +		input, expected string +	}{ +		{ "<br />", "<br>" }, +	} +	 +	for _, c := range tests { +		result := unxhtmlify_line(c.input) +		if result != c.expected { +			t.Errorf("unminify_line(%q) == %q, want %q", c.input, result, c.expected) +		} +	} +} | 
