aboutsummaryrefslogtreecommitdiffstats
path: root/unxhtmlify_test.go
blob: ac6ab387b8d235741c6e5eddda10dad573e2cf34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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)
		}
	}
}