i'm trying to add a bytecode text test and getting...
# kontributors
j
i'm trying to add a bytecode text test and getting really weird values for some instructions. For example, the bytecode dump contains 3 LDC instructions each for different strings. When I add 1 separate LDC assertions for each of the strings i get a failure saying that there were actually 22(!) of the first string, 1 of the second, and 5 of the third. Is the format of these assertion comments documented anywhere? It works when I remove the string part and just test for 3 LDCs... they're a regex? i added escapes for
|
and now things work
d
I feel like there is context missing?
What code are you dumping bytecode for
j
I was adding a bytecode text test to the compiler
d
Fair enough. I'm still a bit confused but I guess that's because I'm not familiar with this text test. All good 🤷🏻