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 <tvl@eta.st>
Tested-by: BuildkiteCI
This commit is contained in:
Vincent Ambo 2022-08-10 17:34:16 +03:00 committed by tazjin
parent 08b4d65fbd
commit c7ba2dec04
3 changed files with 62 additions and 0 deletions

View file

@ -11,3 +11,9 @@ impl Display for NixString {
f.write_str(self.0.as_str())
}
}
impl From<&str> for NixString {
fn from(s: &str) -> Self {
NixString(s.to_string())
}
}