Last active
May 31, 2017 14:34
-
-
Save haru01/2a822a8c597f13349bf8dd90456703a2 to your computer and use it in GitHub Desktop.
first
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package roman | |
import ( | |
"testing" | |
) | |
func ToRoman(in int16) string { | |
return "_" | |
} | |
func TestToRoma(t *testing.T) { | |
if got, want := ToRoman(1), "I"; want != got { | |
t.Errorf("Fail ToRoman(1) = %s want I", got) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
--- FAIL: TestToRoma (0.00s)
/Users/eiji/go/src/sandbox/roman/roman_test.go:13: Fail ToRoman(1) = _ want I
FAIL
FAIL sandbox/roman 0.008s
Error: Tests failed.