Kết xuấtvi

đối_tượng_kiểm_thử

Translation status: Tiếng Việt reader-locale proof. Term names and code fences follow the vi pack; supporting prose may still be English.

Groups related test cases into a named suite.

Aliases: describe, suite

Syntax: đối_tượng_kiểm_thử <name> [modifiers] <block>

Category#

testing

Examples#

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

Groups related test cases into a named suite.

# =============================================================================
# đối_tượng_kiểm_thử — Groups related test cases into a named suite.
# =============================================================================
#
# What this teaches:
#   • Test suite grouping — `đối_tượng_kiểm_thử` organizes related `kiểm_thử` test cases
#     under a descriptive name
#   • Suites can be nested to create hierarchical test organization
#
# Common mistakes:
#   • Placing `kiểm_thử` outside a `đối_tượng_kiểm_thử` suite, or forgetting a `tag` modifier on the test case.
#
# See also: kiểm_thử, khẳng_định
# =============================================================================

# đối_tượng_kiểm_thử / kiểm_thử — declaration-only test suites
#
# đối_tượng_kiểm_thử "name" { kiểm_thử "case" { khẳng_định expr } … }   -- test group
# đối_tượng_kiểm_thử "nested" { đối_tượng_kiểm_thử "inner" { … } }         -- nested suite
#
# GRAMMAR:
#   probandumDecl :← 'đối_tượng_kiểm_thử' stringLit block
#   probaDecl     :← 'kiểm_thử' stringLit block
#
# EXPECTED OUTPUT:
#   No stdout — khẳng_định cases produce no ghi_chú output when run as tests.
#
# BACKEND: No bắt_đầu block — test-runner surface; exempla e2e whitelists as
# declaration-only (whitelist: đối_tượng_kiểm_thử/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
        }
    }
}