Skip to content

Commit

Permalink
Added tests to cover the new options
Browse files Browse the repository at this point in the history
Also updated/refactored the table test a little so they always output which test is the failing test.
  • Loading branch information
Sander van Harmelen authored and kniren committed Jan 24, 2017
1 parent d552393 commit 96b9d08
Show file tree
Hide file tree
Showing 2 changed files with 355 additions and 226 deletions.
4 changes: 2 additions & 2 deletions dataframe/dataframe.go
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ func (df DataFrame) print(
notShownArr = append(notShownArr, notShowing[i:len(notShowing)])
}
for k, ns := range notShownArr {
notShown += fmt.Sprintf("%s", strings.Join(ns, ", "))
notShown += strings.Join(ns, ", ")
if k != len(notShownArr)-1 {
notShown += ","
}
Expand Down Expand Up @@ -708,7 +708,7 @@ func HasHeader(b bool) LoadOption {
}

// Names sets the names option for loadOptions.
func Names(names []string) LoadOption {
func Names(names ...string) LoadOption {
return func(c *loadOptions) {
c.names = names
}
Expand Down
Loading

0 comments on commit 96b9d08

Please sign in to comment.