اختبر
Translation status: العربية reader-locale proof. Term names and code fences follow the ar 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
}