From ad35253375cf477c79e4eeff213e092136e68e06 Mon Sep 17 00:00:00 2001 From: William Lanchantin Date: Sun, 2 Feb 2025 12:32:59 -0500 Subject: [PATCH] Also update tests to fix typos there --- test/explorer/data_frame/lazy_test.exs | 2 +- test/explorer/data_frame_test.exs | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/test/explorer/data_frame/lazy_test.exs b/test/explorer/data_frame/lazy_test.exs index d8a18be76..e84d2ad64 100644 --- a/test/explorer/data_frame/lazy_test.exs +++ b/test/explorer/data_frame/lazy_test.exs @@ -902,7 +902,7 @@ defmodule Explorer.DataFrame.LazyTest do assert DF.names(df3) == DF.names(df) assert_raise ArgumentError, - ~r"range 100..200 is out of bounds for a dataframe with 10 columns", + "range 100..200 is out of bounds for a dataframe with 10 column(s)", fn -> DF.distinct(df, 100..200) end end end diff --git a/test/explorer/data_frame_test.exs b/test/explorer/data_frame_test.exs index c21249c9b..a7ee10d69 100644 --- a/test/explorer/data_frame_test.exs +++ b/test/explorer/data_frame_test.exs @@ -2716,11 +2716,11 @@ defmodule Explorer.DataFrameTest do fn -> df[:class] end assert_raise ArgumentError, - ~r"range 0..3 is out of bounds for a dataframe with 3 columns", + "range 0..3 is out of bounds for a dataframe with 3 column(s)", fn -> DF.to_columns(df[0..3]) end assert_raise ArgumentError, - ~r"range 0..-4//1 is out of bounds for a dataframe with 3 columns", + "range 0..-4//1 is out of bounds for a dataframe with 3 column(s)", fn -> DF.to_columns(df[0..-4//1]) end end @@ -2968,7 +2968,7 @@ defmodule Explorer.DataFrameTest do assert DF.names(df3) == DF.names(df) assert_raise ArgumentError, - ~r"range 100..200 is out of bounds for a dataframe with 10 columns", + "range 100..200 is out of bounds for a dataframe with 10 column(s)", fn -> DF.drop_nil(df, 100..200) end end end @@ -2992,7 +2992,7 @@ defmodule Explorer.DataFrameTest do # It takes the slice of columns in the range assert_raise ArgumentError, - ~r"range 0..200 is out of bounds for a dataframe with 2 columns", + "range 0..200 is out of bounds for a dataframe with 2 column(s)", fn -> DF.drop_nil(df, 0..200) end end