You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The process has been made easy by the code qualify of this module.
The tests are extensive.
The design is good the code well laid out, modular and easy to read.
So please understand my next point is minor, and I do respect the overall quality.
When I have a issue I don't understand I insert console.log() statement to inspect variables...yes I use an IDE for complex debugging!!
but console.log() is good at showing which tests are covering the code under inspection.
my point is from the code below, no tests cover the tail of the file src/clip/circle.js... plenty of test cover the NULL that is return if the if statement takes no action but this complex if statement is not covered.
As I port my code .. I intend to push the new test upstream into this module.
But I am posting early just in case someone has a clear idea for a simple fix.
// Check that the first point is between a and b. if (meridian ? polar ? phi0 + phi1 > 0 ^ q[1] < (abs(q[0] - lambda0) < epsilon ? phi0 : phi1) : phi0 <= q[1] && q[1] <= phi1 : delta > pi ^ (lambda0 <= q[0] && q[0] <= lambda1)) { var q1 = cartesianScale(u, (-w + t) / uu); cartesianAddInPlace(q1, A); console.log("############################################### meridian output"); console.log([q, spherical(q1)]); console.log("############################################### meridian output"); debugger; return [q, spherical(q1)]; }
The text was updated successfully, but these errors were encountered:
I am slowly porting this module to rust...
The process has been made easy by the code qualify of this module.
So please understand my next point is minor, and I do respect the overall quality.
When I have a issue I don't understand I insert console.log() statement to inspect variables...yes I use an IDE for complex debugging!!
but console.log() is good at showing which tests are covering the code under inspection.
my point is from the code below, no tests cover the tail of the file src/clip/circle.js... plenty of test cover the NULL that is return if the if statement takes no action but this complex if statement is not covered.
As I port my code .. I intend to push the new test upstream into this module.
But I am posting early just in case someone has a clear idea for a simple fix.
// Check that the first point is between a and b. if (meridian ? polar ? phi0 + phi1 > 0 ^ q[1] < (abs(q[0] - lambda0) < epsilon ? phi0 : phi1) : phi0 <= q[1] && q[1] <= phi1 : delta > pi ^ (lambda0 <= q[0] && q[0] <= lambda1)) { var q1 = cartesianScale(u, (-w + t) / uu); cartesianAddInPlace(q1, A); console.log("############################################### meridian output"); console.log([q, spherical(q1)]); console.log("############################################### meridian output"); debugger; return [q, spherical(q1)]; }
The text was updated successfully, but these errors were encountered: