-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsass_test.go
37 lines (31 loc) · 919 Bytes
/
sass_test.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// Copyright 2012, Homin Lee. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package sass
import "fmt"
import "log"
import "testing"
func TestBasicCompile(t *testing.T) {
log.Println("TestBasicCompile")
var sc Compiler
css, err := sc.Compile("a { b { color: blue; } }")
fmt.Println(css, err)
}
func TestBasicFile(t *testing.T) {
log.Println("TestBasicFile")
var sc Compiler
sc.SourceComments = true
css, err := sc.CompileFile("_scss/simple.scss")
fmt.Println(css, err)
}
func TestCompileFileWithInclude(t *testing.T) {
log.Println("TestCompileFileWithInclude")
var sc Compiler
css, err := sc.CompileFile("_scss/style.scss")
fmt.Println(css, err)
}
func TestCompileFolder(t *testing.T) {
var sc Compiler
err := sc.CompileFolder("_scss", "css")
fmt.Println(err)
}