Kết xuấtvi

repete

Translation status: Tiếng Việt reader-locale proof. Code fences render through the vi pipeline; prose is canonical Latin.

Repeats a test a fixed number of times.

Syntax: repete <number>

Category#

testing

Examples#

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

Repeats a test a fixed number of times.

# =============================================================================
# repete — Repeats a test a fixed number of times.
# =============================================================================
#
# What this teaches:
#   • Test flakiness mitigation — `repete <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 `proba`
#
# Common mistakes:
#   • Confusing `repete` (test repetition modifier) with `itera` (loop iterator) or `fac`/`dum` (loop constructs).
#
# See also: fragilis
# =============================================================================

# repete — repeat test modifier
#
# GRAMMAR:
#   testModifier :← 'repete' integer
#
# EXPECTED OUTPUT:
#   No incipit — declaration or test-runner surface only.
#
# BACKEND:
#   declaration-only test modifier (whitelist: repete/repete.fab).
#

test "flaky guard" repeat 2 {
    assert true
}