fix tests

This commit is contained in:
Adrian Mariano
2021-11-12 06:18:14 -05:00
parent bc431016fc
commit f605bafb0d
4 changed files with 13 additions and 10 deletions

View File

@@ -352,12 +352,12 @@ test_all_defined();
module test_get_anchor() {
assert_equal(get_anchor(UP,true,ALLNEG,BOT),CENTER);
assert_equal(get_anchor(UP,false,ALLNEG,BOT),ALLNEG);
assert_equal(get_anchor(UP,undef,ALLNEG,BOT),UP);
assert_equal(get_anchor(undef,true,ALLNEG,BOT),CENTER);
assert_equal(get_anchor(undef,false,ALLNEG,BOT),ALLNEG);
assert_equal(get_anchor(undef,undef,ALLNEG,BOT),BOT);
assert_equal(get_anchor(UP,true,-[1,1,1],BOT),CENTER);
assert_equal(get_anchor(UP,false,-[1,1,1],BOT),-[1,1,1]);
assert_equal(get_anchor(UP,undef,-[1,1,1],BOT),UP);
assert_equal(get_anchor(undef,true,-[1,1,1],BOT),CENTER);
assert_equal(get_anchor(undef,false,-[1,1,1],BOT),-[1,1,1]);
assert_equal(get_anchor(undef,undef,-[1,1,1],BOT),BOT);
}
test_get_anchor();