mirror of
https://github.com/evennia/evennia.git
synced 2026-03-25 09:16:32 +01:00
Updated mxp unittests to pass again.
This commit is contained in:
parent
9485e2aefe
commit
c18577d772
1 changed files with 3 additions and 2 deletions
|
|
@ -217,13 +217,14 @@ class TestMLen(TestCase):
|
|||
self.assertEqual(utils.m_len('Test_string'), 11)
|
||||
|
||||
def test_mxp_string(self):
|
||||
self.assertEqual(utils.m_len('{lclook{ltat{le'), 2)
|
||||
self.assertEqual(utils.m_len('|lclook|ltat|le'), 2)
|
||||
|
||||
def test_mxp_ansi_string(self):
|
||||
self.assertEqual(utils.m_len(ANSIString('{lcl{gook{ltat{le{n')), 2)
|
||||
self.assertEqual(utils.m_len(ANSIString('|lcl|gook|ltat|le{n')), 2)
|
||||
|
||||
def test_non_mxp_ansi_string(self):
|
||||
self.assertEqual(utils.m_len(ANSIString('{gHello{n')), 5)
|
||||
self.assertEqual(utils.m_len(ANSIString('|gHello|n')), 5)
|
||||
|
||||
def test_list(self):
|
||||
self.assertEqual(utils.m_len([None, None]), 2)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue