示例#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)
示例#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)
示例#3
0
 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)
示例#4
0
 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)
示例#5
0
 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)