Skip to content

Commit dbaf7c8

Browse files
authored
Improved task 3541
1 parent c5d0eb4 commit dbaf7c8

File tree

1 file changed

+4
-4
lines changed
  • src/test/kotlin/g3501_3600/s3541_find_most_frequent_vowel_and_consonant

1 file changed

+4
-4
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
package g3501_3600.s3541_find_most_frequent_vowel_and_consonant
22

3-
import org.hamcrest.CoreMatchers
4-
import org.hamcrest.MatcherAssert
3+
import org.hamcrest.CoreMatchers.equalTo
4+
import org.hamcrest.MatcherAssert.assertThat
55
import org.junit.jupiter.api.Test
66

77
internal class SolutionTest {
88
@Test
99
fun maxFreqSum() {
10-
MatcherAssert.assertThat<Int?>(Solution().maxFreqSum("successes"), CoreMatchers.equalTo<Int?>(6))
10+
assertThat<Int>(Solution().maxFreqSum("successes"), equalTo<Int>(6))
1111
}
1212

1313
@Test
1414
fun maxFreqSum2() {
15-
MatcherAssert.assertThat<Int?>(Solution().maxFreqSum("aeiaeia"), CoreMatchers.equalTo<Int?>(3))
15+
assertThat<Int>(Solution().maxFreqSum("aeiaeia"), equalTo<Int>(3))
1616
}
1717
}

0 commit comments

Comments
 (0)