Skip to content

Commit

Permalink
examples: Use generated enum constants in db_test (sqlc-dev#678)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyleconroy authored Aug 25, 2020
1 parent b898550 commit c7212b4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/booktest/mysql/db_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func TestBooks(t *testing.T) {
AuthorID: int32(authorID),
Isbn: "1",
Title: "my book title",
BookType: "FICTION",
BookType: BookTypeFICTION,
Yr: 2016,
Available: now,
})
Expand All @@ -54,7 +54,7 @@ func TestBooks(t *testing.T) {
AuthorID: int32(authorID),
Isbn: "2",
Title: "the second book",
BookType: "FICTION",
BookType: BookTypeFICTION,
Yr: 2016,
Available: now,
Tags: "cool,unique",
Expand Down Expand Up @@ -82,7 +82,7 @@ func TestBooks(t *testing.T) {
AuthorID: int32(authorID),
Isbn: "3",
Title: "the third book",
BookType: "FICTION",
BookType: BookTypeFICTION,
Yr: 2001,
Available: now,
Tags: "cool",
Expand All @@ -96,7 +96,7 @@ func TestBooks(t *testing.T) {
AuthorID: int32(authorID),
Isbn: "4",
Title: "4th place finisher",
BookType: "NONFICTION",
BookType: BookTypeNONFICTION,
Yr: 2011,
Available: now,
Tags: "other",
Expand Down

0 comments on commit c7212b4

Please sign in to comment.