changeset 98 | 8f03f0dc3065 |
parent 92 | cfff88de2ff5 |
97:3db70bdce7a4 | 98:8f03f0dc3065 |
---|---|
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) |