refactor(tvix): use composition & registry for from_addr
Change-Id: I3c94ecb5958294b5973c6fcdf5ee9c0d37fa54ad Reviewed-on: https://cl.tvl.fyi/c/depot/+/11976 Reviewed-by: flokli <flokli@flokli.de> Tested-by: BuildkiteCI Autosubmit: yuka <yuka@yuka.dev>
This commit is contained in:
parent
79317be214
commit
168e4fda59
18 changed files with 316 additions and 229 deletions
|
|
@ -236,10 +236,9 @@ mod test_builtins {
|
|||
fn deserialize_with_extra_builtin() {
|
||||
let code = "builtins.prependHello \"world\"";
|
||||
|
||||
let result: String = from_str_with_config(code, |eval| {
|
||||
eval.add_builtins(test_builtins::builtins())
|
||||
})
|
||||
.expect("should deserialize");
|
||||
let result: String =
|
||||
from_str_with_config(code, |eval| eval.add_builtins(test_builtins::builtins()))
|
||||
.expect("should deserialize");
|
||||
|
||||
assert_eq!(result, "hello world");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue