13 lines
201 B
Go
13 lines
201 B
Go
|
package main
|
||
|
|
||
|
import "testing"
|
||
|
|
||
|
func TestHello(t *testing.T) {
|
||
|
given := Hello()
|
||
|
expected := "Hello, world!"
|
||
|
|
||
|
if given != expected {
|
||
|
t.Errorf("given: %v, expected: %v", given, expected)
|
||
|
}
|
||
|
}
|