def CheckDwordConversions(bigint, dwords): self.assertSequenceEqual(bigint.GetWords(), dwords) if bigint == BigInteger.Zero: self.assertEqual( System_Scripting_Math.CreateBigInteger( 0, Array[UInt32](dwords), ), bigint) else: self.assertEqual( System_Scripting_Math.CreateBigInteger( 1, Array[UInt32](dwords)), bigint) self.assertEqual( System_Scripting_Math.CreateBigInteger( -1, Array[UInt32](dwords)), BigInteger.Negate(bigint))
def CheckDwordConversions(bigint, dwords): SequencesAreEqual(bigint.GetWords(), dwords) if bigint == BigInteger.Zero: AreEqual( IronPythonTest.System_Scripting_Math.CreateBigInteger( 0, Array[UInt32](dwords), ), bigint) else: AreEqual( IronPythonTest.System_Scripting_Math.CreateBigInteger( 1, Array[UInt32](dwords)), bigint) AreEqual( IronPythonTest.System_Scripting_Math.CreateBigInteger( -1, Array[UInt32](dwords)), BigInteger.Negate(bigint))