diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-03-25 15:40:59 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-03-25 15:40:59 -0400 |
| commit | 1f9147187d66e95a0ffedd4d5595ec98646b5fe1 (patch) | |
| tree | 14281e5cbde8e15fae63953b72844fb1a11d6f73 /test/rng.tm | |
| parent | d88d8648dc7802fbeac2f28dc5f2ef8fdfe1a9e4 (diff) | |
Make docstring tests use an actual expression AST instead of text
matching
Diffstat (limited to 'test/rng.tm')
| -rw-r--r-- | test/rng.tm | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/test/rng.tm b/test/rng.tm index fe3d9f75..1814d583 100644 --- a/test/rng.tm +++ b/test/rng.tm @@ -12,23 +12,23 @@ func main(): >> rng:int(1, 1000) = 921 >> rng:int64(1, 1000) - = 324 : Int64 + = Int64(324) >> rng:int32(1, 1000) - = 586 : Int32 + = Int32(586) >> rng:int16(1, 1000) - = 453 : Int16 + = Int16(453) >> rng:int8(1, 100) - = 53 : Int8 + = Int8(53) >> rng:byte() - = 0xDC : Byte + = Byte(0xDC) >> rng:bytes(10) - = [0xA0, 0x5A, 0x10, 0x3F, 0x6C, 0xD1, 0x35, 0xC2, 0x87, 0x8C] + = [:Byte, 0xA0, 0x5A, 0x10, 0x3F, 0x6C, 0xD1, 0x35, 0xC2, 0x87, 0x8C] >> rng:bool(p=0.8) = yes >> rng:num() - = 0.03492503353647658 : Num + = 0.03492503353647658 >> rng:num32(1, 1000) - = 761.05908 : Num32 + = Num32(761.05908) !! Random array methods: >> nums := [10*i for i in 10] |
