Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
Signed-off-by: Jerry Guo <Jerry.Jinfeng.Guo@alliander.com>
  • Loading branch information
Jerry-Jinfeng-Guo committed Sep 12, 2024
1 parent a05b88a commit 09d0b70
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ find_package(doctest REQUIRED)

include("${doctest_DIR}/doctest.cmake")

add_subdirectory("c_api_tests")
add_subdirectory("api_tests")
add_subdirectory("cpp_unit_tests")
add_subdirectory("cpp_integration_tests")
add_subdirectory("cpp_validation_tests")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@

set(PROJECT_SOURCES
"test_entry_point.cpp"
"test_cpp_api_meta_data.cpp"
"test_cpp_api_model.cpp"
"test_cpp_api_serialization.cpp"
"test_api_meta_data.cpp"
"test_api_model.cpp"
"test_api_serialization.cpp"
)

add_executable(power_grid_model_c_api_tests ${PROJECT_SOURCES})
add_executable(power_grid_model_api_tests ${PROJECT_SOURCES})

target_link_libraries(power_grid_model_c_api_tests
target_link_libraries(power_grid_model_api_tests
PRIVATE
power_grid_model_c
power_grid_model_cpp
doctest::doctest
)

doctest_discover_tests(power_grid_model_c_api_tests)
doctest_discover_tests(power_grid_model_api_tests)
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

namespace power_grid_model_cpp {

TEST_CASE("C++ API Meta Data") {
TEST_CASE("API Meta Data") {
SUBCASE("Datasets") {
// check dataset
for (Idx idx_dataset = 0; idx_dataset != MetaData::n_datasets(); ++idx_dataset) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ void check_exception(PowerGridError const& e, PGM_ErrorCode const& reference_err
}
} // namespace

TEST_CASE("C++ API Model") {
TEST_CASE("API Model") {
using namespace std::string_literals;

Options options{};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ constexpr char const* complete_json_data =
R"({"version":"1.0","type":"input","is_batch":false,"attributes":{},"data":{"node":[{"id":5, "u_rated": 10500}],"source":[{"id":6, "node": 5, "status": 1, "u_ref": 1.0}]}})";
} // namespace

TEST_CASE("C++ API Serialization and Deserialization") {
TEST_CASE("API Serialization and Deserialization") {

ID node_id = 5;
Buffer node_buffer{PGM_def_input_node, 1};
Expand Down
File renamed without changes.

0 comments on commit 09d0b70

Please sign in to comment.