-
Notifications
You must be signed in to change notification settings - Fork 67
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
Tests Tests Tests -- Union is broken #42
Comments
Because none of us know how to write them 😞 But I also think fixing |
Yup. it does seem broken. Weird because I tested it before pushing... Definitely highlights the need for more testing. @thebigspoon Can you describe how it's broken? I get this error: Uncaught TypeError: Cannot read property 'type' of undefined turf.min.js:10 |
That's breaking because turf is looking for a |
Yes, accompanying tests should be a requirement for all pull requests. |
@thebigspoon Alright, trying again, I'm unable to reproduce the error. Can you post the files that you're trying? I think @svmatthews may be correct re: this being about Here are two files that I was able to successfully union: https://gist.github.com/alukach/0bf4471e44a0243b66db |
Sure thing. I'm trying to union two newly buffered geometries, which is where the problem exists. You can get the two original (eastbay & sf) files in this gist - below is a screencap of the process that results in the error: |
So, were these always "broken"? No lost functionality, right? I'm going to start taking a stab at #22 and #23 soon. I'll add those files in the "known failures" pile. I'm okay with there being failures at this current state, but we should make sure that we can pin down what fails (and hopefully why), and what doesn't, to make sure that there are at least no regressions. |
Union used to work when before the new menu system was put in place ... but it was a super gross hack looking for the |
Ah, okay, right, I do remember seeing these two lines and not knowing what they did. It's something that should have been brought up in the PR, my mistake. Well, we can add a kludge to make it work for now (driven by |
Heh, I submitted an issue to |
It's great that all this new development is happening, but why don't I see tests around the stuff we are merging into master?
Currenlty the
union
is brokenThe text was updated successfully, but these errors were encountered: