Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(88)

Side by Side Diff: third_party/yasm/patched-yasm/tools/python-yasm/tests/test_intnum.py

Issue 11369048: Update Yasm to 1.2.0 (Yasm Part 2/3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 # $Id: test_intnum.py 1739 2007-01-20 19:37:02Z peter $
2 from tests import TestCase, add 1 from tests import TestCase, add
3 from yasm import IntNum 2 from yasm import IntNum
4 3
5 class TIntNum(TestCase): 4 class TIntNum(TestCase):
6 legal_values = [ 5 legal_values = [
7 0, 1, -1, 2, -2, 17, -17, 6 0, 1, -1, 2, -2, 17, -17,
8 2**31-1, -2**31, 2**31, 2**32-1, -2**32, 7 2**31-1, -2**31, 2**31, 2**32-1, -2**32,
9 2**63-1, -2**63-1, 2**63, 2**64, -2**64, 8 2**63-1, -2**63-1, 2**63, 2**64, -2**64,
10 2**127-1, -2**127 9 2**127-1, -2**127
11 ] 10 ]
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 68
70 def test_abs(self): 69 def test_abs(self):
71 a = IntNum(-1) 70 a = IntNum(-1)
72 b = IntNum(0) 71 b = IntNum(0)
73 c = IntNum(1) 72 c = IntNum(1)
74 73
75 self.assertEquals(abs(a), abs(c)) 74 self.assertEquals(abs(a), abs(c))
76 self.assertEquals(abs(a) - abs(c), abs(b)) 75 self.assertEquals(abs(a) - abs(c), abs(b))
77 76
78 add(TIntNum) 77 add(TIntNum)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698