Common stdlib

- adds actual matching expect declarations
- removes duplicates
- rewrite collections
- add MPP and experimental compiler options
This commit is contained in:
Pavel Punegov
2018-05-16 18:39:49 +03:00
committed by Pavel Punegov
parent c807fca8cb
commit 374397d03f
72 changed files with 2042 additions and 27364 deletions
@@ -170,10 +170,10 @@ fun testReverse() {
assertTrue(builder === builder.reverse())
assertEquals(builder, "654321")
builder.length = 1
builder.setLength(1)
assertEquals(builder, "6")
builder.length = 0
builder.setLength(0)
assertEquals(builder, "")
var str: String = "a"
@@ -261,7 +261,7 @@ fun testBasic() {
assertEquals(19, sb.length)
assertEquals("1, true12345678null", sb.toString())
sb.length = 0
sb.setLength(0)
assertEquals(0, sb.length)
assertEquals("", sb.toString())
}
@@ -965,7 +965,7 @@ class PatternTest2 {
assertEquals(4, result!!.range.start)
// modify text
text.length = 0
text.setLength(0)
text.append("Text have been changed.")
assertNull(regex.find(text))