From 527779259325db007e184eff2793b5aef2c31040 Mon Sep 17 00:00:00 2001 From: Jason Axelson Date: Sat, 30 Nov 2024 07:44:31 -1000 Subject: [PATCH] fix compilation warning --- test/mix_helper.exs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/mix_helper.exs b/test/mix_helper.exs index 9e453db..55783c8 100644 --- a/test/mix_helper.exs +++ b/test/mix_helper.exs @@ -36,7 +36,10 @@ defmodule ScenicNew.MixHelper do is_list(match) -> assert_file(file, &Enum.each(match, fn m -> assert &1 =~ m end)) - is_binary(match) or Regex.regex?(match) -> + %Regex{} = match -> + assert_file(file, &assert(&1 =~ match)) + + is_binary(match) -> assert_file(file, &assert(&1 =~ match)) is_function(match, 1) ->