Below you will find pages that utilize the taxonomy term “lesson 7”
June 7, 2024
Learn to Code in 5 Minutes a Day: Lesson 7
Lesson 6 Solution: Roman Numeral I You should have come up with a solution that looks like the following. If you did, great! All it took was changing:
return ""
to
return “I”
roman.go
func roman(number int) string { return "I" } roman_test.go
func TestRoman(t *testing.T) { result := roman(1) expected := "I" if result != expected { t.Errorf("result was incorrect, got: %v, want: %v.", result, expected) } } go test PASS ok hello 0.
read more