From d1626042ea07bbab1a0563ccd7f7337e17936b93 Mon Sep 17 00:00:00 2001 From: xztaityozx Date: Sat, 2 Dec 2023 08:54:29 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20Get-Content=E3=81=AB=E3=82=A8=E3=83=B3?= =?UTF-8?q?=E3=82=B3=E3=83=BC=E3=83=87=E3=82=A3=E3=83=B3=E3=82=B0=E3=82=92?= =?UTF-8?q?=E6=8C=87=E5=AE=9A=E3=81=99=E3=82=8B=E3=81=93=E3=81=A8=E3=81=A7?= =?UTF-8?q?=E5=87=BA=E5=8A=9B=E3=81=AB=E5=A4=B1=E6=95=97=E3=81=97=E3=81=AA?= =?UTF-8?q?=E3=81=84=E3=82=88=E3=81=86=E3=81=AB=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/go.yml | 1 - test/e2e/test.ps1 | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index f0fea8f..48a95cf 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -62,7 +62,6 @@ jobs: working-directory: ./test/e2e/${{ matrix.os }} shell: pwsh run: | - Install-Module -Name Pester -Force Invoke-Pester ../test.ps1 - name: E2E test (bash) diff --git a/test/e2e/test.ps1 b/test/e2e/test.ps1 index 60efa76..89298e9 100644 --- a/test/e2e/test.ps1 +++ b/test/e2e/test.ps1 @@ -4,7 +4,7 @@ $tests = Get-ChildItem '0*' | ForEach-Object { $name=$_.Name; $inputFile="$name/input"; $outputFile="$name/output"; - $arguments=(Get-Content "$name/commandline"); + $arguments=(Get-Content -Encoding utf8 "$name/commandline"); @{ Name = $name; @@ -16,7 +16,7 @@ $tests = Get-ChildItem '0*' | ForEach-Object { Describe 'sel on PowerShell' { It "cat | sel Returns ()" -ForEach $tests { - $expected = Get-Content $outputFile; - Invoke-Expression "Get-Content $inputFile | ../../../dist/sel $arguments" | Should -Be $expected; + $expected = Get-Content -Encoding utf8 $outputFile; + Invoke-Expression "Get-Content -Encoding utf8 $inputFile | ../../../dist/sel $arguments" | Should -Be $expected; } }