Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
barkhayot committed Dec 15, 2024
1 parent 0485ce3 commit e850ea8
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions music_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ func ExampleMusic() {
fmt.Println(music.Artist)
fmt.Println(music.Genre)

// Output: The Terminator
// Sport
// Output: Rags2Riches
// The Scotts (Travis Scott and Kid Cudi)
// Electronic Dance Music (EDM)
}

func ExampleFaker_Music() {
Expand All @@ -23,8 +24,9 @@ func ExampleFaker_Music() {
fmt.Println(music.Artist)
fmt.Println(music.Genre)

// Output: The Terminator
// Sport
// Output: Rags2Riches
// The Scotts (Travis Scott and Kid Cudi)
// Electronic Dance Music (EDM)
}

func BenchmarkMusic(b *testing.B) {
Expand All @@ -43,14 +45,14 @@ func ExampleMusicName() {
Seed(11)
fmt.Println(MusicName())

// Output: The Terminator
// Output: Rags2Riches
}

func ExampleFaker_MusicName() {
f := New(11)
fmt.Println(f.MusicName())

// Output: The Terminator
// Output: Rags2Riches
}

func BenchmarkMusicName(b *testing.B) {
Expand All @@ -63,14 +65,14 @@ func ExampleMusicArtist() {
Seed(11)
fmt.Println(MusicArtist())

// Output: Thriller
// Output: Rod Wave featuring ATR Son Son
}

func ExampleFaker_MusicArtist() {
f := New(11)
fmt.Println(f.MusicArtist())

// Output: Thriller
// Output: Rod Wave featuring ATR Son Son
}

func BenchmarkMusicArtist(b *testing.B) {
Expand All @@ -83,14 +85,14 @@ func ExampleMusicGenre() {
Seed(11)
fmt.Println(MusicGenre())

// Output: Thriller
// Output: Lo-fi Hip-Hop
}

func ExampleFaker_MusicGenre() {
f := New(11)
fmt.Println(f.MusicGenre())

// Output: Thriller
// Output: Lo-fi Hip-Hop
}

func BenchmarkMusicGenre(b *testing.B) {
Expand Down

0 comments on commit e850ea8

Please sign in to comment.