Skip to content

Commit

Permalink
Adjusting to changes in Map entries ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
JaroslavTulach committed Nov 30, 2023
1 parent 4cb4570 commit 67bc16e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ spec setup =
t2.should_fail_with Ambiguous_Column_Rename
err = t2.catch
err.column_name . should_equal "alpha"
err.new_names . should_equal ["StartsWithA", "EndsWithA"]
err.new_names . sort . should_equal ["EndsWithA", "StartsWithA"]

t3 = table_builder [["aaa", [1]], ["bbb", [2]]]
## The rename patterns are deliberately prepared so that both will
Expand Down Expand Up @@ -459,7 +459,7 @@ spec setup =
Test.specify "should correctly handle problems: duplicate names" <|
map = ["Test", "Test", "Test", "Test"]
action = table.rename_columns map on_problems=_
tester = expect_column_names ["Test", "Test 1", "Test 2", "Test 3"]
tester = expect_column_names ["Test 1", "Test 2", "Test 3", "Test"]
problems = [Duplicate_Output_Column_Names.Error ["Test", "Test", "Test"]]
Problems.test_problem_handling action problems tester

Expand Down

0 comments on commit 67bc16e

Please sign in to comment.