aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--unxhtmlify.go4
-rw-r--r--unxhtmlify_test.go18
2 files changed, 22 insertions, 0 deletions
diff --git a/unxhtmlify.go b/unxhtmlify.go
index cf1ed90..97c29d7 100644
--- a/unxhtmlify.go
+++ b/unxhtmlify.go
@@ -15,3 +15,7 @@ func main() {
fmt.Fprintf(os.Stderr, "reading standard input", err)
}
}
+
+func unxhtmlify_line(s string) string {
+ return s
+}
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)
+ }
+ }
+}