توقع_الفشل
Translation status: العربية reader-locale proof. Term names and code fences follow the ar pack; supporting prose may still be English.
Marks a test as expected to fail.
Aliases: expect failure
Syntax: اختبر <name> توقع_الفشل <block>
Category#
testing
Related#
Examples#
radix/corpus/erratur/erratur.fab (canonical · keyword)#
Marks a test as expected to fail.
# =============================================================================
# توقع_الفشل — Marks a test as expected to fail
# =============================================================================
#
# What this teaches:
# • Expected failure — `توقع_الفشل` records a test whose failing assertion is a known defect, with no argument.
# • Modifier position — it sits between the test name and the body, like `أهمل` and `هش`.
#
# Common mistakes:
# • Confusing توقع_الفشل (expected failure) with أهمل (skipped) — an توقع_الفشل test still runs.
#
# See also: اختبر, هش, أهمل
# =============================================================================
# توقع_الفشل — expected-failure test modifier
#
# GRAMMAR:
# testModifier :← 'توقع_الفشل'
#
# EXPECTED OUTPUT:
# توقع_الفشل declared
test "known defect" expect_failure {
assert 1 + 1 ≡ 3
}
main {
print "erratur declared"
}Expected output:
erratur declared