Esempio n. 1
0
 def test_get_prior_string_no_precision(self):
     """Test that default precision is not included."""
     dim = Real("yolo", "uniform", 1, 2, precision=4)
     assert dim.get_prior_string() == "uniform(1, 3)"
Esempio n. 2
0
 def test_get_prior_string_precision(self):
     """Test that precision is included."""
     dim = Real("yolo", "uniform", 1, 2, precision=5)
     assert dim.get_prior_string() == "uniform(1, 3, precision=5)"