mirror of
https://github.com/l0ng-ai/openidea.git
synced 2026-11-06 16:08:05 +00:00
13 lines
237 B
Go
13 lines
237 B
Go
package main
|
|
|
|
import "testing"
|
|
|
|
func TestGreeting(t *testing.T) {
|
|
if got := greeting(""); got != "Hello, world!" {
|
|
t.Fatalf("got %q", got)
|
|
}
|
|
if got := greeting("OpenIDEA"); got != "Hello, OpenIDEA!" {
|
|
t.Fatalf("got %q", got)
|
|
}
|
|
}
|