Skip to content

Commit d6848a4

Browse files
committed
⬆️
Kotlin 1.2.40 Gradle 4.7 KotlinTest 3.0.4 Shadow Plugin 2.0.3
1 parent ede17d3 commit d6848a4

File tree

4 files changed

+24
-18
lines changed

4 files changed

+24
-18
lines changed

.idea/modules/kotlin-unsigned.iml

+14-9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build.gradle

+4-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ apply plugin: 'com.github.johnrengelman.shadow'
55

66
buildscript {
77

8-
ext.kotlinVersion = '1.2.40-eap-51'
8+
ext.kotlinVersion = '1.2.40'
99

1010
repositories {
1111
jcenter() // shadow
@@ -14,15 +14,16 @@ buildscript {
1414
}
1515
dependencies {
1616
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
17-
classpath 'com.github.jengelman.gradle.plugins:shadow:2.0.2'
17+
classpath 'com.github.jengelman.gradle.plugins:shadow:2.0.3'
18+
classpath "org.junit.platform:junit-platform-gradle-plugin:1.1.0"
1819
}
1920
}
2021

2122
dependencies {
2223

2324
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion"
2425

25-
testCompile 'io.kotlintest:kotlintest:2.0.7'
26+
testCompile 'io.kotlintest:kotlintest-runner-junit5:3.0.4'
2627
}
2728

2829
repositories {

gradle/wrapper/gradle-wrapper.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-4.7-all.zip

src/test/kotlin/unsigned/test.kt

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
package unsigned
22

33
import and
4-
import io.kotlintest.KTestJUnitRunner
54
import io.kotlintest.matchers.beLessThan
6-
import io.kotlintest.matchers.should
7-
import io.kotlintest.matchers.shouldBe
5+
import io.kotlintest.shouldBe
6+
import io.kotlintest.should
87
import io.kotlintest.specs.StringSpec
98
import minus
109
import or
11-
import org.junit.runner.RunWith
1210
import plus
1311
import times
1412
import toUBigInt
@@ -23,7 +21,6 @@ import kotlin.experimental.inv
2321
* Created by elect on 15/10/16.
2422
*/
2523

26-
@RunWith(KTestJUnitRunner::class)
2724
class Unsigned : StringSpec() {
2825

2926
val Int.b
@@ -55,6 +52,9 @@ class Unsigned : StringSpec() {
5552
init {
5653

5754
"primitive" {
55+
val a = 4
56+
val b = 5
57+
a.shouldBe(5)
5858

5959
250.b udiv 50.b shouldBe 5.b
6060
250.b urem 200.b shouldBe 50.b

0 commit comments

Comments
 (0)