changeset 92 | cfff88de2ff5 |
91:b43c81c65341 | 92:cfff88de2ff5 |
---|---|
1 |
|
2 import scala.concurrent._ |
|
3 import scala.concurrent.duration._ |
|
4 import ExecutionContext.Implicits.global |
|
5 import scala.language.postfixOps |
|
6 |
|
7 |
|
8 |
|
9 lazy val f = Future { |
|
10 assert(replace("aa".% | "bb", "aabbbaaaaaaabaaaaabbaaaabb" , "c") == "ccbcabcaccc") |
|
11 assert(replace("aa".% | "bb", "abba" , "") == "aa") |
|
12 } |
|
13 |
|
14 Await.result(f, 120 second) |