Skip to content

Commit 4c34410

Browse files
committed
Fix tests (#11)
1 parent 013ecc8 commit 4c34410

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

listvalidator/values_are_test.go

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,25 @@ func TestValuesAreValidator(t *testing.T) {
2222
expectError bool
2323
}
2424
tests := map[string]testCase{
25+
"not List": {
26+
val: types.Set{
27+
ElemType: types.StringType,
28+
},
29+
expectError: true,
30+
},
2531
"List unknown": {
2632
val: types.List{
27-
Unknown: true,
33+
Unknown: true,
34+
ElemType: types.StringType,
2835
},
29-
expectError: true,
36+
expectError: false,
3037
},
3138
"List null": {
3239
val: types.List{
33-
Null: true,
40+
Null: true,
41+
ElemType: types.StringType,
3442
},
35-
expectError: true,
43+
expectError: false,
3644
},
3745
"List elems invalid": {
3846
val: types.List{

0 commit comments

Comments
 (0)