3 ms·
The solution is to add integration testing, for (i=1, i<13, i++) { assert.Equal(t, i, StringToMonth(MonthToString(i))) } the reverse composition is ha
by gus_massa 2y ago
The solution is to add integration testing,
for (i=1, i<13, i++) {
assert.Equal(t, i, StringToMonth(MonthToString(i)))
}
the reverse composition is harder to test.
- debugnik 2y agoDid you mean property testing?