時限
Translation status: 繁體中文 reader-locale proof. Term names and code fences follow the zh-Hant pack; supporting prose may still be English.
Sets a wall-clock timeout in seconds for a test modifier.
Syntax: 時限 <number>
Category#
testing
Related#
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
}