-
Notifications
You must be signed in to change notification settings - Fork 591
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
[Rust] Add u128 and i128 primitive types. #2002
Conversation
Could we add a test assertion or two to make sure we don't regress on these in the future? |
Personally, I find it superfluous to add tests for these kind of patterns with lots of options and where you only added one or two, because when following this argument you'd also have to have a test for every |
I could replace a few of the existing integer suffixes in the test file with 128bit suffixes. I could add completely new tests for all suffixes. Or perhaps via support for several occurrences of the same syntax in one comment I could make more of a matrix of supported formats.
But without access to the test code I have no idea how sensible that is. |
I think my approach is that is we missed this for a year or more and it had to be reported and fixed, it may be rare enough that someone wouldn't think to look for it. Generally, if I see a fix with tests and it isn't complicated I can just merge. If there are no tests than more effort is spent trying to figure out why there are no tests, and if we really need them. Maybe the author hasn't spent time reading the docs for .sublime-syntax and doesn't know about the tests? |
That's a good point, considering this is a nightly-only feature and also behind a feature flag, people aren't going to use it a whole lot. I didn't even know about these types. |
Devil's advocate: why not test every single support identifier? |
Since rust-lang/rust#38482 Rust has had native
u128
andi128
integers.