Fix punctuation match order and add tests
authorJeremy Stanley <fungi@yuggoth.org>
Tue, 2 Jun 2015 06:08:02 +0000 (06:08 +0000)
committerJeremy Stanley <fungi@yuggoth.org>
Tue, 2 Jun 2015 06:08:02 +0000 (06:08 +0000)
commit88e2713dead1cdb3b9040ee97336548342a97288
tree2560765b08c0db81a2b24ea745a6c83745756531
parenta217dbe8e2cf807e456bdf6e0cb31a4b78d6544d
Fix punctuation match order and add tests

Add explicit punctuation functional tests with a conversation
between the two test sessions, and fix a nondeterministic bug this
exposed. Punctuation is now matched in a sorted order rather than
arbitrary hash table lookup order, and the sort is reversed so that
the longest match always wins.
bin/test
lib/mudpy/misc.py