Skip to content

Commit ef94197

Browse files
committed
another decimal precision test fix
1 parent c524b0f commit ef94197

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

integration_test/exqlite/ecto/type.exs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -440,12 +440,12 @@ defmodule Ecto.Integration.TypeTest do
440440
assert Decimal.equal?(decimal, cost)
441441
end
442442

443-
@tag :onboarding
444443
@tag :decimal_type
445444
test "on coalesce with mixed types" do
446445
decimal = Decimal.new("1.0")
447446
TestRepo.insert!(%Post{cost: decimal})
448-
assert [^decimal] = TestRepo.all(from p in Post, select: coalesce(p.cost, 0))
447+
[cost] = TestRepo.all(from p in Post, select: coalesce(p.cost, 0))
448+
assert Decimal.equal?(decimal, cost)
449449
end
450450

451451
@tag :union_with_literals

0 commit comments

Comments
 (0)