การเรนเดอร์th-TH

เวลา

Translation status: ภาษาไทย reader-locale proof. Term names and code fences follow the th-TH pack; supporting prose may still be English.

Sets a wall-clock timeout in seconds for a test modifier.

Syntax: เวลา <number>

Category#

testing

Examples#

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

Sets a wall-clock timeout in seconds for a test modifier.

# =============================================================================
# เวลา — Sets a wall-clock timeout in seconds for a test modifier.
# =============================================================================
#
# What this teaches:
#   • Test timeout — `เวลา` sets a wall-clock timeout (seconds) on `ทดสอบ`
#     execution; a case still running past the deadline fails
#   • Test modifiers — combining timing with other test annotations
#
# Common mistakes:
#   • confusing เวลา (test timeout modifier) with tempus (time type)
#
# See also: วัด, ทำซ้ำ
# =============================================================================



# เวลา — timed test modifier
#
# GRAMMAR:
#   testModifier :← 'เวลา' integer
#
# EXPECTED OUTPUT:
#   No เริ่ม — declaration or test-runner surface only.
#
# BACKEND:
#   declaration-only test modifier (whitelist: เวลา/temporis.fab).
#

test "timed case" timeout 5 {
    assert true
}