Skip to content

Commit

Permalink
Use float() in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
solnic committed Oct 18, 2023
1 parent f55958c commit 4137154
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/contract/casters_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ defmodule Drops.CastersTest do
describe ":string => :float" do
contract do
schema do
%{required(:test) => cast(:string) |> type(:float)}
%{required(:test) => cast(:string) |> float()}
end
end

Expand Down
2 changes: 1 addition & 1 deletion test/contract/predicates_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ defmodule Drops.PredicatesTest do
describe "type?/2 with :float" do
contract do
schema do
%{required(:test) => type(:float)}
%{required(:test) => float()}
end
end

Expand Down

0 comments on commit 4137154

Please sign in to comment.