This file contains 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
--- FAIL: TestToRoman (0.00s) | |
/Users/eiji/go/src/sandbox/roman/roman_test.go:30: Fail ToRoman(1): want I got _ | |
FAIL | |
FAIL sandbox/roman 0.006s | |
Error: Tests failed. |
This file contains 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
[ | |
{ | |
"key": "cmd+r", | |
"command": "go.test.workspace" | |
}, | |
{ | |
"key": "alt+down", | |
"command": "editor.action.goToDeclaration", | |
"when": "editorHasDefinitionProvider && editorTextFocus && !isInEmbeddedEditor" | |
}, |
This file contains 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 | |
func ToRoman(n int) string { | |
return "I" | |
} |
This file contains 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
Running tool: /usr/local/bin/go test -timeout 30s -tags ./... | |
ok sandbox/roman 0.006s | |
Success: Tests passed. |
This file contains 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 TestToRoman(t *testing.T) { | |
testCases := []struct { | |
name string | |
in int | |
want string | |
}{ |
This file contains 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 | |
func ToRoman(n int) string { | |
return "_" | |
} |
This file contains 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
--- FAIL: TestToRoman (0.00s) | |
--- FAIL: TestToRoman/1=>Iと変換できること (0.00s) | |
roman_test.go:36: ToRoman(1): got _ want I | |
FAIL | |
FAIL sandbox/roman 0.006s | |
Error: Tests failed. |
This file contains 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
ok sandbox/roman 0.006s | |
Success: Tests passed. |
This file contains 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 TestToRoman(t *testing.T) { | |
testCases := []struct { | |
name string | |
in uint16 | |
want string | |
}{ |
This file contains 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
--- FAIL: TestToRoman (0.00s) | |
--- FAIL: TestToRoman/5=>Vと変換できること (0.00s) | |
roman_test.go:37: ToRoman(5): got I want V | |
FAIL | |
FAIL sandbox/roman 0.006s | |
Error: Tests failed. |