Skip to content

Commit

Permalink
fix smartcast compiler bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Khoyo committed Aug 30, 2024
1 parent a44eaca commit f1d93b7
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ class PathfindingTest : ApiTest() {
.satisfies({ exception ->
AssertionsForClassTypes.assertThat((exception as OSRDError?)!!.osrdErrorType)
.isEqualTo(ErrorType.PathfindingGenericError)
AssertionsForClassTypes.assertThat(exception.context).isEqualTo(HashMap<Any, Any>())
AssertionsForClassTypes.assertThat((exception as OSRDError?)!!.context).isEqualTo(HashMap<Any, Any>())
})
}

Expand All @@ -266,7 +266,7 @@ class PathfindingTest : ApiTest() {
.satisfies({ exception ->
AssertionsForClassTypes.assertThat((exception as OSRDError?)!!.osrdErrorType)
.isEqualTo(ErrorType.UnknownTrackSection)
AssertionsForClassTypes.assertThat(exception.context)
AssertionsForClassTypes.assertThat((exception as OSRDError?)!!.context)
.isEqualTo(mapOf(Pair("track_section_id", "this_track_does_not_exist")))
})
}
Expand Down Expand Up @@ -297,7 +297,7 @@ class PathfindingTest : ApiTest() {
.satisfies({ exception ->
AssertionsForClassTypes.assertThat((exception as OSRDError?)!!.osrdErrorType)
.isEqualTo(ErrorType.PathfindingGaugeError)
AssertionsForClassTypes.assertThat(exception.context)
AssertionsForClassTypes.assertThat((exception as OSRDError?)!!.context)
.isEqualTo(mapOf<String, Any>())
})

Expand Down Expand Up @@ -412,7 +412,7 @@ class PathfindingTest : ApiTest() {
.satisfies({ exception ->
AssertionsForClassTypes.assertThat((exception as OSRDError?)!!.osrdErrorType)
.isEqualTo(ErrorType.PathfindingElectrificationError)
AssertionsForClassTypes.assertThat(exception.context)
AssertionsForClassTypes.assertThat((exception as OSRDError?)!!.context)
.isEqualTo(mapOf<String, Any>())
})
}
Expand Down

0 comments on commit f1d93b7

Please sign in to comment.