diff options
author | Vincent Ambo <mail@tazj.in> | 2021-01-14T00·48+0300 |
---|---|---|
committer | tazjin <mail@tazj.in> | 2021-01-14T00·52+0000 |
commit | f4a6e9f133097986cd59cc2206e9c35d2f320071 (patch) | |
tree | a3a116c7adde65dc91f1269f200f2e949f9cc736 /users/tazjin/rlox/src/interpreter.rs | |
parent | 0c1c4584cb46cc3564f4d18bd3f451e648c413b6 (diff) |
test(tazjin/rlox): Add a handful of interpreter tests r/2100
Change-Id: I32dd896d42cc73d68d73093e9cbb74b48d95e041 Reviewed-on: https://cl.tvl.fyi/c/depot/+/2386 Reviewed-by: tazjin <mail@tazj.in> Tested-by: BuildkiteCI
Diffstat (limited to 'users/tazjin/rlox/src/interpreter.rs')
-rw-r--r-- | users/tazjin/rlox/src/interpreter.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/users/tazjin/rlox/src/interpreter.rs b/users/tazjin/rlox/src/interpreter.rs index 744e6ea89552..cccc381b3258 100644 --- a/users/tazjin/rlox/src/interpreter.rs +++ b/users/tazjin/rlox/src/interpreter.rs @@ -8,6 +8,9 @@ use std::sync::RwLock; // Implementation of built-in functions. mod builtins; +#[cfg(test)] +mod tests; + // Tree-walk interpreter // Representation of all callables, including builtins & user-defined |