Skip to content

Commit

Permalink
workflows/build.yml: remove nuget
Browse files Browse the repository at this point in the history
info_tests.cpp: fix warning
  • Loading branch information
s1lentq committed Apr 21, 2021
1 parent 6a916d7 commit ebefe19
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
10 changes: 0 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,8 @@ jobs:
with:
fetch-depth: 0

- name: Setup Nuget
uses: nuget/setup-nuget@v1
with:
nuget-api-key: ${{ secrets.NuGetAPIKey }}
nuget-version: '5.x'

- run: nuget restore '${{ env.solution }}'

- name: Setup MSBuild
uses: microsoft/[email protected]
with:
vs-version: '16.8'

- name: Build and Run unittests
run: |
Expand Down
4 changes: 2 additions & 2 deletions rehlds/unittests/info_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ TEST(SetValueForStarKeyResult, Info, 1000) {
char localInfo[256];
strcpy(localInfo, d->initialInfo);
localInfo[255] = 0;
bool result = Info_SetValueForStarKey(localInfo, d->key, d->value, 256);
bool result = Info_SetValueForStarKey(localInfo, d->key, d->value, 256) ? true : false;
CHECK("Invalid info string", d->success == result);
}
}
Expand Down Expand Up @@ -301,7 +301,7 @@ TEST(Info_IsKeyImportant, Info, 1000)
for (int i = 0; i < ARRAYSIZE(testdata); i++) {
testdata_t* d = &testdata[i];

bool result = Info_IsKeyImportant(d->key);
bool result = Info_IsKeyImportant(d->key) ? true : false;

CHECK("wrong result", d->result == result);
}
Expand Down

0 comments on commit ebefe19

Please sign in to comment.