Merge pull request #19 from chirino/master

Simplify the String.toRegex extension to a single function
This commit is contained in:
James Strachan
2012-03-13 07:13:18 -07:00
3 changed files with 22 additions and 12 deletions
+13
View File
@@ -33,4 +33,17 @@ class StringTest() : TestCase() {
assertEquals("hey", s.orEmpty())
assertEquals("", ns.orEmpty())
}
fun testToShort() {
assertEquals(77.toShort(), "77".toShort())
}
fun testToInt() {
assertEquals(77, "77".toInt())
}
fun testToLong() {
assertEquals(77.toLong(), "77".toLong())
}
}