Below you will find pages that utilize the taxonomy term “lesson 12”
April 3, 2025
Learn to Code In 5 Minutes A Day: Lesson 12
Lesson 11 Solution Yesterday you were supposed to add a unit test and code for the roman numeral 5.
Did you come up with this?
Unit Test: func TestRoman5(t *testing.T) { result := roman(5) expected := "V" if result != expected { t.Errorf("result was incorrect, got: %v, want: %v.", result, expected) } } Run the Test Did you remember to run the test first before trying to solve it?
go test --- FAIL: TestRoman5 (0.
read more