Skip to content

Commit 86fbfc6

Browse files
committed
Fix another tests
1 parent 5dcd45a commit 86fbfc6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

quill-core/src/test/scala/io/getquill/context/QueryMacroSpec.scala

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -105,14 +105,14 @@ class QueryMacroSpec extends Spec {
105105
qr1.filter(t => t.i == lift(1)).map(t => t.i)
106106
}
107107
testContext.translate(q) mustEqual
108-
"""querySchema("TestEntity").filter(t => t.i == 1).map(t => t.i)"""
108+
"""querySchema("TestEntity").filter(t => t.i == lift(1)).map(t => t.i)"""
109109
}
110110
"two" in {
111111
val q = quote {
112112
qr1.filter(t => t.i == lift(1) && t.s == lift("a")).map(t => t.i)
113113
}
114114
testContext.translate(q) mustEqual
115-
"""querySchema("TestEntity").filter(t => (t.i == 1) && (t.s == 'a')).map(t => t.i)"""
115+
"""querySchema("TestEntity").filter(t => (t.i == lift(1)) && (t.s == lift('a'))).map(t => t.i)"""
116116
}
117117
"nested" in {
118118
val c = quote { (t: TestEntity) =>
@@ -122,7 +122,7 @@ class QueryMacroSpec extends Spec {
122122
qr1.filter(t => c(t) && t.s == lift("a")).map(t => t.i)
123123
}
124124
testContext.translate(q) mustEqual
125-
"""querySchema("TestEntity").filter(t => (t.i == 1) && (t.s == 'a')).map(t => t.i)"""
125+
"""querySchema("TestEntity").filter(t => (t.i == lift(1)) && (t.s == lift('a'))).map(t => t.i)"""
126126
}
127127
}
128128
"dynamic" - {
@@ -131,14 +131,14 @@ class QueryMacroSpec extends Spec {
131131
qr1.filter(t => t.i == lift(1)).map(t => t.i)
132132
}
133133
testContext.translate(q.dynamic) mustEqual
134-
"""querySchema("TestEntity").filter(t => t.i == 1).map(t => t.i)"""
134+
"""querySchema("TestEntity").filter(t => t.i == lift(1)).map(t => t.i)"""
135135
}
136136
"two" in {
137137
val q = quote {
138138
qr1.filter(t => t.i == lift(1) && t.s == lift("a")).map(t => t.i)
139139
}
140140
val r = testContext.translate(q.dynamic) mustEqual
141-
"""querySchema("TestEntity").filter(t => (t.i == 1) && (t.s == 'a')).map(t => t.i)"""
141+
"""querySchema("TestEntity").filter(t => (t.i == lift(1)) && (t.s == lift('a'))).map(t => t.i)"""
142142
}
143143
"nested" in {
144144
val c = quote { (t: TestEntity) =>
@@ -148,7 +148,7 @@ class QueryMacroSpec extends Spec {
148148
qr1.filter(t => c(t) && t.s == lift("a")).map(t => t.i)
149149
}
150150
testContext.translate(q.dynamic) mustEqual
151-
"""querySchema("TestEntity").filter(t => (t.i == 1) && (t.s == 'a')).map(t => t.i)"""
151+
"""querySchema("TestEntity").filter(t => (t.i == lift(1)) && (t.s == lift('a'))).map(t => t.i)"""
152152
}
153153
}
154154
}

0 commit comments

Comments
 (0)