Home
last modified time | relevance | path

Searched refs:binop_test (Results 1 – 1 of 1) sorted by relevance

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_descr.py77 def binop_test(self, a, b, res, expr="a+b", meth="__add__"): member in OperatorsTest
172 self.binop_test([1], [2], [1,2], "a+b", "__add__")
173 self.binop_test([1,2,3], 2, 1, "b in a", "__contains__")
174 self.binop_test([1,2,3], 4, 0, "b in a", "__contains__")
175 self.binop_test([1,2,3], 1, 2, "a[b]", "__getitem__")
180 self.binop_test([1,2], 3, [1,2,1,2,1,2], "a*b", "__mul__")
181 self.binop_test([1,2], 3, [1,2,1,2,1,2], "b*a", "__rmul__")
189 self.binop_test({1:2}, {2:1}, -1, "cmp(a,b)", "__cmp__")
191 self.binop_test({1:2}, {2:1}, True, "a < b", "__lt__")
192 self.binop_test({1:2,3:4}, 1, 1, "b in a", "__contains__")
[all …]