Skip to content

Commit

Permalink
Added a testcase in canonicalize() function with % symbol for LDEV-47…
Browse files Browse the repository at this point in the history
…43 (#11)

* Added a testcase in canonicalize() function with % symbol for LDEV-4743

* Disabled the testcase
  • Loading branch information
cfmitrah authored Dec 15, 2023
1 parent cfafe29 commit 8ec0816
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/LDEV4743.cfc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
component extends="org.lucee.cfml.test.LuceeTestCase" labels="esapi" skip=true {
function run( testResults , testBox ) {
describe( title='Testcase for LDEV-4743' , body=function() {
it( title='Checking canonicalize() function with % symbol' , body=function() {
expect( canonicalize("Lucee", false, false) ).toBe( "Lucee" );
expect( canonicalize("!@##$^&*()_+{}[]:"";''<>, .?/|\~`.", false, false) ).toBe( "!@##$^&*()_+{}[]:"";''<>, .?/|\~`." );
expect( function() {
var str = '(80 - 100%).pdf'; // Only failed with the '%' symbol
canonicalize(str, false, false);
}).notToThrow();
});
});
}
}

0 comments on commit 8ec0816

Please sign in to comment.