From 9a08eab15c9c2ed30129c980ecffd492c0daae3c Mon Sep 17 00:00:00 2001 From: Balys Valentukevicius Date: Tue, 25 Jun 2024 17:14:43 +0200 Subject: [PATCH] Update assertions.ex --- lib/assertions.ex | 5 ++--- mix.exs | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/assertions.ex b/lib/assertions.ex index b8df4c2..c57b328 100644 --- a/lib/assertions.ex +++ b/lib/assertions.ex @@ -261,8 +261,7 @@ defmodule Assertions do true """ - @spec assert_map_in_list(map, [map], [any]) :: true | no_return - @spec assert_map_in_list(map, [map], comparison) :: true | no_return + @spec assert_map_in_list(map, [map], nonempty_list(any)) :: true | no_return defmacro assert_map_in_list(map, list, keys_or_comparison) do assertion = assertion( @@ -328,7 +327,7 @@ defmodule Assertions do true """ - @spec assert_maps_equal(map, map, [any]) :: true | no_return + @spec assert_maps_equal(map, map, nonempty_list(any)) :: true | no_return @spec assert_maps_equal(map, map, comparison) :: true | no_return defmacro assert_maps_equal(left, right, keys_or_comparison) do assertion = diff --git a/mix.exs b/mix.exs index 6a17d06..ce346a7 100644 --- a/mix.exs +++ b/mix.exs @@ -5,7 +5,7 @@ defmodule Assertions.MixProject do [ app: :assertions, version: "0.19.0", - elixir: "~> 1.7", + elixir: "~> 1.14", deps: deps(), description: description(), package: package(),