Skip to content

Commit

Permalink
add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gernest committed Mar 29, 2017
1 parent 304a5b1 commit d0363db
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions ql_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ type Sample struct {
Big big.Int
Rat big.Rat
Blob []byte
Bool bool
}

func TestQL_DataTypeOf(t *testing.T) {
Expand Down Expand Up @@ -209,6 +210,15 @@ func TestQL_DataTypeOf(t *testing.T) {
if s != e {
t.Errorf("expected %s got %s", e, s)
}
case "Bool":
e := "bool"
s, err := q.DataTypeOf(f)
if err != nil {
t.Fatal(err)
}
if s != e {
t.Errorf("expected %s got %s", e, s)
}
}
}
}

0 comments on commit d0363db

Please sign in to comment.