معاد
Translation status: العربية reader-locale proof. Term names and code fences follow the ar 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
}