Sha256: 8fb9a5e5a78102c0ef9fd90095403cd773cff48b38be27e6f0e96740be849177

Contents?: true

Size: 594 Bytes

Versions: 9

Compression:

Stored size: 594 Bytes

Contents

# frozen_string_literal: true

require_relative 'helper'

class TestMusic < Test::Unit::TestCase
  include DeterministicHelper

  assert_methods_are_deterministic(
    FFakerTW::Music,
    :genre, :album, :artist, :song
  )

  def test_genre
    assert_match(%r{[A-z]|\W|&/+}, FFakerTW::Music.genre)
  end

  def test_album
    assert_match(/\s|[A-z]|\W|\d|'|\?+/, FFakerTW::Music.album)
  end

  def test_artist
    assert_match(/\s|[A-z]|\W|\d|'|\?|&|\+|\.|-+/, FFakerTW::Music.artist)
  end

  def test_song
    assert_match(/\s|[A-z]|\W|\d|'|\?|&|\+|\.|-+/, FFakerTW::Music.song)
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
ffakerTW-1.8.0 test/test_music.rb
ffakerTW-1.7.0 test/test_music.rb
ffakerTW-1.6.0 test/test_music.rb
ffakerTW-1.5.0 test/test_music.rb
ffakerTW-1.4.0 test/test_music.rb
ffakerTW-1.3.0 test/test_music.rb
ffakerTW-1.2.0 test/test_music.rb
ffakerTW-1.1.0 test/test_music.rb
ffakerTW-0.1.0 test/test_music.rb