コード例 #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
ファイル: test_data.py プロジェクト: markrwilliams/typhon
 def testNextUnicode(self):
     c = CharObject(u'¡')
     result = c.call(u"next", [])
     self.assertEqual(result._c, u'¢')
コード例 #9
0
ファイル: test_data.py プロジェクト: markrwilliams/typhon
 def testQuoteSlashes(self):
     c = CharObject(u'\\')
     result = c.call(u"quote", [])
     self.assertEqual(result._s, u"'\\\\'")
コード例 #10
0
ファイル: test_data.py プロジェクト: markrwilliams/typhon
 def testMax(self):
     c = CharObject(u'c')
     d = CharObject(u'd')
     result = c.call(u"max", [d])
     self.assertTrue(result is d)
コード例 #11
0
ファイル: test_data.py プロジェクト: markrwilliams/typhon
 def testNext(self):
     c = CharObject(u'c')
     result = c.call(u"next", [])
     self.assertEqual(result._c, u'd')
コード例 #12
0
ファイル: test_data.py プロジェクト: markrwilliams/typhon
 def testCategorySymbol(self):
     c = CharObject(u'¢')
     result = c.call(u"getCategory", [])
     self.assertEqual(result._s, u"Sc")
コード例 #13
0
ファイル: test_data.py プロジェクト: markrwilliams/typhon
 def testCategoryUnicode(self):
     c = CharObject(u'č')
     result = c.call(u"getCategory", [])
     self.assertEqual(result._s, u"Ll")
コード例 #14
0
ファイル: test_data.py プロジェクト: markrwilliams/typhon
 def testAdd(self):
     c = CharObject(u'c')
     result = c.call(u"add", [IntObject(2)])
     self.assertEqual(result._c, u'e')
コード例 #15
0
ファイル: test_data.py プロジェクト: zarutian/typhon
 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())