LEFT | RIGHT |
1 import sys | 1 import sys |
2 | 2 |
3 from numpy.testing import * | 3 from numpy.testing import * |
4 set_package_path() | 4 set_package_path() |
5 import numpy.lib;reload(numpy.lib) | 5 import numpy.lib;reload(numpy.lib) |
6 from numpy.lib import * | 6 from numpy.lib import * |
7 from numpy.core import * | 7 from numpy.core import * |
8 | 8 |
9 del sys.path[0] | 9 del sys.path[0] |
10 | 10 |
(...skipping 641 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
652 x = piecewise([1, 2], [True, False], [2, 3]) | 652 x = piecewise([1, 2], [True, False], [2, 3]) |
653 assert_array_equal(x, [2, 3]) | 653 assert_array_equal(x, [2, 3]) |
654 | 654 |
655 | 655 |
656 def compare_results(res,desired): | 656 def compare_results(res,desired): |
657 for i in range(len(desired)): | 657 for i in range(len(desired)): |
658 assert_array_equal(res[i],desired[i]) | 658 assert_array_equal(res[i],desired[i]) |
659 | 659 |
660 if __name__ == "__main__": | 660 if __name__ == "__main__": |
661 NumpyTest().run() | 661 NumpyTest().run() |
LEFT | RIGHT |