From 9a7a7600e156403b8339112dca1c65d8fa32d634 Mon Sep 17 00:00:00 2001 From: Yevgeniy Zakharov Date: Fri, 8 Nov 2024 20:03:52 +0500 Subject: [PATCH] test simplified --- tests/constraints/foreign_key.cpp | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/tests/constraints/foreign_key.cpp b/tests/constraints/foreign_key.cpp index 416d1a0d8..203f6ea14 100644 --- a/tests/constraints/foreign_key.cpp +++ b/tests/constraints/foreign_key.cpp @@ -204,23 +204,8 @@ TEST_CASE("Foreign key with inheritance") { Student student = {0, "Alice", 20, "High School"}; int student_id = storage.insert(student); - // try - // { - // Create and insert a Classroom record with foreign keys Classroom classroom = {0, teacher_id, student_id, "Room A"}; storage.insert(classroom); - // } - // catch (std::exception& ex) - // { - // auto s = ex.what(); - // } - - // Fetch and display inserted Classroom with foreign key references - auto classrooms = storage.get_all(); - for(const auto& c: classrooms) { - // std::cout << "Classroom: " << c.room_name << ", Teacher ID: " << c.teacher_id - // << ", Student ID: " << c.student_id << "\n"; - } } #endif