Skip to content

Commit

Permalink
fixed issue 112
Browse files Browse the repository at this point in the history
  • Loading branch information
hoene committed Mar 1, 2020
1 parent c29fb75 commit 2a7ab79
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
7 changes: 3 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ if(BUILD_TESTS)
82
83
84)
# issues with osx 96)
# issues with osx 96)
add_test(fail-issue-${ISSUE} ../tests/notcrashed.sh
../tests/fail-issue-${ISSUE})
endforeach(ISSUE)
Expand All @@ -79,9 +79,8 @@ if(BUILD_TESTS)
../tests/example_dummy_sofa48)
add_test(TestSOFA48_netcdf472 ../tests/compare.sh
../tests/TestSOFA48_netcdf472)
add_test(ignore_user_defined_variable ./src/mysofa2json
../tests/example_dummy_sofa48_with_user_defined_variable.sofa)

add_test(example_dummy_sofa48_with_user_defined_variable ../tests/compare.sh
../tests/example_dummy_sofa48_with_user_defined_variable)
endif(BUILD_TESTS)

add_subdirectory(src)
Expand Down
8 changes: 8 additions & 0 deletions src/tests/json.c
Original file line number Diff line number Diff line change
Expand Up @@ -232,5 +232,13 @@ void printJson(FILE *out, struct MYSOFA_HRTF *hrtf, int sanitize) {
sanitize))
fprintf(out, ",\n");
printArray(out, hrtf, &hrtf->DataDelay, "Data.Delay", sanitize);

struct MYSOFA_VARIABLE *node = hrtf->variables;
while (node) {
fprintf(out, ",\n");
printArray(out, hrtf, hrtf->variables->value, hrtf->variables->name,
sanitize);
node = node->next;
}
fprintf(out, " }\n}\n");
}

0 comments on commit 2a7ab79

Please sign in to comment.