Skip to content

Commit

Permalink
add testdata folder
Browse files Browse the repository at this point in the history
  • Loading branch information
chyroc committed Apr 13, 2018
1 parent b8a9be0 commit 4687403
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 3 deletions.
15 changes: 15 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Created by .ignore support plugin (hsz.mobi)
### Go template
# Binaries for programs and plugins
*.exe
*.exe~
*.dll
*.so
*.dylib

# Test binary, build with `go test -c`
*.test

# Output of the go coverage tool, specifically when used with LiteIDE
*.out

6 changes: 3 additions & 3 deletions table_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func ExampleLong() {
}

func ExampleCSV() {
table, _ := NewCSV(os.Stdout, "test.csv", true)
table, _ := NewCSV(os.Stdout, "testdata/test.csv", true)
table.SetCenterSeparator("*")
table.SetRowSeparator("=")

Expand Down Expand Up @@ -103,7 +103,7 @@ func TestNumLines(t *testing.T) {

func TestCSVInfo(t *testing.T) {
buf := &bytes.Buffer{}
table, err := NewCSV(buf, "test_info.csv", true)
table, err := NewCSV(buf, "testdata/test_info.csv", true)
if err != nil {
t.Error(err)
return
Expand All @@ -127,7 +127,7 @@ func TestCSVInfo(t *testing.T) {

func TestCSVSeparator(t *testing.T) {
buf := &bytes.Buffer{}
table, err := NewCSV(buf, "test.csv", true)
table, err := NewCSV(buf, "testdata/test.csv", true)
if err != nil {
t.Error(err)
return
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 4687403

Please sign in to comment.