robertdebock / rhyme

A repository to test if text is in a rhyming form.
Apache License 2.0
3 stars 2 forks source link

Build Status

rhyme

A repository to test if text is in a rhyming form.

Testing your text

Simply edit (forking is fine) the "rhyme.txt" and Travis will verify that your text is a proper rhyme.

There are a few levels of rhyme:

Making it easier

In my personal opinion you're safe using level 1 and 2, so you can skip levels 3 and 4 by adding "skip" to the file tests/rhyme.bats:

@test "Check three letter rhyme." {
  skip "I need to finish my rhyme quickly, so skipping 3 letter rhymes."
  cat analysis3.txt | while read first second rest ; do 
    [ "$first" = "$second" ]
  done
}

@test "Check four letter rhyme." {
  skip "FOUR LETTER RHYMES, WHAT THE F**K."
  cat analysis4.txt | while read first second rest ; do 
    [ "$first" = "$second" ]
  done
}