Merge branch 'master' into idea13

This commit is contained in:
Andrey Breslav
2013-07-23 14:34:08 +04:00
318 changed files with 6277 additions and 891 deletions
@@ -16,7 +16,8 @@ class IteratorsTest {
assertEquals(arrayList(144, 233, 377, 610, 987), fibonacci().filter { it > 100 }.takeWhile { it < 1000 }.toList())
}
test fun foldReducesTheFirstNElements() {
// TODO fix and enable this test
fun foldReducesTheFirstNElements() {
val sum = { (a: Int, b: Int) -> a + b }
assertEquals(arrayList(13, 21, 34, 55, 89).fold(0, sum), fibonacci().filter { it > 10 }.take(5).fold(0, sum))
}