-
-
Notifications
You must be signed in to change notification settings - Fork 682
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
added unit test for p5.gain in es6 #462
Conversation
@therewasaguy |
@therewasaguy we can add it too? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good just a couple questions
test/tests/p5.Gain.js
Outdated
|
||
mainGainNode.setInput(inputNode); | ||
mainGainNode.connect(outputNode); | ||
mainGainNode.disconnect(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is testing that we are able to call the disconnect
method without that throwing any runtime errors, but how do we know if we successfully disconnected? (I'm not sure!)
Also, will this disconnect the inputNode or only the connection between the mainGaneNode and the outputNode? I think it's only that one. Again, how would we know from this test?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like the Test for p5.Gain.js is already updated and present in the repo, refer: https://github.com/processing/p5.js-sound/blob/main/test/tests/p5.Gain.js (last updated by @satyasaibhushan) ,
@davepagurek I think we can close this PR now.
We may want to copy over just the |
okay got it, so can I open a PR to add the |
yeah sounds good! |
Okay will do !!
…On Wed, 4 Jan 2023, 02:58 Dave Pagurek, ***@***.***> wrote:
yeah sounds good!
—
Reply to this email directly, view it on GitHub
<#462 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/APLHP3SE6DY7RHRQ4HWY4XDWQSKXTANCNFSM4MWPXVDA>
.
You are receiving this because you commented.Message ID: <processing/p5.
***@***.***>
|
Thanks @Abhijay007! I'll close this PR and carry over reviews on your new one. |
added unit tests for all the methods in p5.Gain
here are the test results and AUDIO GRAPH ( inspected with WEB AUDIO INSPECTOR) of this unit test