Skip to content

Commit

Permalink
Address map key ordering in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim committed Jun 24, 2024
1 parent 52c9ddf commit 84153d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/explorer/data_frame_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,7 @@ defmodule Explorer.DataFrameTest do
test "with map " do
df = DF.new(%{a: [1, nil, 3], b: ["a", "b", nil]})
df1 = DF.mutate(df, c: %{a: a, b: b, lit: 1, null: is_nil(a)})
assert df1.names == ["a", "b", "c"]
assert df1.names |> Enum.sort() == ["a", "b", "c"]

assert df1.dtypes == %{
"a" => {:s, 64},
Expand All @@ -732,7 +732,7 @@ defmodule Explorer.DataFrameTest do
test "with map nested" do
df = DF.new(%{a: [1, nil, 3], b: ["a", "b", nil]})
df1 = DF.mutate(df, c: %{s: %{a: a, b: b}})
assert df1.names == ["a", "b", "c"]
assert df1.names |> Enum.sort() == ["a", "b", "c"]

assert df1.dtypes == %{
"a" => {:s, 64},
Expand Down

0 comments on commit 84153d3

Please sign in to comment.