渲染zh-Hans

时限

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

Sets a wall-clock timeout in seconds for a test modifier.

Syntax: 时限 <number>

Category#

testing

Examples#

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

Sets a wall-clock timeout in seconds for a test modifier.

# =============================================================================
# 时限 — Sets a wall-clock timeout in seconds for a test modifier.
# =============================================================================
#
# What this teaches:
#   • Test timeout — `时限` sets a wall-clock timeout (seconds) on `测试`
#     execution; a case still running past the deadline fails
#   • Test modifiers — combining timing with other test annotations
#
# Common mistakes:
#   • confusing 时限 (test timeout modifier) with tempus (time type)
#
# See also: 计量, 重复
# =============================================================================



# 时限 — timed test modifier
#
# GRAMMAR:
#   testModifier :← '时限' integer
#
# EXPECTED OUTPUT:
#   No 入口 — declaration or test-runner surface only.
#
# BACKEND:
#   declaration-only test modifier (whitelist: 时限/temporis.fab).
#

test "timed case" timeout 5 {
    assert true
}