diff options
author | Vincent Ambo <mail@tazj.in> | 2021-02-28T11·08+0200 |
---|---|---|
committer | tazjin <mail@tazj.in> | 2021-02-28T11·14+0000 |
commit | 6b990a757186da0f2766fefac53ce5de140d9174 (patch) | |
tree | 6c1f2c140f12a7a700847fda677e9e06610dc689 /users/tazjin/rlox/src/bytecode/mod.rs | |
parent | fd2139ce31a07b2abc56fdf7f15d4fcd1de46c81 (diff) |
test(tazjin/rlox): Add some tests for numerical operations r/2250
If I was adding any dependencies, this might be a good one for a property-based test thing, but I'm not going to. Change-Id: Ia801d041479d1a88c59ef9e0fe1460b3640382e3 Reviewed-on: https://cl.tvl.fyi/c/depot/+/2569 Reviewed-by: tazjin <mail@tazj.in> Tested-by: BuildkiteCI
Diffstat (limited to 'users/tazjin/rlox/src/bytecode/mod.rs')
-rw-r--r-- | users/tazjin/rlox/src/bytecode/mod.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/users/tazjin/rlox/src/bytecode/mod.rs b/users/tazjin/rlox/src/bytecode/mod.rs index 0776225bec91..3c7dad97be3e 100644 --- a/users/tazjin/rlox/src/bytecode/mod.rs +++ b/users/tazjin/rlox/src/bytecode/mod.rs @@ -9,6 +9,9 @@ mod opcode; mod value; mod vm; +#[cfg(test)] +mod tests; + use chunk::Chunk; pub struct Interpreter {} |