@@ -36,12 +36,12 @@ $(document).ready(function() {
3636 var tree = getSimpleTestTree ( ) ;
3737 _ . walk . postorder ( tree , visitor ) ;
3838 assert . equal ( tree . val , 16 , 'should visit subtrees first' ) ;
39-
39+
4040 tree = getSimpleTestTree ( ) ;
4141 _ . walk . preorder ( tree , visitor ) ;
4242 assert . equal ( tree . val , 5 , 'should visit subtrees after the node itself' ) ;
4343 } ) ;
44-
44+
4545 QUnit . test ( "circularRefs" , function ( assert ) {
4646 var tree = getSimpleTestTree ( ) ;
4747 tree . l . l . r = tree ;
@@ -218,19 +218,19 @@ $(document).ready(function() {
218218 assert . equal ( _ . walk . pluckRec ( tree , 'val' ) . join ( '' ) , '0123456' , 'default pluckRec still works' ) ;
219219 } ) ;
220220
221- test ( "containsAtLeast" , function ( ) {
221+ QUnit . test ( "containsAtLeast" , function ( assert ) {
222222 var array = getArrayValues ( ) ;
223223
224- equal ( _ . walk . containsAtLeast ( array , 3 , "a" ) , true , "list contains at least 3 items" ) ;
225- equal ( _ . walk . containsAtLeast ( array , 1 , "b" ) , true , "list contains at least 1 items" ) ;
226- equal ( _ . walk . containsAtLeast ( array , 1 , "f" ) , false , "list doesn't contain item for that value" ) ;
224+ assert . equal ( _ . walk . containsAtLeast ( array , 3 , "a" ) , true , "list contains at least 3 items" ) ;
225+ assert . equal ( _ . walk . containsAtLeast ( array , 1 , "b" ) , true , "list contains at least 1 items" ) ;
226+ assert . equal ( _ . walk . containsAtLeast ( array , 1 , "f" ) , false , "list doesn't contain item for that value" ) ;
227227 } ) ;
228228
229- test ( "containsAtMost" , function ( ) {
229+ QUnit . test ( "containsAtMost" , function ( assert ) {
230230 var array = getArrayValues ( ) ;
231231
232- equal ( _ . walk . containsAtMost ( array , 4 , "a" ) , true , "list contains at most 4 items" ) ;
233- equal ( _ . walk . containsAtMost ( array , 1 , "b" ) , true , "list contains at most 1 value" ) ;
234- equal ( _ . walk . containsAtMost ( array , 1 , "f" ) , true , "list contains at most 1 value" ) ;
232+ assert . equal ( _ . walk . containsAtMost ( array , 4 , "a" ) , true , "list contains at most 4 items" ) ;
233+ assert . equal ( _ . walk . containsAtMost ( array , 1 , "b" ) , true , "list contains at most 1 value" ) ;
234+ assert . equal ( _ . walk . containsAtMost ( array , 1 , "f" ) , true , "list contains at most 1 value" ) ;
235235 } ) ;
236236} ) ;
0 commit comments