Skip to content

Commit 36b589d

Browse files
authored
Merge pull request #12 from PANFACTORY/feature/ci
Feature/ci
2 parents edbb7b9 + 5a5ba03 commit 36b589d

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/cmake.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@ name: CMake
22

33
on:
44
push:
5-
branches: [ "master" ]
5+
branches: [ "main" ]
66
pull_request:
7-
branches: [ "master" ]
7+
branches: [ "main" ]
88
workflow_dispatch:
99

1010
env:
1111
BUILD_TYPE: Release
1212

1313
jobs:
14-
build:
14+
test:
1515
timeout-minutes: 10
1616
runs-on: ubuntu-latest
1717

@@ -26,4 +26,4 @@ jobs:
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

src/lexer.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)