package com.noradltd.cucumberjvm.demo;

import static org.hamcrest.Matchers.is;
import static org.junit.Assert.assertThat;

import org.junit.Test;

public class MultipleWordReversal {

	private String reverse(String input) {
		return new StringReverser().reverse(input);
	}
	
	@Test
	public void helloWorldReversesToWorldHello() {
		assertThat(reverse("Hello World"), is("World Hello"));
	}
	
	@Test
	public void handlesMultipleWhitespaces() {
		assertThat(reverse("Hello  World"), is("World  Hello"));
	}
}

@@ -499,10 +499,200 @@
 %22));%0A%09%7D%0A
+%09%0A%09@Test%0A%09public void handlesSeveralWords() %7B%0A%09%09assertThat(reverse(%22Bacon is the life blood of Agile Software Development%22), is(%22Development Software Agile of blood life the is Bacon%22));%0A%09%7D%0A
 %7D%0A

more complicated string