Skip to content

Commit

Permalink
tests fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
douglascamata committed Mar 25, 2012
1 parent 496a087 commit 329101e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sqlgen/sqlgen_test.go
Expand Up @@ -54,7 +54,7 @@ func TestGenerateInsertFromStruct(t *testing.T) {

func TestSimpleDeleteFromStruct(t *testing.T) {
p := Person{1, "Chuck", 32}
expected := "delete from person where name = Chuck"
expected := `delete from person where name="Chuck"`
got := Delete(p, []string{"Name"})
if expected != got {
t.Errorf(`DELETE generation for %q. Was expecting "%s", got %s.`, reflect.TypeOf(p), expected, got)
Expand All @@ -63,7 +63,7 @@ func TestSimpleDeleteFromStruct(t *testing.T) {

func TestMultipleFilterDeleteFromStruct(t *testing.T) {
p := Person{1, "Chuck", 32}
expected := "delete from person where name = Chuck and age = 32"
expected := `delete from person where name="Chuck" and age=32`
got := Delete(p, []string{"Name", "Age"})
if expected != got {
t.Errorf(`DELETE generation for %q. Was expecting "%s", got %s.`, reflect.TypeOf(p), expected, got)
Expand Down

0 comments on commit 329101e

Please sign in to comment.