Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1a238f0

Browse files
author
Meir Kriheli
committed
Reorder tests
1 parent cbb0d37 commit 1a238f0

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

src/bidi/tests.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,27 @@ def test_implict_with_upper_is_rtl(self):
2929
for storage, display in tests:
3030
self.assertEqual(get_display(storage, upper_is_rtl=True), display)
3131

32+
def test_explicit_with_upper_is_rtl(self):
33+
"""Explicit tests"""
34+
tests = (
35+
(u'this is _LJUST_o', u'this is JUST'),
36+
(u'a _lsimple _RteST_o th_oat', u'a simple TSet that'),
37+
(u'HAS A _LPDF missing', u'PDF missing A SAH'),
38+
(u'AnD hOw_L AbOuT, 123,987 tHiS_o', u'w AbOuT, 123,987 tHiSOh DnA'),
39+
(u'a GOOD - _L_oTEST.', u'a TSET - DOOG.'),
40+
(u'here_L is_o_o_o _R a good one_o', u'here is eno doog a'),
41+
(u'And _r 123,987_LTHE_R next_o oNE:', u'987THEtxen oNE:,123 ndA'),
42+
(u'_R_r and the last _LONE_o IS', u'SI and the last ONE'),
43+
(u'THE _rbest _lONE and', u'best ENO and EHT'),
44+
(u'A REAL BIG_l_o BUG!', u'!GUB GIB LAER A'),
45+
(u'a _L_L_L_L_L_L_L_L_L_L_L_L_L_L_L_L_L_L_L_L_L_L_L_L_L_L_L_L_L_L_L_Rbug', u'a gub'),
46+
(u'AN ARABIC _l_o 123-456 NICE ONE!', u'!ENO ECIN 456-123 CIBARA NA'),
47+
(u'AN ARABIC _l _o 123-456 PAIR', u'RIAP 123-456 CIBARA NA'),
48+
(u'this bug 67_r_o89 catched!', u'this bug 6789 catched!'),
49+
)
50+
51+
for storage, display in tests:
52+
self.assertEqual(get_display(storage, upper_is_rtl=True), display)
3253

3354

3455
if __name__ == '__main__':

0 commit comments

Comments
 (0)