Skip to content

Commit a19c732

Browse files
committed
✏️ Fix tests
1 parent 8d35ec7 commit a19c732

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/na/zoned/test_compiler.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,24 +67,24 @@ constexpr std::string_view routingAwareConfiguration = R"({
6767
}
6868
})";
6969
#define COMPILER_TEST(compiler_type, config) \
70-
TEST(compiler_type##Test, ConstructorWithoutSettings) { \
70+
TEST(compiler_type##Test, ConstructorWithoutConfig) { \
7171
Architecture architecture( \
7272
Architecture::fromJSONString(architectureSpecification)); \
7373
/* expected not to lead to a segfault */ \
7474
[[maybe_unused]] compiler_type compiler(architecture); \
7575
} \
7676
class compiler_type##Test : public ::testing::TestWithParam<std::string> { \
77-
compiler_type::Config settings_; \
77+
compiler_type::Config config_; \
7878
Architecture architecture_; \
7979
\
8080
protected: \
8181
qc::QuantumComputation circ_; \
8282
compiler_type compiler_; \
8383
compiler_type##Test() \
84-
: settings_(nlohmann::json(config)), \
84+
: config_(nlohmann::json::parse(config)), \
8585
architecture_( \
8686
Architecture::fromJSONString(architectureSpecification)), \
87-
compiler_(architecture_, settings_) {} \
87+
compiler_(architecture_, config_) {} \
8888
void SetUp() override { circ_ = qasm3::Importer::importf(GetParam()); } \
8989
}; \
9090
/*=========================== END TO END TESTS ===========================*/ \

0 commit comments

Comments
 (0)