New REST+OpenAPI interface
This commit is contained in:
@@ -3,8 +3,6 @@
|
||||
#define CATCH_CONFIG_MAIN
|
||||
#include <catch2/catch.hpp>
|
||||
|
||||
#include <google/protobuf/util/message_differencer.h>
|
||||
|
||||
#include "../common/DiffractionExperiment.h"
|
||||
#include "../compression/JFJochCompressor.h"
|
||||
#include "../common/NetworkAddressConvert.h"
|
||||
@@ -137,7 +135,7 @@ TEST_CASE("DiffractionExperiment_Compression","[DiffractionExperiment]") {
|
||||
|
||||
TEST_CASE("DiffractionExperiment_UnitCell","[DiffractionExperiment]") {
|
||||
DiffractionExperiment x;
|
||||
REQUIRE(!x.HasUnitCell());
|
||||
REQUIRE(!x.GetUnitCell());
|
||||
|
||||
UnitCell cell{
|
||||
.a = 10,
|
||||
@@ -149,10 +147,10 @@ TEST_CASE("DiffractionExperiment_UnitCell","[DiffractionExperiment]") {
|
||||
};
|
||||
REQUIRE_NOTHROW(x.SetUnitCell(cell));
|
||||
|
||||
REQUIRE(x.HasUnitCell());
|
||||
REQUIRE(x.GetUnitCell().c == 30);
|
||||
REQUIRE_NOTHROW(x.SetUnitCell());
|
||||
REQUIRE(!x.HasUnitCell());
|
||||
REQUIRE(x.GetUnitCell());
|
||||
REQUIRE(x.GetUnitCell()->c == 30);
|
||||
REQUIRE_NOTHROW(x.SetUnitCell({}));
|
||||
REQUIRE(!x.GetUnitCell());
|
||||
REQUIRE_NOTHROW(x.SetUnitCell(cell));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user