wrongwrong
02/12/2022, 11:46 AMjackson-module-kotlin
, which I have committed, failing test was implemented in such a situation.
So I would like to ask if there is anything similar in the Kotlin
repository.dmitriy.novozhilov
02/12/2022, 8:01 PMAdd tests for KT-XXXXX
). Those tests should be muted in code. If it's a black box test you can add // IGNORE_BACKEND: JVM
(or JVM_IR
, if tests fails only on IR backend) to the top of your testfilewrongwrong
02/12/2022, 9:10 PMKFunction
to fail if the argument or extension receiver
is a value class
and they are not unbox
in the JVM
.
There seem to be multiple causes of this problem, but not all of them have been identified exactly.
(I have commented on the status of the investigation to YT, but have not received a reply.)
Also, most of the tests related to these issues have not been implemented.
So, I thought it would be better to solve the problems in the following order.
1. Add failing tests to improve test coverage.
2. Investigate and fix individual problems based on 1.
Currently, the tests are so lacking that it seems difficult to investigate individual problems and check for fixes.
Please let me consult with you again on what to do on this.
(I rely on machine translation for English, so I apologize for any rude expressions.)wrongwrong
02/12/2022, 9:18 PMprimary val
of the value class
into three patterns, and adds a test for when each has a non-null
or nullable
argument.
Also, one of the problems is fixed.
However, the case of nested value class
was not taken into account, so more tests are needed to cover it completely.dmitriy.novozhilov
02/13/2022, 7:00 AMudalov
// IGNORE_BACKEND: JVM
), or everything in it would work. Right now there are some tests with commented lines — this makes it easy to forget to uncomment them later.wrongwrong
02/16/2022, 12:37 AMassertFailsWith<IllegalArgumentException>("Please remove assertFailsWith and try again, as this problem may have been fixed.") {
assertEquals(S("ab"), c.nullableUnboundRef().call(c))
}
udalov
wrongwrong
02/18/2022, 3:50 PM