Changeset 593 for branches


Ignore:
Timestamp:
11/20/12 09:30:43 (3 years ago)
Author:
juhas
Message:

Fixed few typos, few more remaining.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/decorate/test_wrapper.py

    r591 r593  
    1717def test_nested_constraint(): 
    1818 
    19   from mystic.math import impose_mean 
     19  from mystic.math.measures import impose_mean 
    2020 
    2121  @nested(inner=impose_mean) 
     
    3030def test_nested_constraints(): 
    3131 
    32   from mystic.math import impose_mean, impose_spread 
     32  from mystic.math.measures import impose_mean, impose_spread 
    3333 
    3434  def impose_constraints(x, mean=0.0, spread=1.0): 
     
    7777  n,y = squared(x, 1) 
    7878  assert n[0] == 13 
    79   assert y == x**2 + 1 
     79  assert all(y == x**2 + 1) 
    8080 
    8181 
     
    101101def test_bounded(): 
    102102 
    103   @bounded(min=1,max=10) 
     103  @bounded(min=1,max=10-1e-8) 
    104104  def squared(x): 
    105105    return x**2 
     
    141141 
    142142 
    143 if __name__ is '__main__': 
     143if __name__ == '__main__': 
    144144  test_nested() 
    145145  test_nested_constraint() 
Note: See TracChangeset for help on using the changeset viewer.