From ebefe19023670548cfcdbc662d09276c22c57776 Mon Sep 17 00:00:00 2001 From: s1lentq Date: Thu, 22 Apr 2021 02:25:10 +0700 Subject: [PATCH] workflows/build.yml: remove nuget info_tests.cpp: fix warning --- .github/workflows/build.yml | 10 ---------- rehlds/unittests/info_tests.cpp | 4 ++-- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 02c1eda..7f2d8af 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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: | diff --git a/rehlds/unittests/info_tests.cpp b/rehlds/unittests/info_tests.cpp index bd8dc0c..87d0479 100644 --- a/rehlds/unittests/info_tests.cpp +++ b/rehlds/unittests/info_tests.cpp @@ -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); }