示例#1
0
def test_cast():
    ffi = FFI()
    assert int(ffi.cast("int", 3.14)) == 3  # unicode literal
示例#2
0
def test_cast():
    ffi = FFI()
    assert int(ffi.cast("int", 3.14)) == 3  # unicode literal
示例#3
0
    def test_cast(self):
        from _cffi_backend import FFI

        ffi = FFI()
        assert int(ffi.cast("int", 3.14)) == 3  # unicode literal
示例#4
0
 def test_cast(self):
     from _cffi_backend import FFI
     ffi = FFI()
     assert int(ffi.cast("int", 3.14)) == 3  # unicode literal