Skip to content

Commit

Permalink
day 331: add some test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
vaskoz committed Oct 22, 2019
1 parent ae28020 commit 91beceb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions day331/problem_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ var testcases = []struct {
{"xyxxxyxyy", 2},
{"yxxyyyy", 1},
{"yyyxy", 1},
{"yxyxyx", 3},
{"yyyyxyyyxyyyyxx", 4},
{"xxxxxxx", 0},
{"yyyyyyyyyy", 0},
{"xyyyyyyyy", 0},
{"xxxxxxxxyyy", 0},
{"xxxyyxxyyxxyyyyyyyyy", 4},
}

func TestFlipsXsBeforeYs(t *testing.T) {
Expand Down

0 comments on commit 91beceb

Please sign in to comment.