Skip to content

Commit

Permalink
fixed usage example to be standalone
Browse files Browse the repository at this point in the history
previously it was just copy-pasted from unit test and didn't work without that context
  • Loading branch information
jtauber committed May 18, 2016
1 parent 7c27976 commit 871cf5d
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,8 @@ Usage example:
from pyuca import Collator
c = Collator()

self.assertEqual(
sorted(["cafe", "caff", "café"]),
["cafe", "caff", "café"]
)
self.assertEqual(
sorted(["cafe", "caff", "café"], key=c.sort_key),
["cafe", "café", "caff"]
)
assert sorted(["cafe", "caff", "café"]) == ["cafe", "caff", "café"]
assert sorted(["cafe", "caff", "café"], key=c.sort_key) == ["cafe", "café", "caff"]

``Collator`` can also take an optional filename for specifying a custom
collation element table.
Expand Down

0 comments on commit 871cf5d

Please sign in to comment.