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
Dico
03/08/2019, 4:55 AM
I feel like there is context missing?
Dico
03/08/2019, 4:56 AM
What code are you dumping bytecode for
j
jw
03/08/2019, 3:25 PM
I was adding a bytecode text test to the compiler
d
Dico
03/08/2019, 5:46 PM
Fair enough. I'm still a bit confused but I guess that's because I'm not familiar with this text test. All good 🤷🏻