Skip to content

Commit 72b73a2

Browse files
Refactor tests in ParserStructureConcatenationTest to use assertTrue for empty collection checks.
1 parent 93c2730 commit 72b73a2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/common/test/format/ParserStructureConcatenationTest.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,18 +85,18 @@ class ParserStructureConcatenationTest {
8585
val actual = listOf(parser).concat()
8686

8787
with(actual) {
88-
assertEquals(0, operations.size)
88+
assertTrue(operations.isEmpty())
8989
assertEquals(2, followedBy.size)
9090
with(followedBy[0]) {
91-
assertEquals(0, followedBy.size)
91+
assertTrue(followedBy.isEmpty())
9292
with(operations) {
9393
assertEquals(1, size)
9494
assertTrue(operations[0] is NumberSpanParserOperation)
9595
assertEquals(2, (operations[0] as NumberSpanParserOperation).consumers.size)
9696
}
9797
}
9898
with(followedBy[1]) {
99-
assertEquals(0, followedBy.size)
99+
assertTrue(followedBy.isEmpty())
100100
with(operations) {
101101
assertEquals(1, size)
102102
with(operations) {

0 commit comments

Comments
 (0)