コード例 #1
0
ファイル: test_longlong.py プロジェクト: ieure/pypy
def test_functions():
    xll = longlong.getfloatstorage(3.5)
    assert longlong.getrealfloat(xll) == 3.5
    assert isinstance(longlong.gethash(xll), int)
コード例 #2
0
def test_functions():
    xll = longlong.getfloatstorage(3.5)
    assert longlong.getrealfloat(xll) == 3.5
    assert isinstance(longlong.gethash(xll), int)
コード例 #3
0
 def _get_hash_(self):
     return longlong.gethash(self.value)
コード例 #4
0
def test_functions():
    xll = longlong.getfloatstorage(3.5)
    assert longlong.getrealfloat(xll) == 3.5
    assert is_valid_int(longlong.gethash(xll))
コード例 #5
0
 def _get_hash_(self):
     return longlong.gethash(self.value)
コード例 #6
0
ファイル: test_longlong.py プロジェクト: Debug-Orz/Sypy
def test_functions():
    xll = longlong.getfloatstorage(3.5)
    assert longlong.getrealfloat(xll) == 3.5
    assert is_valid_int(longlong.gethash(xll))