Either the sphere_sdf fails or generate a function that is invalid and the assertion is triggered, or the assertion is met and the function returns normally.
Results
Fails with SIGSEGV
## Test case
```c++
struct function_test : public test_scaffold {
function_test() {
name = __FILE__ "_function_copy:3";
}
virtual int run() {
int res = 0;
gp::function<float(vec3)> l_sdf_b = gp::sphere_sdf<float>({0.0,0.0,0.0}, 1.0);
gp::function<float(vec3)> sdf = l_sdf_b;
gp_config::assertion(sdf(vec3(0,0,0)) == -1, "Bad sdf");
return res;
}
};
append_test dummy_ml8576f(new function_test{});
```
## Expected result
Either the `sphere_sdf` fails or generate a function that is invalid and the assertion is triggered, or the assertion is met and the function returns normally.
## Results
Fails with SIGSEGV
Archivist
hat sich das Issue vor 4 Jahren selbst zugewiesen
Test case
Expected result
Either the
sphere_sdf
fails or generate a function that is invalid and the assertion is triggered, or the assertion is met and the function returns normally.Results
Fails with SIGSEGV