| changeset 281 | 32dfd2ca577b |
| parent 280 | a56a6c28b700 |
| child 282 | 2d290b79fc73 |
| 280:a56a6c28b700 | 281:32dfd2ca577b |
|---|---|
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) |