Sha256: fe52c9e6fc3e2577a0882268868db9ca213bc44e049e58aa1e431c791fab53ec

Contents?: true

Size: 496 Bytes

Versions: 2

Compression:

Stored size: 496 Bytes

Contents

require_relative 'test_helper'

class TestMrkvChain <  Minitest::Test

  def setup
    @chain = Mrkv::Chain.new(2)
    @chain.add ['i like cats; and "i dislike" bad people.',
                "I like: 'pizza bagels?'",
                'I   LiKe,    pookie and ice cream too!']
  end

  def test_it_generates_capitalized_sentences
    assert_match /^I like \w+/, (@chain.generate)
  end

  def test_it_generates_end_punctuated_sentences
    assert_match /(\.|\?|\!)$/, (@chain.generate)
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mrkv-0.1.1 test/mrkv_test.rb
mrkv-0.1.0 test/mrkv_test.rb