11package by.jprof.telegram.bot.leetcode
22
3+ import java.util.stream.Stream
4+ import kotlin.streams.asStream
35import org.junit.jupiter.api.Assertions.assertEquals
46import org.junit.jupiter.api.TestInstance
57import org.junit.jupiter.params.ParameterizedTest
68import org.junit.jupiter.params.provider.Arguments
79import org.junit.jupiter.params.provider.MethodSource
8- import java.util.stream.Stream
9- import kotlin.streams.asStream
1010
1111@TestInstance(TestInstance .Lifecycle .PER_CLASS )
1212internal class NaiveRegexSlugExtractorTest {
@@ -22,6 +22,24 @@ internal class NaiveRegexSlugExtractorTest {
2222 yield (Arguments .of(" test" , null ))
2323 yield (Arguments .of(" https://google.com" , null ))
2424 yield (Arguments .of(" https://leetcode.com/problems/two-sum/" , " two-sum" ))
25+ yield (Arguments .of(" https://leetcode.com/problems/two-sum" , " two-sum" ))
26+ yield (Arguments .of(" https://leetcode.com/problems/3sum/" , " 3sum" ))
2527 yield (Arguments .of(" https://leetcode.com/problems/3sum" , " 3sum" ))
28+ yield (Arguments .of(
29+ " https://leetcode.com/problems/minimum-number-of-arrows-to-burst-balloons/description/" ,
30+ " minimum-number-of-arrows-to-burst-balloons"
31+ ))
32+ yield (Arguments .of(
33+ " https://leetcode.com/problems/minimum-number-of-arrows-to-burst-balloons/discussion" ,
34+ " minimum-number-of-arrows-to-burst-balloons"
35+ ))
36+ yield (Arguments .of(
37+ " https://leetcode.com/problems/minimum-number-of-arrows-to-burst-balloons/solutions" ,
38+ " minimum-number-of-arrows-to-burst-balloons"
39+ ))
40+ yield (Arguments .of(
41+ " https://leetcode.com/problems/minimum-number-of-arrows-to-burst-balloons/submissions/" ,
42+ " minimum-number-of-arrows-to-burst-balloons"
43+ ))
2644 }.asStream()
2745}
0 commit comments