Skip to content

Commit 614cf83

Browse files
committed
fix compilation error in tests due to missing parens
1 parent 64661f3 commit 614cf83

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

test/mongo_ecto/normalized_query_new_test.exs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ defmodule Mongo.Ecto.NormalizedQueryNewTest do
9898

9999
assert [{:&, _, _}] = query.fields
100100

101-
query = from p in "posts", select: p |> normalize()
101+
query = from(p in "posts", select: p) |> normalize()
102102

103103
assert_fields query,
104104
coll: "posts",
@@ -395,10 +395,9 @@ defmodule Mongo.Ecto.NormalizedQueryNewTest do
395395
z = 123
396396

397397
query =
398-
from r in Schema,
399-
[]
400-
|> where([r], (r.x > 0 and r.y > ^(-z)) or true)
401-
|> normalize
398+
from(r in Schema, [])
399+
|> where([r], (r.x > 0 and r.y > ^(-z)) or true)
400+
|> normalize
402401

403402
assert_fields query, query: %{"$or": [["$and": [[x: ["$gt": 0]], [y: ["$gt": -123]]]], true]}
404403
end

0 commit comments

Comments
 (0)