Skip to content

Commit

Permalink
add: complete all corner testcase for pattern16 challenge1
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiwei-Feng committed Jun 16, 2021
1 parent b97c60e commit 1975730
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Pattern16 - Topological Sort/Challenge1/solution_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ func Test_sequenceReconstruction(t *testing.T) {
{"case3", args{[]int{1, 2, 3, 4}, [][]int{{1, 2}, {2, 3}, {3, 4}}}, true},
{"case4", args{[]int{1, 2, 3, 4}, [][]int{{1, 2}, {2, 3}, {2, 4}}}, false},
{"case5", args{[]int{3, 1, 4, 2, 5}, [][]int{{3, 1, 5}, {1, 4, 2, 5}}}, true},
{"case6", args{[]int{}, [][]int{{3, 1, 5}, {1, 4, 2, 5}}}, false},
{"case7", args{[]int{1, 2, 3, 4}, [][]int{{1, 2}, {1, 3}, {2, 3}, {4, 2}}}, false},
{"case8", args{[]int{1, 2, 3, 4}, [][]int{{1, 3}, {3, 4}, {4, 2}}}, false},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
Expand Down

0 comments on commit 1975730

Please sign in to comment.