Skip to content

Commit

Permalink
Fix compile warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
dlurton committed Apr 29, 2022
1 parent 39d3cc5 commit 3f1d7c5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lang/test/org/partiql/lang/eval/ErrorSignalerTests.kt
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ class ErrorSignalerTests {
ex
}
assertEquals(ex.errorCode, ErrorCode.EVALUATOR_CAST_FAILED)
assertEquals(ex.errorContext!![Property.LINE_NUMBER]!!.longValue(), 4L)
assertEquals(ex.errorContext!![Property.COLUMN_NUMBER]!!.longValue(), 2L)
assertEquals(ex.errorContext[Property.LINE_NUMBER]!!.longValue(), 4L)
assertEquals(ex.errorContext[Property.COLUMN_NUMBER]!!.longValue(), 2L)
}

private fun runTest(ctx1: ErrorSignaler, value: Int): ExprValue =
Expand Down
4 changes: 2 additions & 2 deletions lang/test/org/partiql/lang/eval/TypingModeTests.kt
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,12 @@ class TypingModeTests : EvaluatorTestBase() {
assertEquals(
"line number",
tc.expectedLegacyError.lineNum.toLong(),
ex.errorContext?.get(Property.LINE_NUMBER)?.longValue()
ex.errorContext[Property.LINE_NUMBER]?.longValue()
)
assertEquals(
"column number",
tc.expectedLegacyError.charOffset.toLong(),
ex.errorContext?.get(Property.COLUMN_NUMBER)?.longValue()
ex.errorContext[Property.COLUMN_NUMBER]?.longValue()
)
}
)
Expand Down

0 comments on commit 3f1d7c5

Please sign in to comment.