Skip to content

Commit

Permalink
test: deduplicate code using functions (#214)
Browse files Browse the repository at this point in the history
The purpose of this PR is to wrap duplicated code into functions.
This PR also fixes a bug in the testing of width tolerance increases.
Prior, we were testing that a 40% increase (`1.40`) was less than the
desired bound of `2.40`. Now, we add a small amount to the tolerance
upper bound (`0.004`) so that when we check increases that are slightly
more than 40% (e.g. 40.1%) we account for the rounding that occurs in
generating target widths.
  • Loading branch information
ericdeansanchez authored Jan 22, 2021
1 parent 8079e75 commit d5c34a0
Showing 1 changed file with 287 additions and 669 deletions.
Loading

0 comments on commit d5c34a0

Please sign in to comment.