Skip to content

Commit

Permalink
[sort] ユニットテストでの比較誤り修正 #5
Browse files Browse the repository at this point in the history
  • Loading branch information
onozaty committed Jul 19, 2021
1 parent c046bf3 commit a77da5b
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions csv/rows_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func TestLoadCsvMemorySortedRows(t *testing.T) {
t.Fatal("failed test\n", rows.Count())
}

if reflect.DeepEqual(rows.ColumnNames(), []string{"col1", "col2"}) {
if !reflect.DeepEqual(rows.ColumnNames(), []string{"col1", "col2"}) {
t.Fatal("failed test\n", rows.ColumnNames())
}

Expand Down Expand Up @@ -70,7 +70,7 @@ func TestLoadCsvMemorySortedRows_multiColumn(t *testing.T) {
t.Fatal("failed test\n", rows.Count())
}

if reflect.DeepEqual(rows.ColumnNames(), []string{"col1", "col2"}) {
if !reflect.DeepEqual(rows.ColumnNames(), []string{"col1", "col2"}) {
t.Fatal("failed test\n", rows.ColumnNames())
}

Expand Down Expand Up @@ -106,7 +106,7 @@ func TestLoadCsvMemorySortedRows_num(t *testing.T) {
t.Fatal("failed test\n", rows.Count())
}

if reflect.DeepEqual(rows.ColumnNames(), []string{"col1"}) {
if !reflect.DeepEqual(rows.ColumnNames(), []string{"col1"}) {
t.Fatal("failed test\n", rows.ColumnNames())
}

Expand Down Expand Up @@ -143,7 +143,7 @@ func TestLoadCsvMemorySortedRows_same(t *testing.T) {
t.Fatal("failed test\n", rows.Count())
}

if reflect.DeepEqual(rows.ColumnNames(), []string{"col1", "col2"}) {
if !reflect.DeepEqual(rows.ColumnNames(), []string{"col1", "col2"}) {
t.Fatal("failed test\n", rows.ColumnNames())
}

Expand Down Expand Up @@ -224,7 +224,7 @@ func TestLoadCsvMemorySortedRows_big(t *testing.T) {
t.Fatal("failed test\n", rows.Count())
}

if reflect.DeepEqual(rows.ColumnNames(), []string{"col1", "col2"}) {
if !reflect.DeepEqual(rows.ColumnNames(), []string{"col1", "col2"}) {
t.Fatal("failed test\n", rows.ColumnNames())
}

Expand Down Expand Up @@ -276,7 +276,7 @@ func TestLoadCsvFileSortedRows(t *testing.T) {
t.Fatal("failed test\n", rows.Count())
}

if reflect.DeepEqual(rows.ColumnNames(), []string{"col1", "col2"}) {
if !reflect.DeepEqual(rows.ColumnNames(), []string{"col1", "col2"}) {
t.Fatal("failed test\n", rows.ColumnNames())
}

Expand Down Expand Up @@ -313,7 +313,7 @@ func TestLoadCsvFileSortedRows_multiColumn(t *testing.T) {
t.Fatal("failed test\n", rows.Count())
}

if reflect.DeepEqual(rows.ColumnNames(), []string{"col1", "col2"}) {
if !reflect.DeepEqual(rows.ColumnNames(), []string{"col1", "col2"}) {
t.Fatal("failed test\n", rows.ColumnNames())
}

Expand Down Expand Up @@ -349,7 +349,7 @@ func TestLoadCsvFileSortedRows_num(t *testing.T) {
t.Fatal("failed test\n", rows.Count())
}

if reflect.DeepEqual(rows.ColumnNames(), []string{"col1"}) {
if !reflect.DeepEqual(rows.ColumnNames(), []string{"col1"}) {
t.Fatal("failed test\n", rows.ColumnNames())
}

Expand Down Expand Up @@ -386,7 +386,7 @@ func TestLoadCsvFileSortedRows_same(t *testing.T) {
t.Fatal("failed test\n", rows.Count())
}

if reflect.DeepEqual(rows.ColumnNames(), []string{"col1", "col2"}) {
if !reflect.DeepEqual(rows.ColumnNames(), []string{"col1", "col2"}) {
t.Fatal("failed test\n", rows.ColumnNames())
}

Expand Down Expand Up @@ -467,7 +467,7 @@ func TestLoadCsvFileSortedRows_big(t *testing.T) {
t.Fatal("failed test\n", rows.Count())
}

if reflect.DeepEqual(rows.ColumnNames(), []string{"col1", "col2"}) {
if !reflect.DeepEqual(rows.ColumnNames(), []string{"col1", "col2"}) {
t.Fatal("failed test\n", rows.ColumnNames())
}

Expand Down

0 comments on commit a77da5b

Please sign in to comment.