Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a new Assert to compare Variant Attributes #129

Open
francois-normandin opened this issue Mar 2, 2021 · 3 comments
Open

Add a new Assert to compare Variant Attributes #129

francois-normandin opened this issue Mar 2, 2021 · 3 comments

Comments

@francois-normandin
Copy link
Collaborator

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.

@kosist
Copy link
Contributor

kosist commented Mar 2, 2021

It is possible to compare variant attributes by comparing variants itself - so simple Equal Assert should be enough for it, isn't it?

@francois-normandin
Copy link
Collaborator Author

francois-normandin commented Mar 2, 2021

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.

image

Edit: probably should be a "Logical AND" in the bottom comparison for "attribute found?".

@francois-normandin
Copy link
Collaborator Author

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+

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants