Commit 85fd9296 by Maarten L. Hekkelman

Add test for loading

parent 1cda1486
...@@ -191,22 +191,25 @@ _struct_asym.details ? ...@@ -191,22 +191,25 @@ _struct_asym.details ?
} }
} }
// // -------------------------------------------------------------------- // --------------------------------------------------------------------
// BOOST_AUTO_TEST_CASE(test_load_1) BOOST_AUTO_TEST_CASE(test_load_1)
// { {
// mmcif::File cf(gTestDir / "5v3g.cif.gz"); using namespace cif::literals;
// mmcif::Structure s(cf);
const std::filesystem::path example(gTestDir / ".." / "examples" / "1cbs.cif.gz");
// for (auto &poly : s.polymers()) mmcif::File file(example.string());
// {
// std::cout << std::string(80, '=') << std::endl; auto &db = file.data();
// for (auto &res : poly)
// { mmcif::Structure s(file);
// std::cout << res << std::endl;
BOOST_CHECK(s.polymers().size() == 1);
// for (auto &atom : res.atoms())
// std::cout << " " << atom << std::endl; auto &pdbx_poly_seq_scheme = db["pdbx_poly_seq_scheme"];
// }
// } for (auto &poly : s.polymers())
// } {
BOOST_CHECK_EQUAL(poly.size(), pdbx_poly_seq_scheme.find("asym_id"_key == poly.asymID()).size());
}
}
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