Sha256: 6dca28bd9c3c0d3e77ac58d31fbbfbe0fe525c16e9d8d7fa54b8c69deb8b7ddb

Contents?: true

Size: 846 Bytes

Versions: 9

Compression:

Stored size: 846 Bytes

Contents

# frozen_string_literal: true

require_relative 'helper'

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

  assert_methods_are_deterministic(
    FFakerTW::DizzleIpsum,
    :paragraph, :sentence, :paragraphs, :sentences, :words, :word
  )

  def test_paragraph
    assert_match(/1\+|[ a-z]+/i, FFakerTW::DizzleIpsum.paragraph)
  end

  def test_sentence
    assert_match(/1\+|[ a-z]+/i, FFakerTW::DizzleIpsum.sentence)
  end

  def test_paragraphs
    assert_match(/1\+|[ a-z]+/i, FFakerTW::DizzleIpsum.paragraphs.join(' '))
  end

  def test_sentences
    assert_match(/1\+|[ a-z]+/i, FFakerTW::DizzleIpsum.sentences.join(' '))
  end

  def test_words
    assert_match(/1\+|[ a-z]+/i, FFakerTW::DizzleIpsum.words.join(' '))
  end

  def test_word
    assert_match(/1\+|[a-z]+/i, FFakerTW::DizzleIpsum.word)
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

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