| 1 | package sessiontitle |
| 2 | |
| 3 | import "testing" |
| 4 | |
| 5 | func TestIncreaseFork(t *testing.T) { |
| 6 | tests := map[string]string{ |
| 7 | "": "", |
| 8 | "Roadmap": "Roadmap (1)", |
| 9 | "Roadmap (1)": "Roadmap (2)", |
| 10 | "计划(1)": "计划(2)", |
| 11 | "计划 (9)": "计划 (10)", |
| 12 | "Archive (notes)": "Archive (notes) (1)", |
| 13 | "Huge (999999999999999999999)": "Huge (1000000000000000000000)", |
| 14 | } |
| 15 | for input, want := range tests { |
| 16 | if got := IncreaseFork(input); got != want { |
| 17 | t.Errorf("IncreaseFork(%q) = %q, want %q", input, got, want) |
| 18 | } |
| 19 | } |
| 20 | } |
| 21 |