We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c524b0f commit ef94197Copy full SHA for ef94197
integration_test/exqlite/ecto/type.exs
@@ -440,12 +440,12 @@ defmodule Ecto.Integration.TypeTest do
440
assert Decimal.equal?(decimal, cost)
441
end
442
443
- @tag :onboarding
444
@tag :decimal_type
445
test "on coalesce with mixed types" do
446
decimal = Decimal.new("1.0")
447
TestRepo.insert!(%Post{cost: decimal})
448
- assert [^decimal] = TestRepo.all(from p in Post, select: coalesce(p.cost, 0))
+ [cost] = TestRepo.all(from p in Post, select: coalesce(p.cost, 0))
+ assert Decimal.equal?(decimal, cost)
449
450
451
@tag :union_with_literals
0 commit comments