use of com.google.devtools.build.lib.vfs.inmemoryfs.InMemoryFileSystem in project bazel by bazelbuild.
the class PathFragmentTest method testEqualsAndHashCode.
@Test
public void testEqualsAndHashCode() {
InMemoryFileSystem filesystem = new InMemoryFileSystem();
new EqualsTester().addEqualityGroup(new PathFragment("../relative/path"), new PathFragment("..").getRelative("relative").getRelative("path"), new PathFragment('\0', false, new String[] { "..", "relative", "path" }), new PathFragment(new File("../relative/path"))).addEqualityGroup(new PathFragment("something/else")).addEqualityGroup(new PathFragment("/something/else")).addEqualityGroup(new PathFragment("/"), new PathFragment("//////")).addEqualityGroup(new PathFragment(""), PathFragment.EMPTY_FRAGMENT).addEqualityGroup(// A Path object.
filesystem.getRootDirectory()).testEquals();
}
Aggregations