Skip to content

Commit bde9715

Browse files
committed
tidied unit-test filenames
1 parent 10afedd commit bde9715

11 files changed

+18
-18
lines changed

tests/CMakeLists.txt

+9-9
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ include_directories(catch)
55

66
# compile Catch2 unit tests in C++14
77
add_executable(tests
8-
catch_main.cpp
9-
QuEST_test_utils.cpp
10-
QuEST_test_calculations.cpp
11-
QuEST_test_data_structures.cpp
12-
QuEST_test_decoherence.cpp
13-
QuEST_test_gates.cpp
14-
QuEST_test_operators.cpp
15-
QuEST_test_state_initialisations.cpp
16-
QuEST_test_unitaries.cpp
8+
main.cpp
9+
utilities.cpp
10+
test_calculations.cpp
11+
test_data_structures.cpp
12+
test_decoherence.cpp
13+
test_gates.cpp
14+
test_operators.cpp
15+
test_state_initialisations.cpp
16+
test_unitaries.cpp
1717
)
1818
set_property(TARGET tests PROPERTY CXX_STANDARD 14)
1919
if (WIN32)
File renamed without changes.

tests/QuEST_test_calculations.cpp tests/test_calculations.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
#include "catch.hpp"
33
#include "QuEST.h"
4-
#include "QuEST_test_utils.hpp"
4+
#include "utilities.hpp"
55

66
/* allows concise use of Contains in catch's REQUIRE_THROWS_WITH */
77
using Catch::Matchers::Contains;

tests/QuEST_test_data_structures.cpp tests/test_data_structures.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
#include "catch.hpp"
33
#include "QuEST.h"
4-
#include "QuEST_test_utils.hpp"
4+
#include "utilities.hpp"
55

66
/* allows concise use of Contains in catch's REQUIRE_THROWS_WITH */
77
using Catch::Matchers::Contains;

tests/QuEST_test_decoherence.cpp tests/test_decoherence.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
#include "catch.hpp"
33
#include "QuEST.h"
4-
#include "QuEST_test_utils.hpp"
4+
#include "utilities.hpp"
55
#include <random>
66

77
/** Prepares a density matrix in the debug state, and the reference QMatrix

tests/QuEST_test_gates.cpp tests/test_gates.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
#include "catch.hpp"
33
#include "QuEST.h"
4-
#include "QuEST_test_utils.hpp"
4+
#include "utilities.hpp"
55

66
/* allows concise use of Contains in catch's REQUIRE_THROWS_WITH */
77
using Catch::Matchers::Contains;

tests/QuEST_test_operators.cpp tests/test_operators.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
#include "catch.hpp"
33
#include "QuEST.h"
4-
#include "QuEST_test_utils.hpp"
4+
#include "utilities.hpp"
55

66
/* allows concise use of Contains in catch's REQUIRE_THROWS_WITH */
77
using Catch::Matchers::Contains;

tests/QuEST_test_state_initialisations.cpp tests/test_state_initialisations.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
#include "catch.hpp"
33
#include "QuEST.h"
4-
#include "QuEST_test_utils.hpp"
4+
#include "utilities.hpp"
55

66
/* allows concise use of Contains in catch's REQUIRE_THROWS_WITH */
77
using Catch::Matchers::Contains;

tests/QuEST_test_unitaries.cpp tests/test_unitaries.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
#include "catch.hpp"
1717
#include "QuEST.h"
18-
#include "QuEST_test_utils.hpp"
18+
#include "utilities.hpp"
1919

2020
/** Prepares the needed data structures for unit testing unitaries.
2121
* This creates a statevector and density matrix of the size NUM_QUBITS,

tests/QuEST_test_utils.cpp tests/utilities.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66

77
#include "QuEST.h"
8-
#include "QuEST_test_utils.hpp"
8+
#include "utilities.hpp"
99
#include "catch.hpp"
1010
#include <random>
1111
#include <algorithm>

tests/QuEST_test_utils.hpp tests/utilities.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/** @file
2-
* Unoptimised, analytic implementations of matrix operations used by QuEST_unit_tests
2+
* Unoptimised, analytic implementations of matrix operations used by QuEST's unit tests
33
*
44
* @defgroup unittest Unit tests
55
* Unit tests of the QuEST API, using Catch2 in C++14.

0 commit comments

Comments
 (0)