mirror of
https://github.com/NixOS/nix
synced 2025-06-27 12:41:15 +02:00
C API: add more tests
This commit is contained in:
parent
2d84433a3b
commit
926fbadcc3
5 changed files with 112 additions and 72 deletions
|
@ -44,7 +44,7 @@ TEST_F(nix_api_expr_test, nix_expr_eval_external)
|
|||
{
|
||||
MyExternalValueDesc * external = new MyExternalValueDesc(42);
|
||||
ExternalValue * val = nix_create_external_value(ctx, external, external);
|
||||
nix_init_external(nullptr, value, val);
|
||||
nix_init_external(ctx, value, val);
|
||||
|
||||
EvalState * stateResult = nix_state_create(nullptr, nullptr, store);
|
||||
Value * valueResult = nix_alloc_value(nullptr, stateResult);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue