Skip to content

Commit

Permalink
Added test for #24 issue
Browse files Browse the repository at this point in the history
  • Loading branch information
zaleslaw committed Jan 14, 2021
1 parent 964442b commit bfc3244
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -220,9 +220,18 @@ class InferenceModelTest {
it.predict(train.getX(0))
}
assertEquals(
"Reshape functions is missed!",
"Reshape functions is missed! Define and set up the reshape function to transform initial data to the model input.",
exception.message
)

val exception2 =
Assertions.assertThrows(IllegalArgumentException::class.java) {
it.predictSoftly(train.getX(0))
}
assertEquals(
"Reshape functions is missed! Define and set up the reshape function to transform initial data to the model input.",
exception2.message
)
}
}

Expand Down

0 comments on commit bfc3244

Please sign in to comment.