Skip to content

Commit

Permalink
Better naming for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcere committed Jan 16, 2025
1 parent f33eb41 commit b5c9254
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
File renamed without changes.
4 changes: 2 additions & 2 deletions tests/test_greedy_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def test_repeated_argument_tree_dataflow(self):
sfs, seq, outcome = greedy_from_file("sfs/repeated_argument_tree_dataflow.json")
assert outcome != "error", "Error in test json"

def test_fails_16_1(self):
def test_var_elem_reused_split(self):
"""
It assumed there was an element that was not already placed in their position due because
the method var_elem_can_be_reused returned -1 either if there were no elements to swap or the element to
Expand All @@ -43,5 +43,5 @@ def test_fails_16_1(self):
Fix: split function var_elem_can_be_reused into another method position_to_swap. var_elem_can_be_reused just
checks if an element can be used safely and position_to_swap returns in which position we can reuse an element.
"""
sfs, seq, outcome = greedy_from_file("sfs/fails_16_1.json")
sfs, seq, outcome = greedy_from_file("sfs/var_elem_reused_split.json")
assert outcome != "error", "Error in test json"

0 comments on commit b5c9254

Please sign in to comment.