Update courselist_test.go
This commit is contained in:
parent
f8b52d3612
commit
ec51581531
1 changed files with 3 additions and 0 deletions
|
@ -14,6 +14,9 @@ func impl(t *testing.T, prereqs map[string][]string, courseList []string) {
|
|||
t.Errorf("course %v (index %v) depends on course %v which is not taken yet", course, index, prereq)
|
||||
}
|
||||
}
|
||||
if learned[course] {
|
||||
t.Errorf("course %v (index %v) has been taken at least twice", course, index)
|
||||
}
|
||||
learned[course] = true
|
||||
}
|
||||
for course := range prereqs {
|
||||
|
|
Loading…
Reference in a new issue