1
1
package by.jprof.telegram.bot.leetcode
2
2
3
+ import java.util.stream.Stream
4
+ import kotlin.streams.asStream
3
5
import org.junit.jupiter.api.Assertions.assertEquals
4
6
import org.junit.jupiter.api.TestInstance
5
7
import org.junit.jupiter.params.ParameterizedTest
6
8
import org.junit.jupiter.params.provider.Arguments
7
9
import org.junit.jupiter.params.provider.MethodSource
8
- import java.util.stream.Stream
9
- import kotlin.streams.asStream
10
10
11
11
@TestInstance(TestInstance .Lifecycle .PER_CLASS )
12
12
internal class NaiveRegexSlugExtractorTest {
@@ -22,6 +22,24 @@ internal class NaiveRegexSlugExtractorTest {
22
22
yield (Arguments .of(" test" , null ))
23
23
yield (Arguments .of(" https://google.com" , null ))
24
24
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" ))
25
27
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
+ ))
26
44
}.asStream()
27
45
}
0 commit comments