Skip to content

Commit 6d3162d

Browse files
committed
Build kotlin-unsigned with Kobalt.
I don't expect you to merge this, just showing you what your project looks like when built by Kobalt. Run with: ./kobaltw test Note that I renamed your test class from `unsigned` to `UnsignedTest`, otherwise Kobalt won't find it by default (you can configure the test runner to look at all the .class files but that might take a while, so by default, Kobalt only looks for **/*Test.class).
1 parent cdffbb6 commit 6d3162d

File tree

6 files changed

+22
-2
lines changed

6 files changed

+22
-2
lines changed

kobalt/src/Build.kt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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+
}

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 UnsignedTest : 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)