We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6ca9bd commit ae9741eCopy full SHA for ae9741e
.github/workflows/c-cpp.yml
@@ -41,6 +41,16 @@ jobs:
41
working-directory: ./build
42
run: ./demo_cpp
43
44
+ - name: Compare demo outputs
45
+ run: |
46
+ ./demo > output1.txt
47
+ ./demo_cpp > output2.txt
48
+ if ! diff -q output1.txt output2.txt; then
49
+ echo "Outputs differ!"
50
+ diff output1.txt output2.txt
51
+ exit 1
52
+ fi
53
+
54
- name: Run Tests
55
56
run: ./json_parser_tests
demo.c
@@ -51,7 +51,7 @@ int main()
break;
case JSON_TOKEN_NUMBER:
- printf("Number: %f\n", t->value.number);
+ printf("Number: %g\n", t->value.number);
57
case JSON_TOKEN_TRUE:
0 commit comments