FFTIndexerTest: Update test to sort input vectors + remove old, unused file duplicating this test
Build Packages / build:rpm (ubuntu2404_nocuda) (push) Successful in 10m49s
Build Packages / build:rpm (rocky8_nocuda) (push) Successful in 11m55s
Build Packages / build:rpm (ubuntu2204_nocuda) (push) Successful in 12m21s
Build Packages / build:rpm (rocky8) (push) Successful in 12m48s
Build Packages / build:rpm (rocky8_sls9) (push) Successful in 12m57s
Build Packages / build:rpm (rocky9_nocuda) (push) Successful in 13m48s
Build Packages / build:rpm (rocky9_sls9) (push) Successful in 14m4s
Build Packages / XDS test (durin plugin) (push) Successful in 8m18s
Build Packages / Generate python client (push) Successful in 28s
Build Packages / XDS test (neggia plugin) (push) Successful in 7m56s
Build Packages / Create release (push) Skipped
Build Packages / build:rpm (ubuntu2404) (push) Successful in 9m55s
Build Packages / Build documentation (push) Successful in 36s
Build Packages / XDS test (JFJoch plugin) (push) Successful in 8m47s
Build Packages / build:rpm (ubuntu2204) (push) Successful in 11m16s
Build Packages / build:rpm (rocky9) (push) Successful in 12m20s
Build Packages / DIALS test (push) Successful in 12m11s
Build Packages / Unit tests (push) Successful in 58m31s
Build Packages / build:rpm (ubuntu2404_nocuda) (push) Successful in 10m49s
Build Packages / build:rpm (rocky8_nocuda) (push) Successful in 11m55s
Build Packages / build:rpm (ubuntu2204_nocuda) (push) Successful in 12m21s
Build Packages / build:rpm (rocky8) (push) Successful in 12m48s
Build Packages / build:rpm (rocky8_sls9) (push) Successful in 12m57s
Build Packages / build:rpm (rocky9_nocuda) (push) Successful in 13m48s
Build Packages / build:rpm (rocky9_sls9) (push) Successful in 14m4s
Build Packages / XDS test (durin plugin) (push) Successful in 8m18s
Build Packages / Generate python client (push) Successful in 28s
Build Packages / XDS test (neggia plugin) (push) Successful in 7m56s
Build Packages / Create release (push) Skipped
Build Packages / build:rpm (ubuntu2404) (push) Successful in 9m55s
Build Packages / Build documentation (push) Successful in 36s
Build Packages / XDS test (JFJoch plugin) (push) Successful in 8m47s
Build Packages / build:rpm (ubuntu2204) (push) Successful in 11m16s
Build Packages / build:rpm (rocky9) (push) Successful in 12m20s
Build Packages / DIALS test (push) Successful in 12m11s
Build Packages / Unit tests (push) Successful in 58m31s
This commit is contained in:
@@ -218,10 +218,26 @@ TEST_CASE("FFTIndexer","[Indexing]") {
|
||||
auto end = std::chrono::high_resolution_clock::now();
|
||||
|
||||
REQUIRE(result.lattice.size() == 1);
|
||||
|
||||
auto uc_out = result.lattice[0].GetUnitCell();
|
||||
CHECK(uc_out.a == Catch::Approx(uc.b));
|
||||
CHECK(uc_out.b == Catch::Approx(uc.a));
|
||||
CHECK(uc_out.c == Catch::Approx(uc.c));
|
||||
|
||||
// Collect and sort both sets of lengths to compare order-independently
|
||||
std::array<float, 3> out_lengths = {
|
||||
static_cast<float>(uc_out.a),
|
||||
static_cast<float>(uc_out.b),
|
||||
static_cast<float>(uc_out.c)
|
||||
};
|
||||
std::array<float, 3> ref_lengths = {
|
||||
static_cast<float>(uc.a),
|
||||
static_cast<float>(uc.b),
|
||||
static_cast<float>(uc.c)
|
||||
};
|
||||
std::sort(out_lengths.begin(), out_lengths.end());
|
||||
std::sort(ref_lengths.begin(), ref_lengths.end());
|
||||
|
||||
CHECK(out_lengths[0] == Catch::Approx(ref_lengths[0]));
|
||||
CHECK(out_lengths[1] == Catch::Approx(ref_lengths[1]));
|
||||
CHECK(out_lengths[2] == Catch::Approx(ref_lengths[2]));
|
||||
|
||||
CHECK(uc_out.alpha == Catch::Approx(uc.alpha));
|
||||
CHECK(uc_out.beta == Catch::Approx(uc.beta));
|
||||
|
||||
Reference in New Issue
Block a user