https://kotlinlang.org logo
#kotest
Title
# kotest
e

Emil Kantis

09/02/2021, 7:32 PM
This currently fails, since Kotest is not comparing literals. Would it make sense to raise an issue on this?
Copy code
test("comparing doubles") {
         "3.123456789123457" shouldNotEqualJson "3.123456789123456789123456789"
      }
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"
}
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
👍🏻 1
3 Views