@@ -0,0 +1,1320 @@
+package com.sleekbyte.tailor.grammar;%0A%0Aimport com.sleekbyte.tailor.Tailor;%0Aimport org.junit.After;%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0Aimport java.io.*;%0A%0Aimport static org.junit.Assert.assertEquals;%0A%0Apublic class GrammarTest %7B%0A%0A    protected static final String TEST_INPUT_DIR = %22src/test/java/com/sleekbyte/tailor/grammar/%22;%0A    protected static final String NEWLINE_REGEX = %22%5C%5Cr?%5C%5Cn%22;%0A%0A    protected ByteArrayOutputStream errContent;%0A    protected ByteArrayOutputStream outContent;%0A    protected File%5B%5D swiftFiles;%0A%0A    @Before%0A    public void setUp() %7B%0A        File curDir = new File(TEST_INPUT_DIR);%0A        swiftFiles = curDir.listFiles((File file, String name) -%3E name.endsWith(%22.swift%22));%0A        outContent = new ByteArrayOutputStream();%0A        System.setOut(new PrintStream(outContent));%0A    %7D%0A%0A    @After%0A    public void tearDown() %7B%0A        System.setOut(null);%0A    %7D%0A%0A    @Test%0A    public void testRule() throws IOException %7B%0A        for ( File swiftFile: swiftFiles) %7B%0A            errContent = new ByteArrayOutputStream();%0A            System.setErr(new PrintStream(errContent));%0A            String%5B%5D command = %7B (TEST_INPUT_DIR + swiftFile.getName()) %7D;%0A            Tailor.main(command);%0A            assertEquals(errContent.toString(), %22%22);%0A            System.setErr(null);%0A        %7D%0A    %7D%0A%0A%7D%0A

Add test to check if snippets parse correctly