Skip to content

Commit

Permalink
Updated test for removed_lines
Browse files Browse the repository at this point in the history
  • Loading branch information
bkushigian committed Oct 26, 2024
1 parent 17201e5 commit ff5fb85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/game/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1311,7 +1311,7 @@ fn deserialize_config_defaults() {
\"effective_stack\": 500
},
\"added_lines\": [],
\"removed_lines\": []
\"removed_lines\": [[\"Check\", \"Check\"]]
}";

let result = deserialize_configs_from_str(config_contents);
Expand Down Expand Up @@ -1342,7 +1342,7 @@ fn deserialize_config_defaults() {
assert_eq!(tree_config.rake_rate, 0.0);

assert!(added.is_empty());
assert!(removed.is_empty());
assert_eq!(removed, vec![vec![Action::Check, Action::Check]]);

// This should not deserialize:
let config_contents = "{}";
Expand Down

0 comments on commit ff5fb85

Please sign in to comment.