示例#1
0
 def test0105(_):
     _.assert_(isEqual(serialize.obj2struc((3, )), ['list', (3.)]))
示例#2
0
 def test0106(_):
     _.assert_(
         isEqual(serialize.obj2struc(('abc', 7)), ['list', ('abc', 7)]))
示例#3
0
 def test0103(_):
     _.assert_(
         isEqual(serialize.obj2struc(['abc', 7]), ['list', ['abc', 7]]))
示例#4
0
 def test0104(_):
     _.assert_(isEqual(serialize.obj2struc(()), ['list', []]))
示例#5
0
 def test0009(_):
     _.assert_(isEqual(serialize.obj2struc(False), False))
示例#6
0
 def test0102(_):
     _.assert_(isEqual(serialize.obj2struc([3]), ['list', [3]]))
示例#7
0
 def test0007(_):
     _.assert_(isEqual(serialize.obj2struc(1.1428), 1.1428))
示例#8
0
 def test0008(_):
     _.assert_(isEqual(serialize.obj2struc(True), True))
示例#9
0
 def test0006(_):
     _.assert_(
         isEqual(serialize.obj2struc('\u304a\u5143\u6c17\u3067'),
                 '\u304a\u5143\u6c17\u3067'))
示例#10
0
 def test0005(_):
     _.assert_(isEqual(serialize.obj2struc('abc'), 'abc'))
示例#11
0
 def test0003(_):
     _.assert_(isEqual(serialize.obj2struc(2000000000000), 2000000000000))
示例#12
0
 def test0002(_):
     _.assert_(isEqual(serialize.obj2struc(1), 1))
示例#13
0
 def test0001(_):
     _.assert_(isEqual(serialize.obj2struc(None), None))