mirror of
https://github.com/NixOS/nix.git
synced 2025-11-09 12:06:01 +01:00
C API: add more tests
This commit is contained in:
parent
2d84433a3b
commit
926fbadcc3
5 changed files with 112 additions and 72 deletions
|
|
@ -227,7 +227,7 @@ double nix_get_float(nix_c_context * context, const Value * value)
|
|||
assert(v.type() == nix::nFloat);
|
||||
return v.fpoint;
|
||||
}
|
||||
NIXC_CATCH_ERRS_RES(NAN);
|
||||
NIXC_CATCH_ERRS_RES(0.0);
|
||||
}
|
||||
|
||||
int64_t nix_get_int(nix_c_context * context, const Value * value)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue