diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-11-19 13:41:52 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-11-19 13:41:52 -0500 |
| commit | 2c904ff1737e34008f7a6c5d4b072d87a45a3fbc (patch) | |
| tree | ac4c430677042a7ea92b92be5e5afa6e5a4ef27d /test/rng.tm | |
| parent | 4720ca7a5f3ad4bf2a04a6d28d671f03162149a9 (diff) | |
Go back to stringifying integers/num32s/bytes without the type
constructor.
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 3f477d57..6c38caad 100644 --- a/test/rng.tm +++ b/test/rng.tm @@ -12,23 +12,23 @@ func main(): >> rng:int(1, 1000) = 921 >> rng:int64(1, 1000) - = Int64(324) + = 324 : Int64 >> rng:int32(1, 1000) - = Int32(586) + = 586 : Int32 >> rng:int16(1, 1000) - = Int16(453) + = 453 : Int16 >> rng:int8(1, 100) - = Int8(53) + = 53 : Int8 >> rng:byte() - = Byte(0xDC) + = 0xDC : Byte >> rng:bytes(10) - = [Byte(0xA0), Byte(0x5A), Byte(0x10), Byte(0x3F), Byte(0x6C), Byte(0xD1), Byte(0x35), Byte(0xC2), Byte(0x87), Byte(0x8C)] + = [0xA0, 0x5A, 0x10, 0x3F, 0x6C, 0xD1, 0x35, 0xC2, 0x87, 0x8C] >> rng:bool(p=0.8) = yes >> rng:num() - = 0.03492503353647658 + = 0.03492503353647658 : Num >> rng:num32(1, 1000) - = Num32(761.05908) + = 761.05908 : Num32 !! Random array methods: >> nums := [10*i for i in 10] |
