File tree 4 files changed +24
-18
lines changed
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'
5
5
6
6
buildscript {
7
7
8
- ext. kotlinVersion = ' 1.2.40-eap-51 '
8
+ ext. kotlinVersion = ' 1.2.40'
9
9
10
10
repositories {
11
11
jcenter() // shadow
@@ -14,15 +14,16 @@ buildscript {
14
14
}
15
15
dependencies {
16
16
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"
18
19
}
19
20
}
20
21
21
22
dependencies {
22
23
23
24
compile " org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion "
24
25
25
- testCompile ' io.kotlintest:kotlintest:2 .0.7 '
26
+ testCompile ' io.kotlintest:kotlintest-runner-junit5:3 .0.4 '
26
27
}
27
28
28
29
repositories {
Original file line number Diff line number Diff line change @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
3
3
distributionPath =wrapper/dists
4
4
zipStoreBase =GRADLE_USER_HOME
5
5
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
Original file line number Diff line number Diff line change 1
1
package unsigned
2
2
3
3
import and
4
- import io.kotlintest.KTestJUnitRunner
5
4
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
8
7
import io.kotlintest.specs.StringSpec
9
8
import minus
10
9
import or
11
- import org.junit.runner.RunWith
12
10
import plus
13
11
import times
14
12
import toUBigInt
@@ -23,7 +21,6 @@ import kotlin.experimental.inv
23
21
* Created by elect on 15/10/16.
24
22
*/
25
23
26
- @RunWith(KTestJUnitRunner ::class )
27
24
class Unsigned : StringSpec () {
28
25
29
26
val Int .b
@@ -55,6 +52,9 @@ class Unsigned : StringSpec() {
55
52
init {
56
53
57
54
" primitive" {
55
+ val a = 4
56
+ val b = 5
57
+ a.shouldBe(5 )
58
58
59
59
250 .b udiv 50 .b shouldBe 5 .b
60
60
250 .b urem 200 .b shouldBe 50 .b
You can’t perform that action at this time.
0 commit comments