Skip to content

Commit

Permalink
found file since all code disappeared
Browse files Browse the repository at this point in the history
  • Loading branch information
Bryce Sampson committed Jun 10, 2016
1 parent e80d686 commit 85b48f8
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions testing/vcs/test_vcs_extends.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import vcs
import numpy

box = vcs.createboxfill()

box.ext_1 = True
assert numpy.allclose(box.levels, [1e20] * 2)

box.ext_2 = True
assert numpy.allclose(box.levels, [1e20] * 2)

box.levels = [1, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100]
assert box.ext_1 == False
assert box.ext_1 == False

box.ext_1 = True
assert box.levels[0] < -9e19

box.ext_2 = True
assert box.levels[-1] > 9e19

box.ext_1 = False
assert box.levels[0] > -9e19

box.ext_2 = False
assert box.levels[-1] < 9e19



0 comments on commit 85b48f8

Please sign in to comment.