From c7ba2dec04c9c0bf7558285ed7d434e61ee5e5b5 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Wed, 10 Aug 2022 17:34:16 +0300 Subject: test(tvix/value): add simple attrset construction tests These do not yet test nested attribute sets; we need to add some more inspection primitives first. Change-Id: Icfc99bf17c73ebefc0d882a84f0ca73ec688a54d Reviewed-on: https://cl.tvl.fyi/c/depot/+/6110 Reviewed-by: eta Tested-by: BuildkiteCI --- tvix/eval/src/value/attrs.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tvix/eval/src/value/attrs.rs') diff --git a/tvix/eval/src/value/attrs.rs b/tvix/eval/src/value/attrs.rs index 209f97778c60..75ade6a89a9f 100644 --- a/tvix/eval/src/value/attrs.rs +++ b/tvix/eval/src/value/attrs.rs @@ -14,6 +14,9 @@ use crate::errors::{Error, EvalResult}; use super::string::NixString; use super::Value; +#[cfg(test)] +mod tests; + #[derive(Clone, Debug)] pub enum NixAttrs { Empty, -- cgit 1.4.1