bnorm / kotlin-power-assert

Kotlin compiler plugin to enable diagrammed function calls in the Kotlin programming language
Apache License 2.0
577 stars 15 forks source link

Exclude vararg arrays from expression diagram #80

Closed bnorm closed 1 year ago

bnorm commented 1 year ago

Taken from #74:

java.lang.AssertionError: Assertion failed
assert(listOf("a", "b", "c").containsExactlyInAnyOrder("b", "a"))
       |      |              |                         |
       |      |              |                         [Ljava.lang.String;@7579bc7
       |      |              false
       |      [Ljava.lang.String;@34cfd455
       [a, b, c]

Also need to handle the spread operator for non-constant arrays. Should all arrays be excluded because they don't have a good toString()? Special handling in the diagram builder?