コード例 #1
0
ファイル: test_signed_integer.py プロジェクト: grgsrs/pyrobuf
def test_sint64(proto_lib):
    from test_signed_integer_proto import Int
    a = Int()
    v = gen_rand_int64()
    a.SInt64 = v
    assert Int.FromString(a.SerializeToString()).SInt64 == v
コード例 #2
0
ファイル: test_signed_integer.py プロジェクト: zmyer/pyrobuf
def test_sint64(proto_lib):
    from test_signed_integer_proto import Int
    a = Int()
    v = gen_rand_int64()
    a.SInt64 = v
    assert Int.FromString(a.SerializeToString()).SInt64 == v
コード例 #3
0
ファイル: test_signed_integer.py プロジェクト: grgsrs/pyrobuf
def test_uint32(proto_lib):
    from test_signed_integer_proto import Int
    a = Int()
    v = gen_rand_uint32()
    a.UInt32 = v
    assert Int.FromString(a.SerializeToString()).UInt32 == v
コード例 #4
0
ファイル: test_signed_integer.py プロジェクト: zmyer/pyrobuf
def test_uint32(proto_lib):
    from test_signed_integer_proto import Int
    a = Int()
    v = gen_rand_uint32()
    a.UInt32 = v
    assert Int.FromString(a.SerializeToString()).UInt32 == v