Files
wren/test/random/sample_count_too_many.wren

6 lines
144 B
Plaintext
Raw Normal View History

import "random" for Random
var random = Random.new(12345)
random.sample([1, 2, 3], 4) // expect runtime error: Not enough elements to sample.