Skip to content

Commit bad8753

Browse files
BAEL-2648
1 parent ad3fe3d commit bad8753

17 files changed

Lines changed: 229 additions & 1 deletion

‎core-kotlin-2/pom.xml‎

Lines changed: 63 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,66 @@
1313
<relativePath>../parent-kotlin</relativePath>
1414
</parent>
1515

16-
</project>
16+
<dependencies>
17+
<dependency>
18+
<groupId>org.jetbrains.kotlin</groupId>
19+
<artifactId>kotlin-stdlib-jdk8</artifactId>
20+
<version>${kotlin.version}</version>
21+
</dependency>
22+
<dependency>
23+
<groupId>org.junit.platform</groupId>
24+
<artifactId>junit-platform-runner</artifactId>
25+
<version>${junit.platform.version}</version>
26+
<scope>test</scope>
27+
</dependency>
28+
<dependency>
29+
<groupId>org.assertj</groupId>
30+
<artifactId>assertj-core</artifactId>
31+
<version>${assertj.version}</version>
32+
<scope>test</scope>
33+
</dependency>
34+
<dependency>
35+
<groupId>org.jetbrains.kotlin</groupId>
36+
<artifactId>kotlin-test</artifactId>
37+
<version>${kotlin.version}</version>
38+
<scope>test</scope>
39+
</dependency>
40+
</dependencies>
41+
42+
<build>
43+
<plugins>
44+
<plugin>
45+
<groupId>org.jetbrains.kotlin</groupId>
46+
<artifactId>kotlin-maven-plugin</artifactId>
47+
<version>${kotlin.version}</version>
48+
<executions>
49+
<execution>
50+
<id>compile</id>
51+
<phase>compile</phase>
52+
<goals>
53+
<goal>compile</goal>
54+
</goals>
55+
</execution>
56+
<execution>
57+
<id>test-compile</id>
58+
<phase>test-compile</phase>
59+
<goals>
60+
<goal>test-compile</goal>
61+
</goals>
62+
</execution>
63+
</executions>
64+
<configuration>
65+
<jvmTarget>1.8</jvmTarget>
66+
</configuration>
67+
</plugin>
68+
</plugins>
69+
</build>
70+
71+
<properties>
72+
<kotlin.version>1.2.71</kotlin.version>
73+
<junit.platform.version>1.1.1</junit.platform.version>
74+
<junit.vintage.version>5.2.0</junit.vintage.version>
75+
<assertj.version>3.10.0</assertj.version>
76+
</properties>
77+
78+
</project>

core-kotlin-2/src/main/com/baeldung/range/CharRange.kt renamed to core-kotlin-2/src/main/kotlin/com/baeldung/range/CharRange.kt

File renamed without changes.

core-kotlin-2/src/main/com/baeldung/range/Filter.kt renamed to core-kotlin-2/src/main/kotlin/com/baeldung/range/Filter.kt

File renamed without changes.

core-kotlin-2/src/main/com/baeldung/range/FirstLast.kt renamed to core-kotlin-2/src/main/kotlin/com/baeldung/range/FirstLast.kt

File renamed without changes.

core-kotlin-2/src/main/com/baeldung/range/OtherRangeFunctions.kt renamed to core-kotlin-2/src/main/kotlin/com/baeldung/range/OtherRangeFunctions.kt

File renamed without changes.

core-kotlin-2/src/main/com/baeldung/range/Range.kt renamed to core-kotlin-2/src/main/kotlin/com/baeldung/range/Range.kt

File renamed without changes.

core-kotlin-2/src/main/com/baeldung/range/ReverseRange.kt renamed to core-kotlin-2/src/main/kotlin/com/baeldung/range/ReverseRange.kt

File renamed without changes.
File renamed without changes.

core-kotlin-2/src/main/com/baeldung/range/UntilRange.kt renamed to core-kotlin-2/src/main/kotlin/com/baeldung/range/UntilRange.kt

File renamed without changes.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
package com.baeldung.range
2+
3+
import org.junit.Test
4+
import kotlin.test.assertEquals
5+
6+
class CharRangeTest {
7+
8+
@Test
9+
fun testCharRange() {
10+
assertEquals(listOf('a', 'b', 'c'), ('a'..'c').toList())
11+
}
12+
13+
@Test
14+
fun testCharDownRange() {
15+
assertEquals(listOf('c', 'b', 'a'), ('c'.downTo('a')).toList())
16+
}
17+
}

0 commit comments

Comments
 (0)