package ch.epfl.dlab.quootstrap.test;

import static org.junit.Assert.*;

import org.junit.Test;

import ch.epfl.dlab.quootstrap.StaticRules;

public class TestRules {

	@Test
	public void testCanonical() {
		assertEquals("hi", StaticRules.canonicalizeQuotation("Hi!"));
		assertEquals("hi", StaticRules.canonicalizeQuotation("  Hi!  "));
		assertEquals("h i", StaticRules.canonicalizeQuotation("  H i!  "));
		assertEquals("h i", StaticRules.canonicalizeQuotation("  H   i!  "));
		assertEquals("h i", StaticRules.canonicalizeQuotation("  H   i!  . "));
		
		assertEquals("test", StaticRules.canonicalizeQuotation("tEsT"));
		assertEquals("tst", StaticRules.canonicalizeQuotation("Tst"));
		assertEquals("", StaticRules.canonicalizeQuotation(":"));
		assertEquals("", StaticRules.canonicalizeQuotation("*"));
	}
	
	@Test
	public void testPostProcessor() {
		
	}

}
