Skip to content
This repository has been archived by the owner on Jan 21, 2023. It is now read-only.

Commit

Permalink
Added test for equal to comparison operator.
Browse files Browse the repository at this point in the history
  • Loading branch information
l-monnier committed Sep 26, 2016
1 parent 000c9a2 commit b1eec7a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Binary file modified test.db
Binary file not shown.
6 changes: 3 additions & 3 deletions tests/Database/Hedsql/Statements/Select.hs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ module Database.Hedsql.Statements.Select
, selectGreaterThanOrEqualTo
, selectSmallerThan
, selectSmallerThanOrEqualTo
, selectEqual
, selectEqualTo

-- ** Functions
, addition
Expand Down Expand Up @@ -843,8 +843,8 @@ selectSmallerThanOrEqualTo =
|> end

-- | > SELECT * FROM "People" WHERE "age" = 18
selectEqual :: Select [[Undefined]] dbVendor
selectEqual =
selectEqualTo :: Select [[Undefined]] dbVendor
selectEqualTo =
selectPeople
|> where_ (col "age" integer /== intVal 18)
|> end
Expand Down
2 changes: 1 addition & 1 deletion tests/Database/Hedsql/Tests/Select.hs
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ testEqualTo = testCase "SELECT equal to" assertSelect
assertSelect :: Assertion
assertSelect = assertEqual
"SELECT equal to is incorrect"
"SELECT * FROM \"People\" WHERE \"age\" = 18 false"
"SELECT * FROM \"People\" WHERE \"age\" = 18"
(S.codeGen selectEqualTo)

----------------------------------------
Expand Down

0 comments on commit b1eec7a

Please sign in to comment.