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

TD title matching instead of JSON comparison #29

Merged
merged 2 commits into from
Jun 8, 2022
Merged

Conversation

farshidtz
Copy link
Owner

@farshidtz farshidtz commented Jun 7, 2022

The comparison of the mock TD input and output from directory was done by serializing the objects to JSON and performing a bytes comparison. This was subject to failure when the directory was performing semantic processing and giving the output in another semantically equivalent representation. I replacing this with a simple title check. This is okay because the tests aren't really about making sure the directory returns the exact TD, but rather about making sure the workflows are based on specified assertion. Fine grained tests on exact input and matching output should be done independently as unit tests.

We could perform comparison on expanded JSON-LD objects, if someone can come up with a working solution.

@farshidtz
Copy link
Owner Author

@AndreaCimminoArriaga @ethieblin @Murloc6 please review.

@ethieblin
Copy link

Ok for me, I agree that it would be a good thing to add a few tests on JSON-LD expanded objects (and/or on JSON-LD framing with a few flexibilities). Shall I add an issue for that ?

@farshidtz
Copy link
Owner Author

Ok for me, I agree that it would be a good thing to add a few tests on JSON-LD expanded objects (and/or on JSON-LD framing with a few flexibilities). Shall I add an issue for that ?

Sure. Please do so. Thanks

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