planetarium / bencodex

Bencodex: Bencoding Extended
https://bencodex.org/
17 stars 3 forks source link

A test case for complex Unicode keys is needed #1

Closed dahlia closed 5 years ago

dahlia commented 5 years ago

A test case to determine if the following condition is correctly implemented:

Unicode strings are sorted as their UTF-8 representations, not any collation order or chart order listed by Unicode.

dahlia commented 5 years ago

@disjukr Please check this change (e4112fee8c7af481ed87bf76a0b7e688b96ed5bf).

Since the ordering rule of Unicode keys in a dictionary might be confusing, the specifcation became to elaborate about this, a test to check this was also added. [#1]