Improve README example

This commit is contained in:
2024-10-27 00:00:18 -04:00
parent 63f3025096
commit fc6dbc7d0d
2 changed files with 11 additions and 10 deletions
-9
View File
@@ -1,7 +1,6 @@
package convertroman
import (
"fmt"
"testing"
)
@@ -49,11 +48,3 @@ func BenchmarkFromInt(b *testing.B) {
_ = FromInt(3999)
}
}
func ExampleFromInt() {
roman := FromInt(4)
if roman == "OOB" {
panic("Input integer is out of bounds (greater than 3,999,999)")
}
fmt.Println(roman == "iv") // True
}