mirror of
https://github.com/rwinkhart/convertroman.git
synced 2026-10-27 04:29:57 -04:00
Correct existing tests to account for vinculum support
This commit is contained in:
1 parent
ba1c6d30ed
commit
3e38327aa4
1 file changed
+4
-4
@@ -32,13 +32,13 @@ func TestFromInt(t *testing.T) {
|
|||||||
t.Errorf("FromInt(%d) = %s; want %s", input, out, expected)
|
t.Errorf("FromInt(%d) = %s; want %s", input, out, expected)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
out := FromInt(100000)
|
out := FromInt(4000000)
|
||||||
if out != "OOB" {
|
if out != "OOB" {
|
||||||
t.Errorf("FromInt(%d) expected an error", 100000)
|
t.Errorf("FromInt(%d) expected an error", 4000000)
|
||||||
}
|
}
|
||||||
out = FromInt(0)
|
out = FromInt(0)
|
||||||
if out != "OOB" {
|
if out != "0" {
|
||||||
t.Errorf("FromInt(%d) expected an error", 0)
|
t.Errorf("FromInt(%d) something went wrong (0 should resolve to 0)", 0)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user