-
Notifications
You must be signed in to change notification settings - Fork 14
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
Cannot read nested array in bencode #13
Comments
A quick check showed that this is not an issue for nested maps. |
So, after investigating this issue, I found some magic performed in the test: the function Though I just discovered this library, I would say that converting every byte-array to an original string form is quite common. I would gladly appreciate a nice utility function to convert all those bytes to string, using a custom function. bencode/test/bencode/core_test.clj Lines 23 to 41 in 4286cee
|
From a bencode input
"li1ei2el3:stree"
, I get[1 2 [#object["[B" 0x5351baec "[B@5351baec"]]]
Note: the input was created using
write-bencode
and seems correct with respect to the specReproducing code:
I am using version from babashka 0.6.4, so I guess this is the latest.
The text was updated successfully, but these errors were encountered: