File tree Expand file tree Collapse file tree 4 files changed +24
-18
lines changed Expand file tree Collapse file tree 4 files changed +24
-18
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ apply plugin: 'com.github.johnrengelman.shadow'
55
66buildscript {
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
2122dependencies {
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
2829repositories {
Original file line number Diff line number Diff line change @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33distributionPath =wrapper/dists
44zipStoreBase =GRADLE_USER_HOME
55zipStorePath =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
Original file line number Diff line number Diff line change 11package unsigned
22
33import and
4- import io.kotlintest.KTestJUnitRunner
54import 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
87import io.kotlintest.specs.StringSpec
98import minus
109import or
11- import org.junit.runner.RunWith
1210import plus
1311import times
1412import toUBigInt
@@ -23,7 +21,6 @@ import kotlin.experimental.inv
2321 * Created by elect on 15/10/16.
2422 */
2523
26- @RunWith(KTestJUnitRunner ::class )
2724class 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
You can’t perform that action at this time.
0 commit comments