Skip to content

Commit

Permalink
Added test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
feiin committed Dec 10, 2021
1 parent 37a1117 commit 12ec4ce
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions sql_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@ func TestNULLEscape(t *testing.T) {
}
}

func TestEmptyStringEscape(t *testing.T) {
result := Escape("")
t.Logf("result :%s", result)
if result != "''" {
t.Fatalf("escape empty string error")
}
}
func TestBoolEscape(t *testing.T) {

result := Escape(true)
Expand Down

0 comments on commit 12ec4ce

Please sign in to comment.