重複
Translation status: 繁體中文 reader-locale proof. Term names and code fences follow the zh-Hant pack; supporting prose may still be English.
Repeats a test a fixed number of times.
Syntax: 重複 <number>
Category#
testing
Related#
Examples#
radix/corpus/repete/repete.fab (canonical · keyword)#
Repeats a test a fixed number of times.
# =============================================================================
# 重複 — Repeats a test a fixed number of times.
# =============================================================================
#
# What this teaches:
# • Test flakiness mitigation — `重複 <N>` runs a test case up to N times
# until it passes; useful for non-deterministic or flaky tests
# • Declared as a test modifier on `測試`
#
# Common mistakes:
# • Confusing `重複` (test repetition modifier) with `遍歷` (loop iterator) or `執行`/`當` (loop constructs).
#
# See also: 脆弱
# =============================================================================
# 重複 — repeat test modifier
#
# GRAMMAR:
# testModifier :← '重複' integer
#
# EXPECTED OUTPUT:
# No 入口 — declaration or test-runner surface only.
#
# BACKEND:
# declaration-only test modifier (whitelist: 重複/repete.fab).
#
test "flaky guard" repeat 2 {
assert true
}