1
0
mirror of https://github.com/janet-lang/janet synced 2024-12-25 07:50:27 +00:00
janet/test
Calvin Rose aee1687215 Add RNG functionality to the math/ module.
The new RNG wraps up state for random number generation, so
one can have many rngs and even marshal and unmarshal them.
Adds math/rng, math/rng-uniform, and math/rng-int.

Also introduce `in` and change semantics for
indexing out of range. This commit enforces stricter
invariants on keys when indexing via a function call
on the data structure, or the new `in` function.

The `get` function is now more lax about keys, and will
not throw an error when a bad key is used for a data structure, instead
returning the default value.
2019-11-08 17:40:04 -06:00
..
amalg Add some tests for the amalgamated source/ 2019-05-23 10:34:01 -04:00
install Fix test-install after removing cook. 2019-08-28 21:05:34 -05:00
helper.janet Update issue 53 regression test. 2019-02-21 19:19:47 -05:00
suite0.janet Update regression test. 2019-07-07 23:23:45 -05:00
suite1.janet Update module system. 2019-06-18 22:10:13 -04:00
suite2.janet Disallow the empty string for some string fns. 2019-09-24 13:23:18 -05:00
suite3.janet Add compile time arity checking. 2019-09-30 19:50:42 -05:00
suite4.janet Update module system. 2019-06-18 22:10:13 -04:00
suite5.janet Use :length method for (length abstract) 2019-09-08 19:26:16 -05:00
suite6.janet Add options to not include docstrings in binary. 2019-06-19 19:43:38 -04:00
suite7.janet Add RNG functionality to the math/ module. 2019-11-08 17:40:04 -06:00