24 lines
No EOL
627 B
C++
24 lines
No EOL
627 B
C++
#include "TestFramework.h"
|
|
#include "TestUtils.h"
|
|
#include "TestRenderUtils.h"
|
|
|
|
#include "QuantumCircuitReader.h"
|
|
#include "QuantumCircuitNode.h"
|
|
#include "QuantumCircuit.h"
|
|
|
|
|
|
TEST_CASE(TestQuantumCircuitParsing, "quantum_computing")
|
|
{
|
|
QuantumCircuitReader reader;
|
|
|
|
auto circuit = reader.read(TestUtils::getTestDataDir() / "quantum_circuit.dat");
|
|
|
|
TestRenderer renderer(100, 100);
|
|
|
|
auto node = std::make_unique<QuantumCircuitNode>(Point(10, 10));
|
|
|
|
node->setContent(circuit.get());
|
|
|
|
renderer.getScene()->addNode(node.get());
|
|
renderer.writeSvg(TestUtils::getTestOutputDir(__FILE__) / "circuit.svg");
|
|
} |