Skip to content

Commit

Permalink
Also update tests to fix typos there
Browse files Browse the repository at this point in the history
  • Loading branch information
billylanchantin committed Feb 2, 2025
1 parent 5ab6085 commit ad35253
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion test/explorer/data_frame/lazy_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions test/explorer/data_frame_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand All @@ -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

Expand Down

0 comments on commit ad35253

Please sign in to comment.