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