Skip to content
This repository was archived by the owner on Sep 8, 2019. It is now read-only.

Commit 19b6a75

Browse files
committed
Add test on large less
1 parent bc42776 commit 19b6a75

File tree

2 files changed

+415
-0
lines changed

2 files changed

+415
-0
lines changed

src/test/java/net/codestory/http/compilers/LessCompilerTest.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
*/
1616
package net.codestory.http.compilers;
1717

18+
import static java.lang.ClassLoader.*;
19+
import static java.nio.charset.StandardCharsets.*;
20+
import static net.codestory.http.io.InputStreams.*;
1821
import static org.assertj.core.api.Assertions.*;
1922

2023
import java.io.*;
@@ -43,6 +46,13 @@ public void to_css() throws IOException {
4346
assertThat(css).isEqualTo("body h1 {\n color: red;\n}\n/*# sourceMappingURL=file.css.map */\n");
4447
}
4548

49+
@Test
50+
public void large_css() throws IOException {
51+
String css = lessCompiler.compile(Paths.get("file.less"), readString(getSystemResourceAsStream("less/style.less"), UTF_8));
52+
53+
assertThat(css).isNotEmpty();
54+
}
55+
4656
@Test
4757
public void invalid_file() throws IOException {
4858
thrown.expect(IOException.class);

0 commit comments

Comments
 (0)