परीक्षण
Translation status: हिन्दी reader-locale proof. Term names and code fences follow the hi pack; supporting prose may still be English.
Defines a single test case.
Aliases: test, it
Syntax: परीक्षण <name> [modifiers] <block>
Category#
testing
Related#
Examples#
radix/corpus/proba/proba.fab (canonical · keyword)#
Defines a single test case.
# =============================================================================
# परीक्षण — Defines a single test case.
# =============================================================================
#
# What this teaches:
# • Individual test cases — `परीक्षण` declares one test with a descriptive name
# and optional modifiers
# • Tests live inside `परीक्षणसमूह` suites and contain `पुष्टि` assertions
#
# Common mistakes:
# • Using `पुष्टि` outside a `परीक्षण`/`परीक्षणसमूह` test block — `पुष्टि` is deprecated in production code (WARN006).
#
# See also: परीक्षणसमूह, पुष्टि, छोड़ो, लंबित
# =============================================================================
# परीक्षण — single test case
#
# GRAMMAR:
# testDecl :← 'परीक्षण' stringLit block
#
# EXPECTED OUTPUT:
# No आरंभ — declaration or test-runner surface only.
#
# BACKEND:
# declaration-only test case (whitelist: परीक्षण/proba.fab). Cross-ref: परीक्षणसमूह/probandum.fab.
#
test "arithmetic passes" टैग "math" {
assert 1 + 1 ≡ 2
}