feat: expand platform management, admin controls, and learning workflows
这个提交包含在:
@@ -42,7 +42,21 @@ TEST_CASE("problem workspace service drafts and solution jobs") {
|
||||
REQUIRE(latest->id == job_id);
|
||||
REQUIRE(latest->status == "queued");
|
||||
REQUIRE(latest->max_solutions == 3);
|
||||
REQUIRE(latest->problem_title.empty());
|
||||
|
||||
const auto recent = svc.ListRecentSolutionJobs(10);
|
||||
REQUIRE(recent.size() == 1);
|
||||
REQUIRE(recent.front().id == job_id);
|
||||
REQUIRE(recent.front().problem_id == pid);
|
||||
REQUIRE(!recent.front().problem_title.empty());
|
||||
|
||||
const auto solutions = svc.ListSolutions(pid);
|
||||
REQUIRE(solutions.empty());
|
||||
|
||||
REQUIRE(svc.CountProblemsWithoutSolutions() >= 1);
|
||||
const auto missing_all = svc.ListProblemIdsWithoutSolutions(10, false);
|
||||
REQUIRE(!missing_all.empty());
|
||||
const auto missing_skip_busy = svc.ListProblemIdsWithoutSolutions(10, true);
|
||||
REQUIRE(!missing_skip_busy.empty());
|
||||
REQUIRE(missing_skip_busy.size() < missing_all.size());
|
||||
}
|
||||
|
||||
在新工单中引用
屏蔽一个用户