Skip to content

Commit 9a7a760

Browse files
committed
test simplified
1 parent 1231e84 commit 9a7a760

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

tests/constraints/foreign_key.cpp

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -204,23 +204,8 @@ TEST_CASE("Foreign key with inheritance") {
204204
Student student = {0, "Alice", 20, "High School"};
205205
int student_id = storage.insert(student);
206206

207-
// try
208-
// {
209-
210207
// Create and insert a Classroom record with foreign keys
211208
Classroom classroom = {0, teacher_id, student_id, "Room A"};
212209
storage.insert(classroom);
213-
// }
214-
// catch (std::exception& ex)
215-
// {
216-
// auto s = ex.what();
217-
// }
218-
219-
// Fetch and display inserted Classroom with foreign key references
220-
auto classrooms = storage.get_all<Classroom>();
221-
for(const auto& c: classrooms) {
222-
// std::cout << "Classroom: " << c.room_name << ", Teacher ID: " << c.teacher_id
223-
// << ", Student ID: " << c.student_id << "\n";
224-
}
225210
}
226211
#endif

0 commit comments

Comments
 (0)