Skip to content

Instantly share code, notes, and snippets.

@haru01
Last active May 31, 2017 14:34
Show Gist options
  • Save haru01/2a822a8c597f13349bf8dd90456703a2 to your computer and use it in GitHub Desktop.
Save haru01/2a822a8c597f13349bf8dd90456703a2 to your computer and use it in GitHub Desktop.
first
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)
}
}
@haru01
Copy link
Author

haru01 commented May 31, 2017

--- 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment