more stdlib and docs
This commit is contained in:
1 parent
cd2b1a9cb7
commit
5586e027ea
4 files changed
+98
-15
No files matched your search
@@ -106,4 +106,11 @@ class StdlibTest {
|
||||
assertEquals([1,2,3,4,5,6], [1,3,5].flatMap { [it,it+1] }.toList() )
|
||||
""")
|
||||
}
|
||||
|
||||
@Test
|
||||
fun testCount() = runTest {
|
||||
eval("""
|
||||
assertEquals(5, (1..10).toList().count { it % 2 == 1 } )
|
||||
""")
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user