Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Yep, you've identified the issue. Although technically, we've proven that DECODING should test both -- or at least should test whether, if you have errors in encoding, you have the exact-reverse error in the decoding. :/
OK, Ramunas, I think I get what's going on — it comes down to my test fixture using your own
toAscii85
andfromAscii85
methods to figure out what's expected. (And this is clearly not ideal; I hadn't thought about that until now.)So, when it's testing your ability to decode random binary data, here's what happens under the hood:
toAscii85
method, and store the resulting ASCII85-encoded strings in another array;encodedObject.fromAscii85()
(which is the "my result" value) to the object stored at the corresponding location in the decoded array (which is the "expected" value).So, looking through what's happening to you, the issue is:
toAscii85
method, so that's where you should look for the error.Does that make sense?
Ramunas, that's weird — I get the same thing you do, but don't know where my code would expect that result you're saying it does. Did it happen a second time?