Changeset 6740
- Timestamp:
- Apr 7, 2009, 1:47:24 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/numpy/anuga/utilities/test_numerical_tools.py
r6456 r6740 610 610 self.failUnless(points_id == id(points), msg) 611 611 612 #####613 # Make 'points' a numeric array of float coordinates.614 # Should be changed by ensure_numeric(, num.float96).615 #####616 points = num.array([[1.,2.], [3.,4.], [5.,6.]], num.float)617 points_id = id(points)618 619 points_new = ensure_numeric(points, num.float96)620 points_new_id = id(points_new)621 622 msg = 'ensure_numeric() should return a copy of the input'623 self.failUnless(points_new_id != points_id, msg)624 625 # should never change it's input parameter626 msg = "ensure_numeric() changed it's input parameter"627 self.failUnless(points_id == id(points), msg)628 629 612 ################################################################################ 630 613
Note: See TracChangeset
for help on using the changeset viewer.