(t *testing.T)
| 5 | ) |
| 6 | |
| 7 | func TestFormat(t *testing.T) { |
| 8 | expects := "gh version 1.4.0 (2020-12-15)\nhttps://github.com/cli/cli/releases/tag/v1.4.0\n" |
| 9 | if got := format("1.4.0", "2020-12-15", false); got != expects { |
| 10 | t.Errorf("format() = %q, wants %q", got, expects) |
| 11 | } |
| 12 | } |
| 13 | |
| 14 | func TestFormatDebugBuild(t *testing.T) { |
| 15 | expects := "gh version 1.4.0 (2020-12-15) [debug build]\nhttps://github.com/cli/cli/releases/tag/v1.4.0\n" |