fileutil_test.go 290 B

12345678910111213141516171819202122
  1. package fileutil
  2. import (
  3. "testing"
  4. "github.com/remogatto/prettytest"
  5. )
  6. type testSuite struct {
  7. prettytest.Suite
  8. }
  9. func TestRunner(t *testing.T) {
  10. prettytest.Run(
  11. t,
  12. new(testSuite),
  13. )
  14. }
  15. func (t *testSuite) TestReplaceExt() {
  16. t.Equal("foo.odt", ReplaceExt("foo.md", "odt"))
  17. }