Skip to content

Commit

Permalink
Merge pull request #94 from traPtitech/patch-2-3
Browse files Browse the repository at this point in the history
patch 2-3
  • Loading branch information
ikura-hamu authored Jul 20, 2023
2 parents d9d18b1 + 22d2796 commit 84540bd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
15 changes: 8 additions & 7 deletions docs/chapter2/section3/1_ci.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 ./...
```
Expand All @@ -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 ./...
```
Expand All @@ -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 ./...
```
Expand All @@ -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 ./...
```
Expand All @@ -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 ./...
```
Expand Down Expand Up @@ -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 ./...
```
Expand Down Expand Up @@ -199,10 +199,11 @@ on:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
- 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
```
Expand Down
2 changes: 1 addition & 1 deletion docs/chapter2/section3/src/calculate_population_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 84540bd

Please sign in to comment.