diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2d3c5ef..703f511 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -51,8 +51,8 @@ jobs: - name: Run sqllin-driver macOS X64 Tests run: ./test_driver_macos.sh - #- name: Run sqllin-driver JVM Unit Tests on macOS X64 - #run: ./test_driver_jvm.sh + - name: Run sqllin-driver JVM Unit Tests on macOS X64 + run: ./test_driver_jvm.sh - name: Build sqllin-dsl run: ./gradlew :sqllin-dsl:assemble @@ -60,8 +60,8 @@ jobs: - name: Run sqllin-dsl macOS X64 Tests run: ./test_dsl_macos.sh - #- name: Run sqllin-dsl JVM Unit Tests on macOS X64 - #run: ./test_dsl_jvm.sh + - name: Run sqllin-dsl JVM Unit Tests on macOS X64 + run: ./test_dsl_jvm.sh - name: Gradle Cache uses: gradle/gradle-build-action@v2 @@ -208,8 +208,8 @@ jobs: - name: Run sqllin-driver Linux X64 Tests run: ./test_driver_linux.sh - #- name: Run sqllin-driver JVM Unit Tests on Linux X64 - #run: ./test_driver_jvm.sh + - name: Run sqllin-driver JVM Unit Tests on Linux X64 + run: ./test_driver_jvm.sh - name: Build sqllin-processor run: ./gradlew :sqllin-processor:assemble @@ -220,8 +220,8 @@ jobs: - name: Run sqllin-dsl Linux X64 Tests run: ./test_dsl_linux.sh - #- name: Run sqllin-dsl JVM Unit Tests on Linux X64 - #run: ./test_dsl_jvm.sh + - name: Run sqllin-dsl JVM Unit Tests on Linux X64 + run: ./test_dsl_jvm.sh - name: Gradle Cache uses: gradle/gradle-build-action@v2 diff --git a/sqllin-dsl/src/commonTest/kotlin/com/ctrip/sqllin/dsl/CommonBasicTest.kt b/sqllin-dsl/src/commonTest/kotlin/com/ctrip/sqllin/dsl/CommonBasicTest.kt index fb0155b..a56257a 100644 --- a/sqllin-dsl/src/commonTest/kotlin/com/ctrip/sqllin/dsl/CommonBasicTest.kt +++ b/sqllin-dsl/src/commonTest/kotlin/com/ctrip/sqllin/dsl/CommonBasicTest.kt @@ -236,7 +236,7 @@ class CommonBasicTest(private val path: DatabasePath) { val book0 = Book(name = "The Da Vinci Code", author = "Dan Brown", pages = 454, price = 16.96) val book1 = Book(name = "Kotlin Cookbook", author = "Ken Kousen", pages = 251, price = 37.72) val book2 = Book(name = "The Lost Symbol", author = "Dan Brown", pages = 510, price = 19.95) - val book3 = Book(name = "Kotlin Guide Pratique", author = "Ken Kousen", pages = 398, price = 39.99) + val book3 = Book(name = "Kotlin Guide Pratique", author = "Ken Kousen", pages = 398, price = 40.08) var statement: SelectStatement? = null database { statement = BookTable { table -> @@ -250,14 +250,11 @@ class CommonBasicTest(private val path: DatabasePath) { } } } - statement!!.getResults().forEach { - println(it) - } assertEquals(7, statement!!.getResults().size) assertEquals(2, statement!!.getResults().count { it == book0 }) assertEquals(2, statement!!.getResults().count { it == book1 }) assertEquals(1, statement!!.getResults().count { it == book2 }) - //assertEquals(2, statement!!.getResults().count { it == book3 }) + assertEquals(2, statement!!.getResults().count { it == book3 }) } fun testFunction() = Database(getDefaultDBConfig()).databaseAutoClose { database ->