@@ -0,0 +1,1403 @@
+package mobi.hsz.idea.gitignore.completion;%0A%0Aimport com.intellij.testFramework.fixtures.LightPlatformCodeInsightFixtureTestCase;%0Aimport mobi.hsz.idea.gitignore.file.GitignoreFileType;%0Aimport org.jetbrains.annotations.NotNull;%0A%0Aimport java.io.IOException;%0A%0Apublic class CompletionTest extends LightPlatformCodeInsightFixtureTestCase %7B%0A    public void testSimple() %7B%0A        myFixture.getTempDirFixture().createFile(%22fileName.txt%22);%0A        doTest(%22fileN%3Ccaret%3E%22, %22fileName.txt%3Ccaret%3E%22);%0A    %7D%0A%0A    public void testCurrentDirectoryAlias() throws IOException %7B%0A        myFixture.getTempDirFixture().createFile(%22fileName.txt%22);%0A        doTest(%22./fileN%3Ccaret%3E%22, %22./fileName.txt%3Ccaret%3E%22);%0A    %7D%0A%0A    public void testNestedDirectory() throws IOException %7B%0A        myFixture.getTempDirFixture().findOrCreateDir(%22dir%22).createChildData(this, %22fileName.txt%22);%0A        doTest(%22dir/fileN%3Ccaret%3E%22, %22dir/fileName.txt%3Ccaret%3E%22);%0A    %7D%0A%0A    public void testInHiddenDirectory() throws IOException %7B%0A        myFixture.getTempDirFixture().findOrCreateDir(%22.hidden%22).createChildData(this, %22fileName.txt%22);%0A        doTest(%22.hidden/fileN%3Ccaret%3E%22, %22.hidden/fileName.txt%3Ccaret%3E%22);%0A    %7D%0A%0A    private void doTest(@NotNull String beforeText, @NotNull String afterText) %7B%0A        myFixture.configureByText(GitignoreFileType.INSTANCE, beforeText);%0A        myFixture.completeBasic();%0A        myFixture.checkResult(afterText);%0A    %7D%0A%7D%0A

Add completion tests