/*
 * Copyright (c) 2000-2004 by JetBrains s.r.o. All Rights Reserved.
 * Use is subject to license terms.
 */
package com.intellij.compiler;

import com.intellij.openapi.util.io.FileUtil;
import junit.framework.TestCase;

/**
 * @author Eugene Zhuravlev
 *         Date: Mar 10, 2005
 */
public class UtilsTest extends TestCase{
  public void testPathStartsWith() {
    assertTrue(FileUtil.startsWith("/usr/local/jeka", "/usr/local/jeka"));
    assertTrue(FileUtil.startsWith("/usr/local/jeka", "/usr/local/jek"));
    assertTrue(FileUtil.startsWith("/usr/local/jeka", "/usr/local/"));
    assertTrue(FileUtil.startsWith("/usr/local/jeka", "/usr/"));
    assertTrue(FileUtil.startsWith("/usr/local/jeka", "/usr"));
    assertTrue(FileUtil.startsWith("/usr/local/jeka", "/"));

    assertFalse(FileUtil.startsWith("/usr/local/jeka", "/usr/local/aaa"));
    assertFalse(FileUtil.startsWith("/usr/local/jeka", "/usr/local/jeka/"));
    assertFalse(FileUtil.startsWith("/usr/local/jeka", "/aaa"));
  }
}

@@ -439,82 +439,8 @@
 ));%0A
-    assertTrue(FileUtil.startsWith(%22/usr/local/jeka%22, %22/usr/local/jek%22));%0A
     
@@ -697,16 +697,91 @@
 %22/%22));%0A%0A
+    assertFalse(FileUtil.startsWith(%22/usr/local/jeka%22, %22/usr/local/jek%22));%0A
     asse

Test corrected