Rename files containing org and htm writer

The naming `org.go` is confusing as it's not the main class of the org package
This commit is contained in:
Niklas Fasching 2018-12-26 16:11:40 +01:00
parent d921a68a55
commit 5c51067b59
4 changed files with 0 additions and 0 deletions

View file

@ -1,23 +0,0 @@
package org
import (
"strings"
"testing"
)
func TestHTMLWriter(t *testing.T) {
for _, path := range orgTestFiles() {
expected := fileString(path[:len(path)-len(".org")] + ".html")
reader, writer := strings.NewReader(fileString(path)), NewHTMLWriter()
actual, err := NewDocument().Silent().SetPath(path).Parse(reader).Write(writer)
if err != nil {
t.Errorf("%s\n got error: %s", path, err)
continue
}
if actual != expected {
t.Errorf("%s:\n%s'", path, diff(actual, expected))
} else {
t.Logf("%s: passed!", path)
}
}
}