feat: 完成源晶权限与经验系统并优化 me/admin 交互
这个提交包含在:
@@ -3,6 +3,7 @@
|
||||
#include "csp/db/sqlite_db.h"
|
||||
#include "csp/services/problem_workspace_service.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <sqlite3.h>
|
||||
|
||||
TEST_CASE("problem workspace service drafts and solution jobs") {
|
||||
@@ -54,9 +55,12 @@ TEST_CASE("problem workspace service drafts and solution jobs") {
|
||||
REQUIRE(solutions.empty());
|
||||
|
||||
REQUIRE(svc.CountProblemsWithoutSolutions() >= 1);
|
||||
const auto missing_all = svc.ListProblemIdsWithoutSolutions(10, false);
|
||||
const auto missing_all = svc.ListProblemIdsWithoutSolutions(200, false);
|
||||
REQUIRE(!missing_all.empty());
|
||||
const auto missing_skip_busy = svc.ListProblemIdsWithoutSolutions(10, true);
|
||||
const auto missing_skip_busy = svc.ListProblemIdsWithoutSolutions(200, true);
|
||||
REQUIRE(!missing_skip_busy.empty());
|
||||
REQUIRE(missing_skip_busy.size() < missing_all.size());
|
||||
REQUIRE(std::find(missing_all.begin(), missing_all.end(), pid) != missing_all.end());
|
||||
REQUIRE(std::find(missing_skip_busy.begin(), missing_skip_busy.end(), pid) ==
|
||||
missing_skip_busy.end());
|
||||
REQUIRE(missing_skip_busy.size() <= missing_all.size());
|
||||
}
|
||||
|
||||
在新工单中引用
屏蔽一个用户