caraya
caraya copied to clipboard
Add a new Assert to compare Variant Attributes
I recently came across a bunch of tests I wanted to write to verify that variant attributes were set. Instead of extracting the attributes and comparing arrays, it would be nice to have a node that directly compares the attributes, making complete abstraction of the value of the variant data on the wire.
It is possible to compare variant attributes by comparing variants itself - so simple Equal Assert should be enough for it, isn't it?
Actually, I'm interested in comparing only the attributes, for different objects. In the example below, two modules (inheriting from same class) have their attributes compared.
Values are different, but attributes match.
Edit: probably should be a "Logical AND" in the bottom comparison for "attribute found?".
Starting with the "Assert wrapping" feature in 1.2, I can definitely create a wrapper for this functionality... just like anyone that wants to use a map comparison in LV2019+