// TestFormatTitle checks that a title would be created containing the name
// and the format.
TestFormatTitle checks that a title would be created containing the name
and the format.
// TestFormatTitle checks that a title would be created containing the name // and the format .
func TestFormatTitle(t *testing.T) {
	fakeFilename := filepath.Join("..", "my-dir", "gopher.jpg")
	title := formatTitle(fakeFilename, "JPEG")
	want := "gopher.jpg [JPEG]"
	if title != want {
		t.Fatalf(`title = %q, want %q`, title, want)
	}
}
func TestFormatTitle ( t * testing . T ) { fakeFilename := filepath . Join ( " " , " " , " " ) title := formatTitle ( fakeFilename , " " ) want := " " if title != want { t . Fatalf ( `title = %q, want %q` , title , want ) } }
TestFormatTitle checks that a title would be created containing the name
and the format.
TestFormatTitle checks that a title would be created containing the name and the format .