Skip to content

Commit

Permalink
clean up (remove dumps from test cases)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeloffner committed Jun 26, 2024
1 parent e44beda commit 76d6e50
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 14 deletions.
3 changes: 1 addition & 2 deletions test/functions/ArraySort.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ component extends="org.lucee.cfml.test.LuceeTestCase"{

it(title="checking ArraySort(asc;localeSensitive=true) function", body = function( currentSpec ) {
var arr=['a','b'];
arraySort(arr,'text','asc',true)
writedump(arrayToList(arr)=="a,b");
arraySort(arr,'text','asc',true);
assertEquals("a,b",arrayToList(arr));
});
it(title="checking ArraySort(desc;localeSensitive=true) function", body = function( currentSpec ) {
Expand Down
2 changes: 1 addition & 1 deletion test/tickets/Issue0055.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<cftry>
<cfthrow type="TestException" message="test exception">
<cfcatch name="local.e">
<cfdump var="#cfcatch#">

</cfcatch>
</cftry>

Expand Down
2 changes: 0 additions & 2 deletions test/tickets/LDEV0555.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ component extends="org.lucee.cfml.test.LuceeTestCase"{
} catch ( any e ){
var encodeValue = e.message;
}
writeDump(encodeValue);
expect(encodeValue).toBe("aWQ9QkEtMzU3OSZ5PTIwMDEmbT1EQUtPVEEmeW1zPVBQJnVyZ2lkPU5ZMDImdmluPTNEN0hBMThONzJHMTc3Njg2tg==");
});

Expand All @@ -102,7 +101,6 @@ component extends="org.lucee.cfml.test.LuceeTestCase"{
} catch ( any e ){
var encodeValue = e.message;
}
writeDump(encodeValue);
expect(encodeValue).toBe("aWQ9QkEtMzU3OSZ5PTIwMDEmbT1EQUtPVEEmeW1zPVBQJnVyZ2lkPU5ZMDImdmluPTNEN0hBThONzJHMTc3Nj2tkgQ==");
});
});
Expand Down
1 change: 0 additions & 1 deletion test/tickets/LDEV0677.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ component extends="org.lucee.cfml.test.LuceeTestCase" {

// data should be copied over
assertEquals("sorglos",sess1.susi);
dump(sess2);
assertEquals("sorglos",sess2.susi);
assertEquals("sorglos",sess3.susi);

Expand Down
5 changes: 0 additions & 5 deletions test/tickets/LDEV1718.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@ component extends="org.lucee.cfml.test.LuceeTestCase" {

// this should be resolved via the /sue mapping, because it is a match with that mapping and there is no other mapping, dahh!
var path=slashify(expandPath("/sue/ellen/sub/"));
dump(label:"/susi/ellen/sub/",var:path);
dump(path== sue&"ellen/sub/");
expect( path ).toBe( sue&"ellen/sub/" );
});

Expand All @@ -63,8 +61,6 @@ component extends="org.lucee.cfml.test.LuceeTestCase" {

// now the sue/ellen mapping should be used
var path=slashify(expandPath("/sue/ellen/sub/"));
dump(label:"/susi/ellen/sub/",var:path);
dump(path== sue_ellen_sub);
expect( path ).toBe( sue_ellen_sub );
});

Expand All @@ -79,7 +75,6 @@ component extends="org.lucee.cfml.test.LuceeTestCase" {

// now we test sub sub that only exists in the /sue mapping
var path=slashify(expandPath("/sue/ellen/sub/subsub/"));
dump(label:"/susi/ellen/sub/subsub/",var:path);

// even that does not exist in the sue/ellen mapping, that mapping is used because of the "lucee.mapping.first" env var is true, so mapping over match
expect( path ).toBe( sue_ellen_sub&"subsub/" );
Expand Down
2 changes: 0 additions & 2 deletions test/tickets/LDEV3066.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ component extends="org.lucee.cfml.test.LuceeTestCase" {
expect("abc").toBe(ReReplace( string, regex, "\1" ));
expect("asdasd").toBe(ReReplace( string, regex, "\2" ));
expect("").toBe(ReReplace( string, regex, "\3" ));

writedump( ReFind( regex, string, 1, true ) );
});


Expand Down
1 change: 0 additions & 1 deletion test/tickets/LDEV4828.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ component extends = "org.lucee.cfml.test.LuceeTestCase" {
for(var i=1; i<=numberOfColumns; i++) {
queryAddColumn(q, "c#i#", ["x"])
}
dump(q)
});
});
}
Expand Down

0 comments on commit 76d6e50

Please sign in to comment.