1 |
1 |
2 import M2._ |
2 def urbanmain() = { |
|
3 import M2._ |
3 |
4 |
4 assert(score("chess", "caves") == List(Correct, Absent, Absent, Present, Correct)) |
5 assert(score("chess", "caves") == List(Correct, Absent, Absent, Present, Correct)) |
5 assert(score("doses", "slide") == List(Present, Absent, Absent, Present, Present)) |
6 assert(score("doses", "slide") == List(Present, Absent, Absent, Present, Present)) |
6 assert(score("chess", "swiss") == List(Absent, Absent, Absent, Correct, Correct)) |
7 assert(score("chess", "swiss") == List(Absent, Absent, Absent, Correct, Correct)) |
7 assert(score("chess", "eexss") == List(Present, Absent, Absent, Correct, Correct)) |
8 assert(score("chess", "eexss") == List(Present, Absent, Absent, Correct, Correct)) |
8 |
9 |
9 val urban_p = pool("chess", "caves") |
10 val urban_p = pool("chess", "caves") |
10 |
11 |
11 assert(aux("chess".toList, "caves".toList, Nil) == List(Correct, Absent, Absent, Absent, Correct)) |
12 assert(aux("chess".toList, "caves".toList, Nil) == List(Correct, Absent, Absent, Absent, Correct)) |
12 assert(aux("chess".toList, "caves".toList, urban_p) == List(Correct, Absent, Absent, Present, Correct)) |
13 assert(aux("chess".toList, "caves".toList, urban_p) == List(Correct, Absent, Absent, Present, Correct)) |
|
14 } |