mirror of
https://github.com/rwinkhart/convertroman.git
synced 2026-08-30 13:56:28 -04:00
Correct existing tests to account for vinculum support
This commit is contained in:
@@ -32,13 +32,13 @@ func TestFromInt(t *testing.T) {
|
||||
t.Errorf("FromInt(%d) = %s; want %s", input, out, expected)
|
||||
}
|
||||
}
|
||||
out := FromInt(100000)
|
||||
out := FromInt(4000000)
|
||||
if out != "OOB" {
|
||||
t.Errorf("FromInt(%d) expected an error", 100000)
|
||||
t.Errorf("FromInt(%d) expected an error", 4000000)
|
||||
}
|
||||
out = FromInt(0)
|
||||
if out != "OOB" {
|
||||
t.Errorf("FromInt(%d) expected an error", 0)
|
||||
if out != "0" {
|
||||
t.Errorf("FromInt(%d) something went wrong (0 should resolve to 0)", 0)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user