예제 #1
0
파일: tests.py 프로젝트: wty0512/evennia
 def test_escaped2(self):
     self.assertEqual(
         nested_inlinefuncs.parse_inlinefunc(
             'this should be $pad("""escaped,""" and """instead,""" cropped $crop(with a long,5) text., 80)'
         ),
         "this should be                    escaped, and instead, cropped with  text.                    "
     )
예제 #2
0
파일: tests.py 프로젝트: wty0512/evennia
 def test_nested(self):
     self.assertEqual(
         nested_inlinefuncs.parse_inlinefunc(
             "this $crop(is a test with $pad(padded, 20) text in $pad(pad2, 10) a crop, 80)"
         ),
         "this is a test with        padded        text in    pad2    a crop"
     )
예제 #3
0
파일: tests.py 프로젝트: wty0512/evennia
 def test_escaped(self):
     self.assertEqual(
         nested_inlinefuncs.parse_inlinefunc(
             "this should be $pad('''escaped,''' and '''instead,''' cropped $crop(with a long,5) text., 80)"
         ),
         "this should be                    escaped, and instead, cropped with  text.                    "
     )
예제 #4
0
파일: tests.py 프로젝트: wty0512/evennia
 def test_incomplete(self):
     self.assertEqual(
         nested_inlinefuncs.parse_inlinefunc(
             "testing $blah{without an ending."),
         "testing $blah{without an ending.")
예제 #5
0
파일: tests.py 프로젝트: wty0512/evennia
 def test_single_func(self):
     self.assertEqual(
         nested_inlinefuncs.parse_inlinefunc(
             "this is a test with $pad(centered, 20) text in it."),
         "this is a test with       centered       text in it.")
예제 #6
0
파일: tests.py 프로젝트: 325975/evennia
 def test_escaped2(self):
     self.assertEqual(nested_inlinefuncs.parse_inlinefunc(
         'this should be $pad("""escaped,""" and """instead,""" cropped $crop(with a long,5) text., 80)'),
         "this should be                    escaped, and instead, cropped with  text.                    ")
예제 #7
0
파일: tests.py 프로젝트: wty0512/evennia
 def test_nofunc(self):
     self.assertEqual(
         nested_inlinefuncs.parse_inlinefunc(
             "as$382ewrw w we w werw,|44943}"),
         "as$382ewrw w we w werw,|44943}")
예제 #8
0
파일: tests.py 프로젝트: 325975/evennia
 def test_escaped(self):
     self.assertEqual(nested_inlinefuncs.parse_inlinefunc(
         "this should be $pad('''escaped,''' and '''instead,''' cropped $crop(with a long,5) text., 80)"),
         "this should be                    escaped, and instead, cropped with  text.                    ")
예제 #9
0
파일: tests.py 프로젝트: 325975/evennia
 def test_nested(self):
     self.assertEqual(nested_inlinefuncs.parse_inlinefunc(
         "this $crop(is a test with $pad(padded, 20) text in $pad(pad2, 10) a crop, 80)"),
         "this is a test with        padded        text in    pad2    a crop")
예제 #10
0
파일: tests.py 프로젝트: 325975/evennia
 def test_single_func(self):
     self.assertEqual(nested_inlinefuncs.parse_inlinefunc(
         "this is a test with $pad(centered, 20) text in it."),
         "this is a test with       centered       text in it.")
예제 #11
0
파일: tests.py 프로젝트: 325975/evennia
 def test_incomplete(self):
     self.assertEqual(nested_inlinefuncs.parse_inlinefunc(
         "testing $blah{without an ending."),
         "testing $blah{without an ending.")
예제 #12
0
파일: tests.py 프로젝트: 325975/evennia
 def test_nofunc(self):
     self.assertEqual(nested_inlinefuncs.parse_inlinefunc(
         "as$382ewrw w we w werw,|44943}"),
         "as$382ewrw w we w werw,|44943}")