From 85b48f851b5c75d13df26f49c2caed6028925d7d Mon Sep 17 00:00:00 2001 From: Bryce Sampson Date: Fri, 10 Jun 2016 11:55:31 -0700 Subject: [PATCH] found file since all code disappeared --- testing/vcs/test_vcs_extends.py | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/testing/vcs/test_vcs_extends.py b/testing/vcs/test_vcs_extends.py index e69de29bb2..4106cecd64 100644 --- a/testing/vcs/test_vcs_extends.py +++ b/testing/vcs/test_vcs_extends.py @@ -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 + + +