예제 #1
0
def test_no_interiors():
    interiors = sgrid.interior_nodes((2, 3))
    assert_array_equal(interiors, np.array([]))
예제 #2
0
def test_interior_nodes_4_by_5():
    interiors = sgrid.interior_nodes((4, 5))
    assert_array_equal(interiors, np.array([6, 7, 8, 11, 12, 13]))
예제 #3
0
def test_no_interiors():
    interiors = sgrid.interior_nodes((2, 3))
    assert_array_equal(interiors, np.array([]))
예제 #4
0
def test_interior_nodes_4_by_5():
    interiors = sgrid.interior_nodes((4, 5))
    assert_array_equal(interiors, np.array([6, 7, 8, 11, 12, 13]))
예제 #5
0
 def test_no_interiors(self):
     interiors = sgrid.interior_nodes((2, 3))
     self.assertArrayEqual(interiors, np.array([]))
예제 #6
0
 def test_4_by_5(self):
     interiors = sgrid.interior_nodes((4, 5))
     self.assertArrayEqual(interiors, np.array([6, 7, 8, 11, 12, 13]))