File tree Expand file tree Collapse file tree 17 files changed +53
-24
lines changed
s0003_longest_substring_without_repeating_characters
s0004_median_of_two_sorted_arrays
s0005_longest_palindromic_substring
s0008_string_to_integer_atoi
s0010_regular_expression_matching
s0011_container_with_most_water
g0801_0900/s0864_shortest_path_to_get_all_keys Expand file tree Collapse file tree 17 files changed +53
-24
lines changed Original file line number Diff line number Diff line change @@ -13,11 +13,16 @@ repositories {
1313}
1414
1515dependencies {
16- implementation(" org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.6.0" )
17- testImplementation(" junit:junit:[4.13.2,)" )
16+ implementation(" org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.6.10" )
17+ testImplementation(" org.junit.jupiter:junit-jupiter-api:[5.8.2,)" )
18+ testRuntimeOnly(" org.junit.jupiter:junit-jupiter-engine:[5.8.2,)" )
1819 testImplementation(" org.hamcrest:hamcrest-core:[2.2,)" )
1920}
2021
22+ tasks.test {
23+ useJUnitPlatform()
24+ }
25+
2126group = " com.github.javadev"
2227version = " 1.0-SNAPSHOT"
2328description = " leetcode-in-kotlin"
Original file line number Diff line number Diff line change 2727 <url >https://github.com/javadev/LeetCode-in-Kotlin</url >
2828 </scm >
2929 <properties >
30- <kotlin .version>1.6.0 </kotlin .version>
30+ <kotlin .version>1.6.10 </kotlin .version>
3131 <project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
3232 </properties >
3333 <ciManagement >
6666 </execution >
6767 </executions >
6868 </plugin >
69+ <plugin >
70+ <groupId >org.apache.maven.plugins</groupId >
71+ <artifactId >maven-surefire-plugin</artifactId >
72+ <version >3.0.0-M5</version >
73+ <dependencies >
74+ <dependency >
75+ <groupId >org.junit.jupiter</groupId >
76+ <artifactId >junit-jupiter-engine</artifactId >
77+ <version >[5.8.2,)</version >
78+ </dependency >
79+ </dependencies >
80+ </plugin >
6981 <plugin >
7082 <groupId >org.apache.maven.plugins</groupId >
7183 <artifactId >maven-jar-plugin</artifactId >
132144 <version >${kotlin.version}</version >
133145 </dependency >
134146 <dependency >
135- <groupId >junit</groupId >
136- <artifactId >junit</artifactId >
137- <version >[4.13 .2,)</version >
147+ <groupId >org. junit.jupiter </groupId >
148+ <artifactId >junit-jupiter-api </artifactId >
149+ <version >[5.8 .2,)</version >
138150 <scope >test</scope >
139151 </dependency >
140152 <dependency >
Original file line number Diff line number Diff line change 2626 <url >https://github.com/javadev/LeetCode-in-Kotlin</url >
2727 </scm >
2828 <properties >
29- <kotlin .version>1.6.0 </kotlin .version>
29+ <kotlin .version>1.6.10 </kotlin .version>
3030 <project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
3131 </properties >
3232 <ciManagement >
6565 </execution >
6666 </executions >
6767 </plugin >
68+ <plugin >
69+ <groupId >org.apache.maven.plugins</groupId >
70+ <artifactId >maven-surefire-plugin</artifactId >
71+ <version >3.0.0-M5</version >
72+ <dependencies >
73+ <dependency >
74+ <groupId >org.junit.jupiter</groupId >
75+ <artifactId >junit-jupiter-engine</artifactId >
76+ <version >[5.8.2,)</version >
77+ </dependency >
78+ </dependencies >
79+ </plugin >
6880 </plugins >
6981 </build >
7082 <profiles >
126138 <version >${kotlin.version} </version >
127139 </dependency >
128140 <dependency >
129- <groupId >junit</groupId >
130- <artifactId >junit</artifactId >
131- <version >[4.13 .2,)</version >
141+ <groupId >org. junit.jupiter </groupId >
142+ <artifactId >junit-jupiter-api </artifactId >
143+ <version >[5.8 .2,)</version >
132144 <scope >test</scope >
133145 </dependency >
134146 <dependency >
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ package g0001_0100.s0001_two_sum
22
33import org.hamcrest.CoreMatchers.equalTo
44import org.hamcrest.MatcherAssert.assertThat
5- import org.junit.Test
5+ import org.junit.jupiter.api. Test
66
77class SolutionTest {
88 @Test
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ package g0001_0100.s0002_add_two_numbers
22
33import org.hamcrest.CoreMatchers.equalTo
44import org.hamcrest.MatcherAssert.assertThat
5- import org.junit.Test
5+ import org.junit.jupiter.api. Test
66
77class SolutionTest {
88 @Test
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ package g0001_0100.s0003_longest_substring_without_repeating_characters
22
33import org.hamcrest.CoreMatchers.equalTo
44import org.hamcrest.MatcherAssert.assertThat
5- import org.junit.Test
5+ import org.junit.jupiter.api. Test
66
77class SolutionTest {
88 @Test
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ package g0001_0100.s0004_median_of_two_sorted_arrays
22
33import org.hamcrest.CoreMatchers.equalTo
44import org.hamcrest.MatcherAssert.assertThat
5- import org.junit.Test
5+ import org.junit.jupiter.api. Test
66
77class SolutionTest {
88 @Test
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ package g0001_0100.s0005_longest_palindromic_substring
22
33import org.hamcrest.CoreMatchers.equalTo
44import org.hamcrest.MatcherAssert.assertThat
5- import org.junit.Test
5+ import org.junit.jupiter.api. Test
66
77class SolutionTest {
88 @Test
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ package g0001_0100.s0006_zigzag_conversion
22
33import org.hamcrest.CoreMatchers.equalTo
44import org.hamcrest.MatcherAssert.assertThat
5- import org.junit.Test
5+ import org.junit.jupiter.api. Test
66
77class SolutionTest {
88 @Test
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ package g0001_0100.s0007_reverse_integer
22
33import org.hamcrest.CoreMatchers.equalTo
44import org.hamcrest.MatcherAssert.assertThat
5- import org.junit.Test
5+ import org.junit.jupiter.api. Test
66
77class SolutionTest {
88 @Test
You can’t perform that action at this time.
0 commit comments