File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,16 +2,16 @@ name: CMake
22
33on :
44 push :
5- branches : [ "master " ]
5+ branches : [ "main " ]
66 pull_request :
7- branches : [ "master " ]
7+ branches : [ "main " ]
88 workflow_dispatch :
99
1010env :
1111 BUILD_TYPE : Release
1212
1313jobs :
14- build :
14+ test :
1515 timeout-minutes : 10
1616 runs-on : ubuntu-latest
1717
2626
2727 - name : Test
2828 working-directory : ${{github.workspace}}/build
29- run : ctest -C ${{env.BUILD_TYPE}}
29+ run : ctest -C ${{env.BUILD_TYPE}} --rerun-failed --output-on-failure
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ namespace JsonParser {
6565 case ' 8' :
6666 case ' 9' :
6767 {
68- std::string str (& ch);
68+ std::string str (1 , ch);
6969 ch = ss.get ();
7070 while (!ss.eof () && ch != ' }' && ch != ' ,' && ch != ' ]' ) {
7171 str += ch;
@@ -82,7 +82,7 @@ namespace JsonParser {
8282 case ' f' :
8383 case ' n' :
8484 {
85- std::string str (& ch);
85+ std::string str (1 , ch);
8686 ch = ss.get ();
8787 while (!ss.eof () && ch != ' }' && ch != ' ,' && ch != ' ]' ) {
8888 str += ch;
You can’t perform that action at this time.
0 commit comments