From a77da5b89fef5e9fe53f5fc92af0b7dda1dc86e2 Mon Sep 17 00:00:00 2001 From: onozaty Date: Mon, 19 Jul 2021 23:41:58 +0900 Subject: [PATCH] =?UTF-8?q?[sort]=20=E3=83=A6=E3=83=8B=E3=83=83=E3=83=88?= =?UTF-8?q?=E3=83=86=E3=82=B9=E3=83=88=E3=81=A7=E3=81=AE=E6=AF=94=E8=BC=83?= =?UTF-8?q?=E8=AA=A4=E3=82=8A=E4=BF=AE=E6=AD=A3=20#5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- csv/rows_test.go | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/csv/rows_test.go b/csv/rows_test.go index d2b8dc5..8e9d61b 100644 --- a/csv/rows_test.go +++ b/csv/rows_test.go @@ -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()) } @@ -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()) } @@ -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()) } @@ -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()) } @@ -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()) } @@ -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()) } @@ -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()) } @@ -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()) } @@ -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()) } @@ -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()) }