-
-
Notifications
You must be signed in to change notification settings - Fork 171
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
string.inspect should print non-byte bit strings with Gleam syntax #485
Comments
Is this the syntax for non byte aligned bit strings? I am not sure how to detect this or what to detect (too little experience with erlang/elixir binary syntax) |
We'd need to swap Line 384 in a5519c3
|
How would I reproduce this? |
You could call |
Is this the correct test? @target(erlang)
pub fn inspect_erlang_non_byte_aligned_bit_string() {
<<251, 3:size(3)>>
|> string.inspect
|> should.equal("<<251, 3:size(3)>>")
} ... because this already passes for me on gleam 0.30.5 and otp 26 |
Yes that looks right. How did I get that string then? 🤔 Let's add that test to the repo to be sure. |
the test function above misses the test suffix. the error is as you described. what about js?
|
It's not supported on JS currently so can't test there. |
The text was updated successfully, but these errors were encountered: