From 3830e106e373757ba9edd6e3534583e330096ab4 Mon Sep 17 00:00:00 2001 From: LPeter1997 Date: Sat, 17 May 2025 18:14:33 +0200 Subject: [PATCH 1/7] Update GcdTest.cs --- src/Draco.Chr.Tests/GcdTest.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Draco.Chr.Tests/GcdTest.cs b/src/Draco.Chr.Tests/GcdTest.cs index 5eab196a9..eb66c90b8 100644 --- a/src/Draco.Chr.Tests/GcdTest.cs +++ b/src/Draco.Chr.Tests/GcdTest.cs @@ -28,7 +28,7 @@ public void GreatestCommonDivisor(int n, int m, int expected) Assert.Equal(expected, got); } - [InlineData(3, 5, 1, 1)] + [InlineData(3, 5, 1, 9999)] [InlineData(6, 9, 3, 3)] [InlineData(9, 6, 3, 3)] [InlineData(12, 15, 3, 3)] From 701f46b277af54e311c43f28da6adc6626ab56c5 Mon Sep 17 00:00:00 2001 From: LPeter1997 Date: Sat, 17 May 2025 18:20:04 +0200 Subject: [PATCH 2/7] Update tests.yaml --- .github/workflows/tests.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 01114b72b..5dbfc6edd 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -10,7 +10,7 @@ on: - 'src/**' env: - DOTNET_VERSION: '8.0.x' # The .NET SDK version to use + DOTNET_VERSION: '9.0.x' # The .NET SDK version to use CONFIGURATION: 'Release' # The configuration to use GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -39,6 +39,7 @@ jobs: - name: Build and test shell: pwsh run: | + $ErrorActionPreference = "Stop" ./scripts/install_toolchain.ps1 ./examples dotnet restore ./src dotnet build ./src --configuration ${{ env.CONFIGURATION }} --no-restore From 18db8f83c21b8cd95d0848198bc7e887edeaca4f Mon Sep 17 00:00:00 2001 From: LPeter1997 Date: Sat, 17 May 2025 18:22:14 +0200 Subject: [PATCH 3/7] Revert "Update GcdTest.cs" This reverts commit 3830e106e373757ba9edd6e3534583e330096ab4. --- src/Draco.Chr.Tests/GcdTest.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Draco.Chr.Tests/GcdTest.cs b/src/Draco.Chr.Tests/GcdTest.cs index eb66c90b8..5eab196a9 100644 --- a/src/Draco.Chr.Tests/GcdTest.cs +++ b/src/Draco.Chr.Tests/GcdTest.cs @@ -28,7 +28,7 @@ public void GreatestCommonDivisor(int n, int m, int expected) Assert.Equal(expected, got); } - [InlineData(3, 5, 1, 9999)] + [InlineData(3, 5, 1, 1)] [InlineData(6, 9, 3, 3)] [InlineData(9, 6, 3, 3)] [InlineData(12, 15, 3, 3)] From 6a5425e3a4a27f8229d40b291df9316df679249a Mon Sep 17 00:00:00 2001 From: LPeter1997 Date: Sat, 17 May 2025 18:24:45 +0200 Subject: [PATCH 4/7] Update tests.yaml --- .github/workflows/tests.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 5dbfc6edd..edd7c5e55 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -10,7 +10,7 @@ on: - 'src/**' env: - DOTNET_VERSION: '9.0.x' # The .NET SDK version to use + DOTNET_VERSION: '8.0.x' # The .NET SDK version to use CONFIGURATION: 'Release' # The configuration to use GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 52e874292d18d31515a347f216ec71a1229c9daf Mon Sep 17 00:00:00 2001 From: LPeter1997 Date: Sat, 17 May 2025 18:25:57 +0200 Subject: [PATCH 5/7] Update GcdTest.cs --- src/Draco.Chr.Tests/GcdTest.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Draco.Chr.Tests/GcdTest.cs b/src/Draco.Chr.Tests/GcdTest.cs index 5eab196a9..eb66c90b8 100644 --- a/src/Draco.Chr.Tests/GcdTest.cs +++ b/src/Draco.Chr.Tests/GcdTest.cs @@ -28,7 +28,7 @@ public void GreatestCommonDivisor(int n, int m, int expected) Assert.Equal(expected, got); } - [InlineData(3, 5, 1, 1)] + [InlineData(3, 5, 1, 9999)] [InlineData(6, 9, 3, 3)] [InlineData(9, 6, 3, 3)] [InlineData(12, 15, 3, 3)] From 70110fbcd6ce1837d619cd2c806bd24b45e52dd0 Mon Sep 17 00:00:00 2001 From: LPeter1997 Date: Sat, 17 May 2025 21:02:59 +0200 Subject: [PATCH 6/7] Update tests.yaml --- .github/workflows/tests.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index edd7c5e55..50f1c429c 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -39,11 +39,16 @@ jobs: - name: Build and test shell: pwsh run: | - $ErrorActionPreference = "Stop" ./scripts/install_toolchain.ps1 ./examples dotnet restore ./src dotnet build ./src --configuration ${{ env.CONFIGURATION }} --no-restore + dotnet test ./src --no-build --filter 'FullyQualifiedName!~Draco.Examples.Tests' + if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } + cd ./src/Draco.Examples.Tests + dotnet test --no-build + if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } + cd ../.. From f4ab208b6331030957719003db0df53458d88c92 Mon Sep 17 00:00:00 2001 From: LPeter1997 Date: Sat, 17 May 2025 21:05:18 +0200 Subject: [PATCH 7/7] Revert "Update GcdTest.cs" This reverts commit 52e874292d18d31515a347f216ec71a1229c9daf. --- src/Draco.Chr.Tests/GcdTest.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Draco.Chr.Tests/GcdTest.cs b/src/Draco.Chr.Tests/GcdTest.cs index eb66c90b8..5eab196a9 100644 --- a/src/Draco.Chr.Tests/GcdTest.cs +++ b/src/Draco.Chr.Tests/GcdTest.cs @@ -28,7 +28,7 @@ public void GreatestCommonDivisor(int n, int m, int expected) Assert.Equal(expected, got); } - [InlineData(3, 5, 1, 9999)] + [InlineData(3, 5, 1, 1)] [InlineData(6, 9, 3, 3)] [InlineData(9, 6, 3, 3)] [InlineData(12, 15, 3, 3)]