Skip to content

Commit 5902c07

Browse files
committed
Test to cover use of "indented" with string compilation.
1 parent 3a3b66d commit 5902c07

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

sasstests.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,11 @@ def test_compile_string(self):
256256
self.assertRaises(TypeError, sass.compile, string=1234)
257257
self.assertRaises(TypeError, sass.compile, string=[])
258258

259+
def test_compile_string_sass_style(self):
260+
actual = sass.compile(string='a\n\tb\n\t\tcolor: blue;',
261+
indented=True)
262+
assert actual == 'a b {\n color: blue; }\n'
263+
259264
def test_compile_string_deprecated_source_comments_line_numbers(self):
260265
source = '''a {
261266
b { color: blue; }

0 commit comments

Comments
 (0)