@@ -176,19 +176,22 @@ pub fn expand(cap: &[u8], params: &[Param], vars: &mut Variables)
176176 } else { return Err(~" stack is empty") } ,
177177 '=' => if stack. len ( ) > 1 {
178178 match ( stack. pop ( ) , stack. pop ( ) ) {
179- ( Number ( y) , Number ( x) ) => stack. push ( Number ( if x == y { 1 } else { 0 } ) ) ,
179+ ( Number ( y) , Number ( x) ) => stack. push ( Number ( if x == y { 1 }
180+ else { 0 } ) ) ,
180181 _ => return Err ( ~"non-numbers on stack with =")
181182 }
182183 } else { return Err(~" stack is empty") } ,
183184 '>' => if stack. len ( ) > 1 {
184185 match ( stack. pop ( ) , stack. pop ( ) ) {
185- ( Number ( y) , Number ( x) ) => stack. push ( Number ( if x > y { 1 } else { 0 } ) ) ,
186+ ( Number ( y) , Number ( x) ) => stack. push ( Number ( if x > y { 1 }
187+ else { 0 } ) ) ,
186188 _ => return Err ( ~"non-numbers on stack with >")
187189 }
188190 } else { return Err(~" stack is empty") } ,
189191 '<' => if stack. len ( ) > 1 {
190192 match ( stack. pop ( ) , stack. pop ( ) ) {
191- ( Number ( y) , Number ( x) ) => stack. push ( Number ( if x < y { 1 } else { 0 } ) ) ,
193+ ( Number ( y) , Number ( x) ) => stack. push ( Number ( if x < y { 1 }
194+ else { 0 } ) ) ,
192195 _ => return Err ( ~"non-numbers on stack with <")
193196 }
194197 } else { return Err(~" stack is empty") } ,
@@ -353,12 +356,14 @@ mod test {
353356 #[ test]
354357 fn test_basic_setabf ( ) {
355358 let s = bytes ! ( "\\ E[48;5;%p1%dm" ) ;
356- assert_eq ! ( expand( s, [ Number ( 1 ) ] , & mut Variables :: new( ) ) . unwrap( ) , bytes!( "\\ E[48;5;1m" ) . to_owned( ) ) ;
359+ assert_eq ! ( expand( s, [ Number ( 1 ) ] , & mut Variables :: new( ) ) . unwrap( ) ,
360+ bytes!( "\\ E[48;5;1m" ) . to_owned( ) ) ;
357361 }
358362
359363 #[ test]
360364 fn test_multiple_int_constants ( ) {
361- assert_eq ! ( expand( bytes!( "%{1}%{2}%d%d" ) , [ ] , & mut Variables :: new( ) ) . unwrap( ) , bytes!( "21" ) . to_owned( ) ) ;
365+ assert_eq ! ( expand( bytes!( "%{1}%{2}%d%d" ) , [ ] , & mut Variables :: new( ) ) . unwrap( ) ,
366+ bytes!( "21" ) . to_owned( ) ) ;
362367 }
363368
364369 #[ test]
0 commit comments