Skip to content

Commit 3893d79

Browse files
authored
Merge pull request #44 from qiaoyuang/main
Add the New JVM Target
2 parents 1c46aaa + 4aa6cd1 commit 3893d79

File tree

2 files changed

+9
-12
lines changed

2 files changed

+9
-12
lines changed

.github/workflows/build.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -51,17 +51,17 @@ jobs:
5151
- name: Run sqllin-driver macOS X64 Tests
5252
run: ./test_driver_macos.sh
5353

54-
#- name: Run sqllin-driver JVM Unit Tests on macOS X64
55-
#run: ./test_driver_jvm.sh
54+
- name: Run sqllin-driver JVM Unit Tests on macOS X64
55+
run: ./test_driver_jvm.sh
5656

5757
- name: Build sqllin-dsl
5858
run: ./gradlew :sqllin-dsl:assemble
5959

6060
- name: Run sqllin-dsl macOS X64 Tests
6161
run: ./test_dsl_macos.sh
6262

63-
#- name: Run sqllin-dsl JVM Unit Tests on macOS X64
64-
#run: ./test_dsl_jvm.sh
63+
- name: Run sqllin-dsl JVM Unit Tests on macOS X64
64+
run: ./test_dsl_jvm.sh
6565

6666
- name: Gradle Cache
6767
uses: gradle/gradle-build-action@v2
@@ -208,8 +208,8 @@ jobs:
208208
- name: Run sqllin-driver Linux X64 Tests
209209
run: ./test_driver_linux.sh
210210

211-
#- name: Run sqllin-driver JVM Unit Tests on Linux X64
212-
#run: ./test_driver_jvm.sh
211+
- name: Run sqllin-driver JVM Unit Tests on Linux X64
212+
run: ./test_driver_jvm.sh
213213

214214
- name: Build sqllin-processor
215215
run: ./gradlew :sqllin-processor:assemble
@@ -220,8 +220,8 @@ jobs:
220220
- name: Run sqllin-dsl Linux X64 Tests
221221
run: ./test_dsl_linux.sh
222222

223-
#- name: Run sqllin-dsl JVM Unit Tests on Linux X64
224-
#run: ./test_dsl_jvm.sh
223+
- name: Run sqllin-dsl JVM Unit Tests on Linux X64
224+
run: ./test_dsl_jvm.sh
225225

226226
- name: Gradle Cache
227227
uses: gradle/gradle-build-action@v2

sqllin-dsl/src/commonTest/kotlin/com/ctrip/sqllin/dsl/CommonBasicTest.kt

+1-4
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ class CommonBasicTest(private val path: DatabasePath) {
236236
val book0 = Book(name = "The Da Vinci Code", author = "Dan Brown", pages = 454, price = 16.96)
237237
val book1 = Book(name = "Kotlin Cookbook", author = "Ken Kousen", pages = 251, price = 37.72)
238238
val book2 = Book(name = "The Lost Symbol", author = "Dan Brown", pages = 510, price = 19.95)
239-
val book3 = Book(name = "Kotlin Guide Pratique", author = "Ken Kousen", pages = 398, price = 39.99)
239+
val book3 = Book(name = "Kotlin Guide Pratique", author = "Ken Kousen", pages = 398, price = 40.08)
240240
var statement: SelectStatement<Book>? = null
241241
database {
242242
statement = BookTable { table ->
@@ -250,9 +250,6 @@ class CommonBasicTest(private val path: DatabasePath) {
250250
}
251251
}
252252
}
253-
statement!!.getResults().forEach {
254-
println(it)
255-
}
256253
assertEquals(7, statement!!.getResults().size)
257254
assertEquals(2, statement!!.getResults().count { it == book0 })
258255
assertEquals(2, statement!!.getResults().count { it == book1 })

0 commit comments

Comments
 (0)