From 22fcd5c6fb7e33ae926a26dbb75dc3e6fca5f2f1 Mon Sep 17 00:00:00 2001 From: nokhnaton <104210327+nokhnaton@users.noreply.github.com> Date: Thu, 20 Jul 2023 20:43:29 +0900 Subject: [PATCH 1/3] Update calculate_population_test.go --- docs/chapter2/section3/src/calculate_population_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/chapter2/section3/src/calculate_population_test.go b/docs/chapter2/section3/src/calculate_population_test.go index a7d7d1c7..b5586605 100644 --- a/docs/chapter2/section3/src/calculate_population_test.go +++ b/docs/chapter2/section3/src/calculate_population_test.go @@ -10,7 +10,7 @@ func Test_calculatePopulation(t *testing.T) { cities := []City{} got := calculatePopulation(cities) want := map[string]int64{} - // 長さが0になっているかどうかを確認する + // 長さが等しいかを確認する if len(got) != 0 { t.Errorf("calculatePopulation(%v) = %v, want %v", cities, got, want) } From 4795e6026bd351acb9bda2a60da4762dc54b88f5 Mon Sep 17 00:00:00 2001 From: nokhnaton <104210327+nokhnaton@users.noreply.github.com> Date: Thu, 20 Jul 2023 20:59:10 +0900 Subject: [PATCH 2/3] Update 1_ci.md --- docs/chapter2/section3/1_ci.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/chapter2/section3/1_ci.md b/docs/chapter2/section3/1_ci.md index f71c10d6..28eca0e6 100644 --- a/docs/chapter2/section3/1_ci.md +++ b/docs/chapter2/section3/1_ci.md @@ -36,7 +36,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: - go-version: 1.20 + go-version: "1.20" - name: Run tests run: go test ./... ``` @@ -61,7 +61,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: - go-version: 1.20 + go-version: "1.20" - name: Run tests run: go test ./... ``` @@ -88,7 +88,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: - go-version: 1.20 + go-version: "1.20" - name: Run tests run: go test ./... ``` @@ -112,7 +112,7 @@ jobs: // [!code focus:11] - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: - go-version: 1.20 + go-version: "1.20" - name: Run tests run: go test ./... ``` @@ -137,7 +137,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: - go-version: 1.20 + go-version: "1.20" - name: Run tests run: go test ./... ``` @@ -165,7 +165,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: - go-version: 1.20 + go-version: "1.20" - name: Run tests run: go test ./... ``` @@ -202,7 +202,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: - go-version: 1.20 + go-version: "1.20" - run: go mod download - run: go build ``` From 22d27966d16ed372ba6007c3bf209c5b5d78a862 Mon Sep 17 00:00:00 2001 From: nokhnaton <104210327+nokhnaton@users.noreply.github.com> Date: Thu, 20 Jul 2023 21:04:02 +0900 Subject: [PATCH 3/3] Update 1_ci.md --- docs/chapter2/section3/1_ci.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/chapter2/section3/1_ci.md b/docs/chapter2/section3/1_ci.md index 28eca0e6..b2157e66 100644 --- a/docs/chapter2/section3/1_ci.md +++ b/docs/chapter2/section3/1_ci.md @@ -199,6 +199,7 @@ on: pull_request: jobs: build: + runs-on: ubuntu-latest - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: