import spock.lang.Specification

class ScramblerTest extends Specification {
	def scrambler
  def FINNISH = "finnish"

	def setup() {
		scrambler = new Scrambler()
	}
	
	def "canary"() {
		expect:
		  true == true
	}
	
	def "scrambled word has same length"() {
		expect:
		  scrambler.scramble(FINNISH).length() == FINNISH.length()
	}

	def "scrambled word is different"() {
		expect:
		  scrambler.scramble(FINNISH) != FINNISH
	}
	
	def "scramble word is not repeated"() {
		expect:
		  scrambler.scramble(FINNISH) != scrambler.scramble(FINNISH)
	}
}