@Test
public void testCompileFileSassSpec() throws Exception {

	SassCompiler sassCompiler = new JniSassCompiler();
	Class<?> clazz = getClass();
	URL url = clazz.getResource("dependencies/sass-spec");
	File sassSpecDir = new File(url.toURI());
	for (File testDir : sassSpecDir.listFiles()) {
		File inputFile = new File(testDir, "input.scss");
		String dirName = testDir.getName();
		if (!inputFile.exists() || dirName.endsWith("-4.0")) {
			continue;
		}
		String actualOutput = sassCompiler.compileFile(
			inputFile.getCanonicalPath(), "", false);
		Assert.assertNotNull("Testing: " + dirName, actualOutput);
		File expectedOutputFile = new File(testDir, "expected_output.css");
		String expectedOutput = read(expectedOutputFile.toPath());
		Assert.assertEquals(
			"Testing: " + dirName, stripNewLines(expectedOutput),
			stripNewLines(actualOutput));
	}
}