mirror of
https://github.com/rwinkhart/convertroman.git
synced 2026-09-05 08:27:21 -04:00
Add support for (inefficiently) getting uppercase return values
This commit is contained in:
@@ -53,7 +53,7 @@ func BenchmarkFromInt(b *testing.B) {
|
||||
func ExampleFromInt() {
|
||||
roman := FromInt(4)
|
||||
if roman == "OOB" {
|
||||
panic("Input integer is out of bounds")
|
||||
panic("Input integer is out of bounds (greater than 3,999,999)")
|
||||
}
|
||||
fmt.Println(roman == "IV") // True
|
||||
fmt.Println(roman == "iv") // True
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user