@@ -14,7 +14,7 @@ $r = $sass->compile(".valid { color: red; }");
14
14
isnt ($r , undef , " Successful compile returns something" );
15
15
16
16
$r = eval { $sass -> compile(" this is invalid sass source" ) };
17
- like ($@ , qr / on line 1:22 of stdin/ , " Failed compile dies with error message" );
17
+ like ($@ , qr / on line 1:28 of stdin/ , " Failed compile dies with error message" );
18
18
19
19
$sass -> options-> {dont_die } = 1;
20
20
eval {
23
23
};
24
24
fail ( " dont_die option doesn't die" ) if $@ ;
25
25
is ($r , undef , " dont_die option returns undef on error" );
26
- like ($sass -> last_error, qr / on line 1:22 of stdin/ , " Failed compile saves error message in last_error" );
26
+ like ($sass -> last_error, qr / on line 1:28 of stdin/ , " Failed compile saves error message in last_error" );
27
27
28
28
29
29
$sass -> options-> {dont_die } = 0;
@@ -47,7 +47,7 @@ is ($err, undef, "Successful compile returns no errors")
47
47
48
48
($r , $err ) = sass_compile(" this is invalid sass source" );
49
49
is ($r , undef , " Failed compile returns no code" );
50
- like ($err , qr / on line 1:22 of stdin/ , " Failed compile returns an error" );
50
+ like ($err , qr / on line 1:28 of stdin/ , " Failed compile returns an error" );
51
51
52
52
$r = sass_compile(" .valid { color: red; }" );
53
53
isnt ($r , undef , " Successful compile scalar context returns something" );
@@ -84,7 +84,7 @@ $fh->autoflush(); binmode $fh;
84
84
print $fh " this is invalid sass source" ;
85
85
close $fh ;
86
86
$r = eval { $sass -> compile_file($filename ) };
87
- like ($@ , qr / on line 1:22 of .*\. scss/ , " Failed compile dies with error message" );
87
+ like ($@ , qr / on line 1:28 of .*\. scss/ , " Failed compile dies with error message" );
88
88
89
89
($fh , $filename ) = tempfile( SUFFIX => ' .scss' );
90
90
$fh -> autoflush(); binmode $fh ;
97
97
};
98
98
fail ( " dont_die option doesn't die" ) if $@ ;
99
99
is ($r , undef , " dont_die option returns undef on error" );
100
- like ($sass -> last_error, qr / on line 1:22 of .*\. scss/ , " Failed compile saves error message in last_error" );
100
+ like ($sass -> last_error, qr / on line 1:28 of .*\. scss/ , " Failed compile saves error message in last_error" );
101
101
102
102
103
103
($fh , $filename ) = tempfile( SUFFIX => ' .scss' );
@@ -140,7 +140,7 @@ print $fh "this is invalid sass source";
140
140
close $fh ;
141
141
($r , $err ) = sass_compile_file($filename );
142
142
is ($r , undef , " Failed compile returns no code" );
143
- like ($err , qr / on line 1:22 of .*\. scss/ , " Failed compile returns an error" );
143
+ like ($err , qr / on line 1:28 of .*\. scss/ , " Failed compile returns an error" );
144
144
145
145
($fh , $filename ) = tempfile( SUFFIX => ' .scss' );
146
146
$fh -> autoflush(); binmode $fh ;
0 commit comments