2
0
mirror of https://github.com/rehlds/rehlds.git synced 2025-01-14 15:48:04 +03:00

workflows/build.yml: remove nuget

info_tests.cpp: fix warning
This commit is contained in:
s1lentq 2021-04-22 02:25:10 +07:00
parent 6a916d766b
commit ebefe19023
2 changed files with 2 additions and 12 deletions

View File

@ -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/setup-msbuild@v1.0.2
with:
vs-version: '16.8'
- name: Build and Run unittests
run: |

View File

@ -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);
}
}
@ -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);
}