Skip to content

Commit 5b04585

Browse files
committed
TEst Fixes
1 parent 9935553 commit 5b04585

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

README.MD

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
[![Github Workflow Status](https://img.shields.io/github/actions/workflow/status/sheinbergon/dremio-udf-gis/release-ci.yml?branch=23.1.x&logo=githubactions&style=for-the-badge)](https://github.com/sheinbergon/dremio-udf-gis/actions?query=workflow%3Arelease-actions)
33
[![GitHub release (latest by date)](https://img.shields.io/github/v/release/sheinbergon/dremio-udf-gis?logo=github&color=%2340E0D0&style=for-the-badge)](https://github.com/sheinbergon/dremio-udf-gis/releases/latest)
44
[![Maven Central](https://img.shields.io/maven-central/v/org.sheinbergon/dremio-udf-gis?logo=apachemaven&color=Crimson&style=for-the-badge)](https://search.maven.org/search?q=g:org.sheinbergon%20a:dremio-udf-gis*)
5-
[![Snyk Vulnerabilities for GitHub Repo](https://img.shields.io/snyk/vulnerabilities/github/sheinbergon/dremio-udf-gis?logo=snyk&color=432f95&style=for-the-badge)](https://app.snyk.io/org/sheinbergon/project/94183993-505b-439c-9078-6276fa4c1626)
65
[![Coveralls](https://img.shields.io/coveralls/github/sheinbergon/dremio-udf-gis?logo=coveralls&style=for-the-badge)](https://coveralls.io/github/sheinbergon/dremio-udf-gis)
76
[![Liberapay](https://img.shields.io/liberapay/patrons/sheinbergon?logo=liberapay&style=for-the-badge)](https://liberapay.com/sheinbergon/donate)
87

src/test/kotlin/org/sheinbergon/dremio/udf/gis/STGeomFromGeoJsonTests.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ internal class STGeomFromGeoJsonTests : GeometryInputFunSpec.NullableVarChar<STG
1111
testGeometryInput(
1212
"Calling ST_GeomFromGeoJSON on a POINT",
1313
"""
14-
{"type":"Point","coordinates":[0.5,0.5]}
14+
{"type":"Point","coordinates":[0.5,0.5],"crs":{"type":"name","properties":{"name":"EPSG:4326"}}}
1515
""".trimIndent(),
16-
byteArrayOf(1, 1, 0, 0, 32, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -32, 63, 0, 0, 0, 0, 0, 0, -32, 63)
16+
byteArrayOf(1, 1, 0, 0, 32, -26, 16, 0, 0, 0, 0, 0, 0, 0, 0, -32, 63, 0, 0, 0, 0, 0, 0, -32, 63)
1717
)
1818

1919
testInvalidGeometryInput(

src/test/kotlin/org/sheinbergon/dremio/udf/gis/spec/GeometryInputFunSpec.kt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import org.sheinbergon.dremio.udf.gis.util.reset
1414
import org.sheinbergon.dremio.udf.gis.util.setBinary
1515
import org.sheinbergon.dremio.udf.gis.util.setUtf8
1616
import org.sheinbergon.dremio.udf.gis.util.valueIsNotSet
17-
import java.util.*
1817

1918
abstract class GeometryInputFunSpec<F : SimpleFunction, I : ValueHolder, V : Any> : FunSpec() {
2019

@@ -100,10 +99,7 @@ abstract class GeometryInputFunSpec<F : SimpleFunction, I : ValueHolder, V : Any
10099
}
101100

102101
private fun NullableVarBinaryHolder.valueIs(bytes: ByteArray) =
103-
print(Arrays.toString(GeometryHelpers.toEWKB(GeometryHelpers.toGeometry(this))))
104-
.also {
105-
GeometryHelpers.toEWKB(GeometryHelpers.toGeometry(this)) shouldBe bytes
106-
}
102+
GeometryHelpers.toEWKB(GeometryHelpers.toGeometry(this)) shouldBe bytes
107103

108104
protected abstract fun I.set(value: V)
109105
protected abstract val function: F

0 commit comments

Comments
 (0)