Skip to content

Commit f373509

Browse files
authored
Merge pull request #2 from cbeust/KobaltBuild
Build kotlin-unsigned with Kobalt.
2 parents cdffbb6 + 2165d68 commit f373509

File tree

6 files changed

+26
-2
lines changed

6 files changed

+26
-2
lines changed

kobalt/src/Build.kt

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
2+
import com.beust.kobalt.*
3+
4+
val p = project {
5+
name = "kotlin-unsigned"
6+
group = "elect86"
7+
artifactId = name
8+
version = "0.1"
9+
10+
dependenciesTest {
11+
compile("io.kotlintest:kotlintest:1.3.5")
12+
}
13+
}
14+
15+
test {
16+
include("**/*.class")
17+
}

kobalt/wrapper/kobalt-wrapper.jar

11 KB
Binary file not shown.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
kobalt.version=0.914

kobaltw

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/env sh
2+
java -jar "`dirname "$0"`/kobalt/wrapper/kobalt-wrapper.jar" $*

kobaltw.bat

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
@echo off
2+
set DIRNAME=%~dp0
3+
if "%DIRNAME%" == "" set DIRNAME=.
4+
java -jar "%DIRNAME%/kobalt/wrapper/kobalt-wrapper.jar" %*

src/test/kotlin/unsigned.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import java.math.BigInteger
99
*/
1010

1111
@RunWith(KTestJUnitRunner::class)
12-
class unsigned : StringSpec() {
12+
class Unsigned : StringSpec() {
1313

1414
val Int.b
1515
get() = toByte()
@@ -553,4 +553,4 @@ class unsigned : StringSpec() {
553553
(65_500 >= Ushort(65_500)) shouldBe true
554554
}
555555
}
556-
}
556+
}

0 commit comments

Comments
 (0)