अपेक्षित_विफलता
Translation status: हिन्दी reader-locale proof. Term names and code fences follow the hi 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