रेंडरिंगhi

परीक्षणसमूह

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

Groups related test cases into a named suite.

Aliases: describe, suite

Syntax: परीक्षणसमूह <name> [modifiers] <block>

Category#

testing

Examples#

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

Groups related test cases into a named suite.

# =============================================================================
# परीक्षणसमूह — Groups related test cases into a named suite.
# =============================================================================
#
# What this teaches:
#   • Test suite grouping — `परीक्षणसमूह` organizes related `परीक्षण` test cases
#     under a descriptive name
#   • Suites can be nested to create hierarchical test organization
#
# Common mistakes:
#   • Placing `परीक्षण` outside a `परीक्षणसमूह` suite, or forgetting a `tag` modifier on the test case.
#
# See also: परीक्षण, पुष्टि
# =============================================================================

# परीक्षणसमूह / परीक्षण — declaration-only test suites
#
# परीक्षणसमूह "name" { परीक्षण "case" { पुष्टि expr } … }   -- test group
# परीक्षणसमूह "nested" { परीक्षणसमूह "inner" { … } }         -- nested suite
#
# GRAMMAR:
#   probandumDecl :← 'परीक्षणसमूह' stringLit block
#   probaDecl     :← 'परीक्षण' stringLit block
#
# EXPECTED OUTPUT:
#   No stdout — पुष्टि cases produce no दिखाओ output when run as tests.
#
# BACKEND: No आरंभ block — test-runner surface; exempla e2e whitelists as
# declaration-only (whitelist: परीक्षणसमूह/probandum.fab).

describe "arithmetica" {
    test "unum plus unum" {
        assert 1 + 1 ≡ 2
    }

    test "multiplicatio" {
        assert 3 * 4 ≡ 12
    }

    describe "implicata" {
        test "comparatio" {
            const _ x ← 10
            assert x ≥ 10
        }
    }
}