Skip to content

Commit 47aa77e

Browse files
dmitshurgopherbot
authored andcommitted
cmd/golangorg, internal/history: add test case for Go 1.21.0
Go 1.21.0 is the first major Go release that explicitly includes the trailing ".0" version component. Add a test case covering changes to the history.Version type and the template that uses it. For golang/go#57631. Change-Id: I97581b650604c25b6996305ecf4ad9d883cd85ba Reviewed-on: https://go-review.googlesource.com/c/website/+/497498 Reviewed-by: Heschi Kreinick <[email protected]> Run-TryBot: Dmitri Shuralyov <[email protected]> Auto-Submit: Dmitri Shuralyov <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> TryBot-Result: Gopher Robot <[email protected]>
1 parent 5872eae commit 47aa77e

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

cmd/golangorg/testdata/release.txt

+9-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
GET https://go.dev/doc/devel/release
22
header content-type == text/html; charset=utf-8
33
trimbody contains
4-
<h2 id="go1.19">go1.19 (released 2022-08-02)</h2>
4+
<h2 id="go1.21.0">go1.21.0 (released 2023-08-08)</h2>
55
<p>
6-
Go 1.19 is a major release of Go.
7-
Read the <a href="/doc/go1.19">Go 1.19 Release Notes</a> for more information.
6+
Go 1.21.0 is a major release of Go.
7+
Read the <a href="/doc/go1.21">Go 1.21 Release Notes</a> for more information.
8+
</p>
9+
trimbody contains
10+
<h2 id="go1.20">go1.20 (released 2023-02-01)</h2>
11+
<p>
12+
Go 1.20 is a major release of Go.
13+
Read the <a href="/doc/go1.20">Go 1.20 Release Notes</a> for more information.
814
</p>
915
trimbody contains
1016
<h2 id="go1.18">go1.18 (released 2022-03-15)</h2>

0 commit comments

Comments
 (0)