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 tests for ASTQ#func and ASTQ#adapter methods #10

Open
cancerberoSgx opened this issue May 25, 2019 · 0 comments
Open

Add tests for ASTQ#func and ASTQ#adapter methods #10

cancerberoSgx opened this issue May 25, 2019 · 0 comments

Comments

@cancerberoSgx
Copy link

Would be great to have a working test demonstrating ASTQ#adapter and ASTQ@func methods (particularly the later has no example in readme). I think at some point you wanted to add a test (

astq.func("add", function (a, b) { return a + b })
) but that line can be removed and tests will still pass).

I will try to add tests for both APIs (ASTQ#func and ASTQ#adapter methods), For the later I will need to define a custom AST (probably similar to snippet's #9 (comment)). Would you accept a PR with these ? 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
Development

No branches or pull requests

1 participant