पश्चतैयार
Translation status: हिन्दी reader-locale proof. Term names and code fences follow the hi pack; supporting prose may still be English.
Registers an after-each test hook.
Syntax: पश्चतैयार <block>
Category#
testing
Related#
Examples#
radix/corpus/postpara/postpara.fab (canonical · keyword)#
Registers an after-each test hook.
# =============================================================================
# पश्चतैयार — Registers an after-each test hook.
# =============================================================================
#
# What this teaches:
# • Test hooks — `पश्चतैयार` registers cleanup logic that runs after every test case in a `परीक्षणसमूह` block.
# • Teardown guarantee — The hook runs regardless of whether the test passes or fails.
#
# Common mistakes:
# • Confusing `पश्चतैयार` (teardown) with `पूर्वतैयार` (setup) — they run at opposite ends of each test.
#
# See also: पूर्वतैयार, सभी
# =============================================================================
# पश्चतैयार — after-each test hook
#
# GRAMMAR:
# hookDecl :← 'पश्चतैयार' block
#
# EXPECTED OUTPUT:
# No आरंभ — declaration or test-runner surface only.
#
# BACKEND:
# declaration-only test hook (whitelist: पश्चतैयार/postpara.fab).
#
describe "hooks" {
teardown {
print "after each"
}
test "sample" {
assert true
}
}