@@ -67,24 +67,24 @@ constexpr std::string_view routingAwareConfiguration = R"({
67
67
}
68
68
})" ;
69
69
#define COMPILER_TEST (compiler_type, config ) \
70
- TEST (compiler_type##Test, ConstructorWithoutSettings ) { \
70
+ TEST (compiler_type##Test, ConstructorWithoutConfig ) { \
71
71
Architecture architecture ( \
72
72
Architecture::fromJSONString (architectureSpecification)); \
73
73
/* expected not to lead to a segfault */ \
74
74
[[maybe_unused]] compiler_type compiler (architecture); \
75
75
} \
76
76
class compiler_type ##Test : public ::testing::TestWithParam<std::string> { \
77
- compiler_type::Config settings_; \
77
+ compiler_type::Config config_; \
78
78
Architecture architecture_; \
79
79
\
80
80
protected: \
81
81
qc::QuantumComputation circ_; \
82
82
compiler_type compiler_; \
83
83
compiler_type##Test() \
84
- : settings_ (nlohmann::json(config)), \
84
+ : config_ (nlohmann::json::parse (config)), \
85
85
architecture_ ( \
86
86
Architecture::fromJSONString (architectureSpecification)), \
87
- compiler_(architecture_, settings_ ) {} \
87
+ compiler_(architecture_, config_ ) {} \
88
88
void SetUp () override { circ_ = qasm3::Importer::importf (GetParam ()); } \
89
89
}; \
90
90
/* =========================== END TO END TESTS ===========================*/ \
0 commit comments