渲染zh-Hans

预期

Translation status: 简体中文 reader-locale proof. Term names and code fences follow the zh-Hans pack; supporting prose may still be English.

Marks a test case as pending future work with a reason.

Aliases: todo, pending

Syntax: 测试 <name> 预期 <reason> <block>

Category#

testing

Examples#

radix/corpus/futurum/futurum.fab (canonical · keyword)#

Marks a test case as pending future work with a reason.

# =============================================================================
# 预期 — Marks a test case as pending future work with a reason
# =============================================================================
#
# What this teaches:
#   • Marks a test case as pending future work with a reason.
#   • Related keywords: 测试, 跳过
#
# Common mistakes:
#   • Using `预期` on tests that are actually implemented — `预期` marks pending work; active tests should omit this modifier.
#
# See also: 测试, 跳过
# =============================================================================

# 预期 — todo test modifier
#
# GRAMMAR:
#   testModifier :← '预期' stringLit
#
# EXPECTED OUTPUT:
#   No 入口 — declaration or test-runner surface only.
#
# BACKEND:
#   declaration-only test modifier (whitelist: 预期/futurum.fab).
#

test "async file operations" todo "needs async support" {
    assert true
}