We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e74f72 commit a95dc78Copy full SHA for a95dc78
1 file changed
src/tests/TestOverlapCalculator.hpp
@@ -54,6 +54,31 @@ class TestOverlapCalculator : public CxxTest::TestSuite
54
}
55
56
57
+ void test_rmin()
58
+ {
59
+ molc->eval(mnacl);
60
+ TS_ASSERT(molc->distances().size());
61
+ double tot = molc->totalSquareOverlap();
62
+ TS_ASSERT_LESS_THAN(0.0, tot);
63
+ molc->setRmin(10);
64
+ molc->eval();
65
+ TS_ASSERT(molc->distances().empty());
66
+ TS_ASSERT_EQUALS(0.0, molc->totalSquareOverlap());
67
+ molc->setRmin(2);
68
69
+ TS_ASSERT_EQUALS(tot, molc->totalSquareOverlap());
70
+ }
71
+
72
73
+ void test_rmax()
74
75
+ molc->setRmax(2.5);
76
77
+ TS_ASSERT(molc->distances().empty())
78
79
80
81
82
void test_lineNoTouch()
83
{
84
AtomicStructureAdapterPtr stru(new AtomicStructureAdapter);
0 commit comments