Roman Numerals: Add Test Cases
Explore how to add comprehensive test cases for a Roman numeral conversion function in Go. Learn to cover important edge values and include negative tests for out-of-range inputs to ensure reliability and correctness before refactoring your tests.
We'll cover the following...
We'll cover the following...
Write more tests
It’s time to add more tests to our test suite to check if our DecimalToRoman function is behaving as expected.
Positive test cases
When testing our programs, we can’t rely exclusively on trivial input values. We also have ...