Yes ... this is a case where removing duplication in tests would appeal to me more than it usually does.
R
This is a situation where I¡¯d consider refactoring the example based tests to property-based tests.?
This would make the intent of the tests more explicit, because the reader does not need to infer the properties from triangulating example-based tests.?
It would provide more extensive coverage, thereby supporting a future refactoring that might make the coverage of the original examples insufficient.?
And it would uncover any ¡°unknown unknowns¡± that didn¡¯t occur to the developer(s) while they were coming up with examples.
I don't necessarily agree with everything I say. -- Marshall McLuhan