在 Manus 中运行任何 Skill
一键导入
一键导入
一键在 Manus 中运行任何 Skill
开始使用add-test
星标33
分支1
更新时间2026年7月22日 21:27
Add a new test assertion to the mojibake test suite
安装
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
SKILL.md
readonly菜单
Add a new test assertion to the mojibake test suite
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | add-test |
| description | Add a new test assertion to the mojibake test suite |
| version | 0.3.3 |
| author | Claude |
| tags | ["testing","mojibake","c"] |
This skill helps you add a new test assertion to the mojibake library test suite.
tests/ directorysrc/file.c -> tests/file.cATT_ASSERT(value_to_test, expected_value, comment_string)void *test_<name>(void *arg) that contains the assertionsWhen this skill is invoked, follow these steps:
Identify the source file:
src/version.c, extract just the base nameLocate or create the test file:
tests/<basename>.c existsvoid *test_<basename>(void *arg)tests/test.hGet test details:
mjb_version())MJB_VERSION or a literal value)Add the assertion:
void *test_<basename>(void *arg)return NULL; statementATT_ASSERT(value_to_test, expected_value, "comment");Verify:
ARGS="--filter=<basename>" make testARGS="--filter=version" make test-vv flag for verbose output to see what went wrong:
ARGS="--filter=<basename> -vv" make testFor adding a test to src/version.c:
void *test_version(void *arg) {
ATT_ASSERT(mjb_version(), (const char*)MJB_VERSION, "Valid version");
ATT_ASSERT(mjb_version_number(), MJB_VERSION_NUMBER, "Valid version number");
// New assertion would be added here
return NULL;
}
Run only this test with:
ARGS="--filter=version" make test
(const char*) for string comparisons)