Skip to content

Commit

Permalink
Some more tests for new fields
Browse files Browse the repository at this point in the history
  • Loading branch information
lenguyenthanh committed Jun 10, 2024
1 parent 679d983 commit e3a3c12
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion modules/app/src/test/scala/IntegrationSuite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -154,4 +154,13 @@ object IntegrationSuite extends IOSuite:
d <- service.search(Query.game(duration = IntRange(a = 99.some, b = 101.some).some), 0, 12)
e <- service.search(Query.game(clockInit = 100.some), 0, 12)
f <- service.search(Query.game(clockInc = 200.some), 0, 12)
yield expect(a.hitIds.size == 1 && b == a && c == a && d == a && e == a && f == a)
g <- service.search(Query.game(clock = Clocking(initMin = 99.some, initMax = 101.some).some), 0, 12)
h <- service.search(Query.game(clock = Clocking(incMin = 199.some, incMax = 201.some).some), 0, 12)
i <- service.search(
Query.game(clock = Clocking(incMin = 99.some, incMax = 101.some).some, clockInc = 200.some),
0,
12
)
yield expect(
a.hitIds.size == 1 && b == a && c == a && d == a && e == a && f == a && g == a && h == a && i == a
)

0 comments on commit e3a3c12

Please sign in to comment.