def test_tg_creation_routines(self): s=nxt.left_d_threshold_sequence(5,7) s=nxt.right_d_threshold_sequence(5,7) s1=nxt.swap_d(s,1.0,1.0)
def test_tg_creation_routines(self): s = nxt.left_d_threshold_sequence(5, 7) s = nxt.right_d_threshold_sequence(5, 7) s1 = nxt.swap_d(s, 1.0, 1.0) s1 = nxt.swap_d(s, 1.0, 1.0, seed=1)
def test_right_d_threshold_sequence(self): assert_equal(nxt.right_d_threshold_sequence(3, 2), ['d', 'i', 'd']) assert_raises(ValueError, nxt.right_d_threshold_sequence, 2, 3)
def test_right_d_threshold_sequence(self): assert nxt.right_d_threshold_sequence(3, 2) == ["d", "i", "d"] assert pytest.raises(ValueError, nxt.right_d_threshold_sequence, 2, 3)
def test_right_d_threshold_sequence(self): assert_equal(nxt.right_d_threshold_sequence(3, 2), ['d', 'i', 'd']) assert_raises(ValueError, nxt.right_d_threshold_sequence, 2, 3)