Roman numerals in Go
go get -u -v github.com/wzshiming/romanumeral
func TestRoman(t *testing.T) {
for i := Roman(1); i != 4000; i++ {
tmp, err := i.EncodeToString()
if err != nil {
t.Error(err)
}
var d Roman
off, err := d.DecodeString(tmp)
if err != nil {
t.Error(err)
}
if d != i {
t.Fatal(int(i), d, i, off, tmp)
}
}
}
Pouch is licensed under the MIT License. See LICENSE for the full license text.