Skip to content

Commit

Permalink
Get rid of duplication in testing of Sum equality
Browse files Browse the repository at this point in the history
Instead of hardcoding two expected LaTeX representations of a given
expression, we now do an exhaustive search over all permutation of
summands to see if one of them yields the desired permutation.
This is acceptable as the order of summands has no practical relevance
other than for matching a hard-coded order in a test case.

The benefit of doing it this way is reduced maintenance cost in exchange
for a runtime performance overhead when running the tests. However, the
overhead is expected to be small and for test cases it shouldn't matter
anyway.
  • Loading branch information
Krzmbrzl committed Feb 6, 2024
1 parent af31672 commit 113ef4b
Show file tree
Hide file tree
Showing 3 changed files with 189 additions and 259 deletions.
Loading

0 comments on commit 113ef4b

Please sign in to comment.