package com.sonie.web.util;

import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;

import java.util.regex.Pattern;

import org.junit.Test;

public class TwitterUtilTest {

	@Test
	public void testRegex() {
		assertTrue(Pattern.matches(".*[AboveAndBeyond]+.*", "Heja #AboveAndBeyond!!"));
		assertFalse(Pattern.matches(".*Saturday.*", "went with @SonieTV for a fun night rides after a first snow"));
	}
}

@@ -292,12 +292,12 @@
 %22, %22
-Heja
+Gogo
  #Ab
@@ -366,67 +366,33 @@
 %22, %22
-went with @SonieTV for a fun night rides after a first snow
+What a lovely day this is
 %22));

Clean up