Beispiel #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)
Beispiel #2
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)
Beispiel #3
0
 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)
Beispiel #4
0
 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)
Beispiel #5
0
 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)