Skip to content

Commit

Permalink
Check fieldtype as well
Browse files Browse the repository at this point in the history
  • Loading branch information
friendlymatthew committed Jan 25, 2024
1 parent 4464e0b commit 484f384
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pkg/appendable/index_file_csv_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,10 @@ func TestAppendDataRowCSV(t *testing.T) {
if keyType != "float64" {
t.Errorf("i keytype is %v", keyType)
}

if index.FieldType != protocol.FieldTypeNumber {
t.Errorf("index field type is not number. actual: %v", index.FieldType)
}
}
}

Expand All @@ -178,6 +182,10 @@ func TestAppendDataRowCSV(t *testing.T) {
if keyType != "float64" {
t.Errorf("j keytype is %v", keyType)
}

if index.FieldType != protocol.FieldTypeNumber {
t.Errorf("index field type is not number. actual: %v", index.FieldType)
}
}
}

Expand Down

0 comments on commit 484f384

Please sign in to comment.