JS, Crystal and c++ versions available :)
What on earth does this terrible description mean? I'd understand if it plainly said:
7,206,089 --> 00 6D F4 C9 --> C9 F4 6D 00 --> 3,388,239,104
But I understand nothing because the description is a perfectly normal phrase "Your job is to write a function that switches the byte order of a given integer" followed by a big sentence telling about some unknown bit-size used here in some strange way and which is obviously included because reasons :|
"Your job is to write a function that switches the byte order of a given integer"
Make it Python3 compatible.
Needs random tests
No random tests
when submitting Verify has a bug:
TypeError: lstrip arg must be None or str
which seems to be caused by an invalid second argument to lstrip
NameError: name 'Verify' is not defined
I have a few scripts from Kali, Meta, and Stacks
this was fun & I learned a lot! nice kata
another one to do later, is it broken or is hashlib not allowed and just not mentioned in the description
For Python, I think it may be a good idea to include gmpy2 and pycrypto libraries since Python has very little built-in crypto (just hashlib and hmac). gmpy2 is also really useful for working with extremely large numbers and modular arithmetic, handling some things that numpy alone cannot really do.
I agree, and testing the equality of dictionaries shouldn't depend on the order of keys.
Very good kata!
There is a minor error in your default test cases.
The last test is
But it should be
Ha! I love this one!