Added test annotations
This commit is contained in:
@@ -66,13 +66,13 @@ class StringTest {
|
|||||||
assertEquals(s, list[0])
|
assertEquals(s, list[0])
|
||||||
}
|
}
|
||||||
|
|
||||||
fun testStartsWithChar() {
|
test fun testStartsWithChar() {
|
||||||
assertTrue("abcd".startsWith('a'))
|
assertTrue("abcd".startsWith('a'))
|
||||||
assertFalse("abcd".startsWith('b'))
|
assertFalse("abcd".startsWith('b'))
|
||||||
assertFalse("".startsWith('a'))
|
assertFalse("".startsWith('a'))
|
||||||
}
|
}
|
||||||
|
|
||||||
fun testEndsWithChar() {
|
test fun testEndsWithChar() {
|
||||||
assertTrue("abcd".endsWith('d'))
|
assertTrue("abcd".endsWith('d'))
|
||||||
assertFalse("abcd".endsWith('b'))
|
assertFalse("abcd".endsWith('b'))
|
||||||
assertFalse("".endsWith('a'))
|
assertFalse("".endsWith('a'))
|
||||||
|
|||||||
Reference in New Issue
Block a user