रेंडरिंगhi

पूर्वतैयार

Translation status: हिन्दी reader-locale proof. Term names and code fences follow the hi pack; supporting prose may still be English.

Registers a before-each test hook.

Syntax: पूर्वतैयार <block>

Category#

testing

Examples#

radix/corpus/praepara/praepara.fab (canonical · keyword)#

Registers a before-each test hook.

# =============================================================================
# पूर्वतैयार — Registers a before-each test hook.
# =============================================================================
#
# What this teaches:
#   • Testing setup hooks — `पूर्वतैयार` registers a block that runs before each
#     test case (`परीक्षण`) in the suite, ensuring shared state or side effects
#     are prepared
#   • Works with `पश्चतैयार` (after-each) for paired setup/teardown
#
# Common mistakes:
#   • Confusing `पूर्वतैयार` (setup) with `पश्चतैयार` (teardown) — they run at opposite ends of each test.
#
# See also: पश्चतैयार, सभी
# =============================================================================

# पूर्वतैयार — before-each test hook
#
# GRAMMAR:
#   hookDecl :← 'पूर्वतैयार' block
#
# EXPECTED OUTPUT:
#   No आरंभ — declaration or test-runner surface only.
#
# BACKEND:
#   declaration-only test hook (whitelist: पूर्वतैयार/praepara.fab).
#

describe "hooks" {
    setup {
        print "before each"
    }
    test "sample" {
        assert true
    }
}