This one is even more questionable. This fails by default (
CompareMode.Strict
, since floats will be converted to ints
Copy code
test("comparing int and float") {
"3.2" shouldNotEqualJson "3"
}
Emil Kantis
09/02/2021, 9:40 PM
Imo strict mode should simply compare the value as a string and presence of quotation
s
sam
09/03/2021, 9:55 AM
Yes agreed
e
Emil Kantis
09/07/2021, 5:50 PM
I saw you have some pretty huge things going on with the test engine, so no pressure to add any feedback right now 😄 Just wanted to let you know I put up a PR for this 🙂 https://github.com/kotest/kotest/pull/2464