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_left_d_threshold_sequence(self): assert nxt.left_d_threshold_sequence(3, 2) == ["d", "i", "d"] assert pytest.raises(ValueError, nxt.left_d_threshold_sequence, 2, 3)
def test_left_d_threshold_sequence(self): assert_equal(nxt.left_d_threshold_sequence(3, 2), ['d', 'i', 'd']) assert_raises(ValueError, nxt.left_d_threshold_sequence, 2, 3)
def test_left_d_threshold_sequence(self): assert nxt.left_d_threshold_sequence(3, 2) == ['d', 'i', 'd'] assert pytest.raises(ValueError, nxt.left_d_threshold_sequence, 2, 3)