equal
deleted
inserted
replaced
|
1 import CW9c._ |
1 |
2 |
2 |
|
3 |
|
4 assert(nullable(ZERO) == false) |
3 assert(nullable(ZERO) == false) |
5 assert(nullable(ONE) == true) |
4 assert(nullable(ONE) == true) |
6 assert(nullable(CHAR('a')) == false) |
5 assert(nullable(CHAR('a')) == false) |
7 assert(nullable(ZERO | ONE) == true) |
6 assert(nullable(ZERO | ONE) == true) |
8 assert(nullable(ZERO | CHAR('a')) == false) |
7 assert(nullable(ZERO | CHAR('a')) == false) |
9 assert(nullable(ONE ~ ONE) == true) |
8 assert(nullable(ONE ~ ONE) == true) |
10 assert(nullable(ONE ~ CHAR('a')) == false) |
9 assert(nullable(ONE ~ CHAR('a')) == false) |
11 assert(nullable(STAR(ZERO)) == true) |
10 assert(nullable(STAR(ZERO)) == true) |
12 |
11 |
13 |
|
14 |
|
15 //import scala.concurrent._ |
|
16 //import scala.concurrent.duration._ |
|
17 //import ExecutionContext.Implicits.global |
|
18 //import scala.language.postfixOps |
|
19 //import scala.language.reflectiveCalls |
|
20 |
|
21 //lazy val f = Future { |
|
22 |
|
23 //} |
|
24 //Await.result(f,30 second) |
|