From 41371541e1a707e9f01d8492dae30d93d80c64d0 Mon Sep 17 00:00:00 2001 From: Peter Solnica Date: Wed, 18 Oct 2023 08:10:35 +0200 Subject: [PATCH] Use float() in tests --- test/contract/casters_test.exs | 2 +- test/contract/predicates_test.exs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/contract/casters_test.exs b/test/contract/casters_test.exs index 4c4f854..57eb980 100644 --- a/test/contract/casters_test.exs +++ b/test/contract/casters_test.exs @@ -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 diff --git a/test/contract/predicates_test.exs b/test/contract/predicates_test.exs index b3b1d64..73b4593 100644 --- a/test/contract/predicates_test.exs +++ b/test/contract/predicates_test.exs @@ -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