1. Jeremy Reichman
  2. pyobjc

Source

pyobjc / pyobjc-framework-Cocoa / PyObjCTest / test_nsdecimal.py

Diff from to

File pyobjc-framework-Cocoa/PyObjCTest/test_nsdecimal.py

  • Ignore whitespace
             t = NSDecimalString(v, None)
             self.assertEqual(t, u'3.375')
 
-
         def testCompare(self):
             small = NSDecimal(u"1")
             small2 = NSDecimal(u"1")
             self.assertRaises(TypeError, operator.mul, o, 1.2)
             self.assertRaises(TypeError, operator.mul, 1.2, o)
 
+            NSDecimalMultiplyByPowerOf10(r, o, 4, NSRoundPlain)
+            self.assertEqual(r, NSDecimal(20000))
+
         def testDivision(self):
             r = NSDecimal()
             o = NSDecimal(2)