-
Notifications
You must be signed in to change notification settings - Fork 589
add missing compiler options, add a test to help prevent this in future #839
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 missing compiler options, add a test to help prevent this in future #839
Conversation
@microsoft-github-policy-service agree |
3366712
to
ff3642a
Compare
For the test, we may want to instead just loop over |
b28dc25
to
09790dc
Compare
I spent some time in the code trying to figure out what you mean by this, but I couldn't get there |
That's fair. I can send a follow-up PR to do this, building on your test. |
Thanks! Yeah, this was just meant to be a starting point for you all. Presumably you'd want tests for types other than tristates too. Go ahead and merge this if it makes sense. I'm eager to switch over to tsgo in my own work. Thanks for your efforts! EDIT: fixing tests... |
96fffc3
to
962fbdd
Compare
I think the tests/formatting should work now EDIT: looking again... |
This is a more comprehensive fix than #838. Future work would involve doing the same sort of tests for non-Tristate types.
962fbdd
to
322fe04
Compare
Thanks for your patience. I'm still cloning the submodules locally, which are apparently required in order to run the particular failing test in this PR. Sigh... |
FYI, no need to force push; we squash on merge so your history can be as bad as you want it. The force pushing really only makes it hard to see what's changing when reviewing. |
Ah, true. Yeah, bad habit from a past job |
Once you have cloned the submodule, you should be able to do |
whoa that's a lot of diff
done, but wow, that just made so much diff I assumed it was wrong |
Wunderbar! Please go ahead and merge at your leisure (looks like I can't do so myself). Thank you again |
This is a more comprehensive fix than #838. Future work would involve doing the same sort of tests for non-Tristate types.
This isn't exactly a pretty test, but if we take for a given that the big switch-case needs to exist as is, then you're better off having a nasty test like this than not having it.
Fixes #842