mirror of
https://github.com/NixOS/nix
synced 2025-07-06 21:41:48 +02:00
Slightly change formatting style
For long expressions, one argument or parameter per line is just easier.
This commit is contained in:
parent
bd7a074636
commit
1d6c2316a9
6 changed files with 44 additions and 15 deletions
|
@ -256,10 +256,13 @@ TEST_F(nix_api_expr_test, nix_value_init)
|
|||
|
||||
Value * f = nix_alloc_value(ctx, state);
|
||||
nix_expr_eval_from_string(
|
||||
ctx, state, R"(
|
||||
ctx,
|
||||
state,
|
||||
R"(
|
||||
a: a * a
|
||||
)",
|
||||
"<test>", f);
|
||||
"<test>",
|
||||
f);
|
||||
|
||||
// Test
|
||||
|
||||
|
@ -325,20 +328,26 @@ TEST_F(nix_api_expr_test, nix_value_init_apply_lazy_arg)
|
|||
|
||||
Value * f = nix_alloc_value(ctx, state);
|
||||
nix_expr_eval_from_string(
|
||||
ctx, state, R"(
|
||||
ctx,
|
||||
state,
|
||||
R"(
|
||||
a: { foo = a; }
|
||||
)",
|
||||
"<test>", f);
|
||||
"<test>",
|
||||
f);
|
||||
assert_ctx_ok();
|
||||
|
||||
Value * e = nix_alloc_value(ctx, state);
|
||||
{
|
||||
Value * g = nix_alloc_value(ctx, state);
|
||||
nix_expr_eval_from_string(
|
||||
ctx, state, R"(
|
||||
ctx,
|
||||
state,
|
||||
R"(
|
||||
_ignore: throw "error message for test case nix_value_init_apply_lazy_arg"
|
||||
)",
|
||||
"<test>", g);
|
||||
"<test>",
|
||||
g);
|
||||
assert_ctx_ok();
|
||||
|
||||
nix_init_apply(ctx, e, g, g);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue