पुनरावृत्ति
Translation status: हिन्दी reader-locale proof. Term names and code fences follow the hi 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
}