lặp_lại
Translation status: Tiếng Việt reader-locale proof. Term names and code fences follow the vi pack; supporting prose may still be English.
Repeats a test a fixed number of times.
Syntax: lặp_lại <number>
Category#
testing
Related#
Examples#
radix/corpus/repete/repete.fab (canonical · keyword)#
Repeats a test a fixed number of times.
# =============================================================================
# lặp_lại — Repeats a test a fixed number of times.
# =============================================================================
#
# What this teaches:
# • Test flakiness mitigation — `lặp_lại <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 `kiểm_thử`
#
# Common mistakes:
# • Confusing `lặp_lại` (test repetition modifier) with `lặp` (loop iterator) or `làm`/`trong_khi` (loop constructs).
#
# See also: mong_manh
# =============================================================================
# lặp_lại — repeat test modifier
#
# GRAMMAR:
# testModifier :← 'lặp_lại' integer
#
# EXPECTED OUTPUT:
# No bắt_đầu — declaration or test-runner surface only.
#
# BACKEND:
# declaration-only test modifier (whitelist: lặp_lại/repete.fab).
#
test "flaky guard" repeat 2 {
assert true
}