We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cea0f8e commit 401c362Copy full SHA for 401c362
kadai3-1/lfcd85/typinggame/typinggame_test.go
@@ -9,22 +9,23 @@ import (
9
"github.com/gopherdojo/dojo5/kadai3-1/lfcd85/typinggame"
10
)
11
12
-func TestExecute(t *testing.T) {
13
- g := typinggame.Game{
+func initGame() typinggame.Game {
+ return typinggame.Game{
14
typinggame.Words{"hoge"},
15
1 * time.Second,
16
}
17
+}
18
+
19
+func TestExecute(t *testing.T) {
20
+ g := initGame()
21
22
if err := typinggame.Execute(g); err != nil {
23
t.Errorf("failed to execute new game: %v", err)
24
25
26
27
func TestGame_run(t *testing.T) {
- typinggame.Words{"hoge"},
- 1 * time.Second,
- }
28
29
30
ch := make(chan string)
31
go func() {
0 commit comments