예제 #1
0
파일: test_data.py 프로젝트: washort/typhon
 def testQuoteSlashes(self):
     c = CharObject(u'\\')
     result = c.call(u"quote", [])
     self.assertEqual(result._s, u"'\\\\'")
예제 #2
0
파일: test_data.py 프로젝트: washort/typhon
 def testNext(self):
     c = CharObject(u'c')
     result = c.call(u"next", [])
     self.assertEqual(result._c, u'd')
예제 #3
0
파일: test_data.py 프로젝트: washort/typhon
 def testNextUnicode(self):
     c = CharObject(u'¡')
     result = c.call(u"next", [])
     self.assertEqual(result._c, u'¢')
예제 #4
0
파일: test_data.py 프로젝트: washort/typhon
 def testCategorySymbol(self):
     c = CharObject(u'¢')
     result = c.call(u"getCategory", [])
     self.assertEqual(result._s, u"Sc")
예제 #5
0
파일: test_data.py 프로젝트: washort/typhon
 def testMax(self):
     c = CharObject(u'c')
     d = CharObject(u'd')
     result = c.call(u"max", [d])
     self.assertTrue(result is d)
예제 #6
0
파일: test_data.py 프로젝트: washort/typhon
 def testAdd(self):
     c = CharObject(u'c')
     result = c.call(u"add", [IntObject(2)])
     self.assertEqual(result._c, u'e')
예제 #7
0
파일: test_data.py 프로젝트: washort/typhon
 def testCategoryUnicode(self):
     c = CharObject(u'č')
     result = c.call(u"getCategory", [])
     self.assertEqual(result._s, u"Ll")
예제 #8
0
 def testNextUnicode(self):
     c = CharObject(u'¡')
     result = c.call(u"next", [])
     self.assertEqual(result._c, u'¢')
예제 #9
0
 def testQuoteSlashes(self):
     c = CharObject(u'\\')
     result = c.call(u"quote", [])
     self.assertEqual(result._s, u"'\\\\'")
예제 #10
0
 def testMax(self):
     c = CharObject(u'c')
     d = CharObject(u'd')
     result = c.call(u"max", [d])
     self.assertTrue(result is d)
예제 #11
0
 def testNext(self):
     c = CharObject(u'c')
     result = c.call(u"next", [])
     self.assertEqual(result._c, u'd')
예제 #12
0
 def testCategorySymbol(self):
     c = CharObject(u'¢')
     result = c.call(u"getCategory", [])
     self.assertEqual(result._s, u"Sc")
예제 #13
0
 def testCategoryUnicode(self):
     c = CharObject(u'č')
     result = c.call(u"getCategory", [])
     self.assertEqual(result._s, u"Ll")
예제 #14
0
 def testAdd(self):
     c = CharObject(u'c')
     result = c.call(u"add", [IntObject(2)])
     self.assertEqual(result._c, u'e')
예제 #15
0
 def testMax(self):
     c = CharObject(u'c')
     d = CharObject(u'd')
     result = c.call(u"max", [d])
     self.assertEqual(result.getChar(), d.getChar())
예제 #16
0
파일: test_data.py 프로젝트: dckc/typhon
 def testMax(self):
     c = CharObject(u'c')
     d = CharObject(u'd')
     result = c.call(u"max", [d])
     self.assertEqual(result.getChar(), d.getChar())