(self)
| 2558 | assert_equal(f[-1], default_fill_value(1.)) |
| 2559 | |
| 2560 | def test_fillvalue_as_arguments(self): |
| 2561 | # Test adding a fill_value parameter to empty/ones/zeros |
| 2562 | a = empty(3, fill_value=999.) |
| 2563 | assert_equal(a.fill_value, 999.) |
| 2564 | |
| 2565 | a = ones(3, fill_value=999., dtype=float) |
| 2566 | assert_equal(a.fill_value, 999.) |
| 2567 | |
| 2568 | a = zeros(3, fill_value=0., dtype=complex) |
| 2569 | assert_equal(a.fill_value, 0.) |
| 2570 | |
| 2571 | a = identity(3, fill_value=0., dtype=complex) |
| 2572 | assert_equal(a.fill_value, 0.) |
| 2573 | |
| 2574 | def test_shape_argument(self): |
| 2575 | # Test that shape can be provides as an argument |
nothing calls this directly
no test coverage detected