Commit 76748139 authored by Zhang, Chen's avatar Zhang, Chen
Browse files

add unit test for convertor from LeanPeak to Peak

parent ac793bca
...@@ -123,6 +123,12 @@ public: ...@@ -123,6 +123,12 @@ public:
check_Contributing_Detectors(p2, expectedIDs); check_Contributing_Detectors(p2, expectedIDs);
} }
void test_ConstructorFromLeanElasticPeak() {
const LeanElasticPeak &lpeak = p(V3D(1, 2, 3));
TS_ASSERT_THROWS_NOTHING(Peak p(lpeak, inst));
}
void test_copyConstructor() { void test_copyConstructor() {
Peak p(inst, 10102, 2.0); Peak p(inst, 10102, 2.0);
p.setHKL(1, 2, 3); p.setHKL(1, 2, 3);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment