Skip to content

Commit

Permalink
v0.1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
sublee committed Oct 28, 2014
1 parent a6e6306 commit 21bd477
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion gauge.py
Expand Up @@ -19,7 +19,7 @@


__all__ = ['Gauge', 'Momentum']
__version__ = '0.1.4'
__version__ = '0.1.5'


# indices
Expand Down
9 changes: 5 additions & 4 deletions gaugetest.py
Expand Up @@ -880,19 +880,19 @@ def test_randomly():
for y in range(times):
seed = random.randrange(maxint)
g = random_gauge1(Random(seed))
assert_all_inside(g, 'random_gauge1({0})'.format(seed))
assert_all_inside(g, 'random_gauge1(R({0}))'.format(seed))
for y in range(times):
seed = random.randrange(maxint)
g = random_gauge1(Random(seed), far=1000)
assert_all_inside(g, 'random_gauge1({0}, far=1000)'.format(seed))
assert_all_inside(g, 'random_gauge1(R({0}), far=1000)'.format(seed))
for y in range(times):
seed = random.randrange(maxint)
g = random_gauge1(Random(seed), near=1e-10)
assert_all_inside(g, 'random_gauge1({0}, near=1e-10)'.format(seed))
assert_all_inside(g, 'random_gauge1(R({0}), near=1e-10)'.format(seed))
for y in range(times):
seed = random.randrange(maxint)
g = random_gauge2(Random(seed), far=1e4)
assert_all_inside(g, 'random_gauge2({0})'.format(seed))
assert_all_inside(g, 'random_gauge2(R({0}), far=1e4)'.format(seed))


def test_repaired_random_gauges():
Expand All @@ -902,3 +902,4 @@ def test_repaired_random_gauges():
assert_all_inside(random_gauge1(Random(6867673013126676888), near=1e-10))
assert_all_inside(random_gauge1(Random(2881266403492433952), far=1000))
assert_all_inside(random_gauge2(Random(3373542927760325757), far=1e6))
# assert_all_inside(random_gauge2(Random(7588425536572564538), far=1e4))

0 comments on commit 21bd477

Please sign in to comment.