Skip to content

Commit

Permalink
LDEV-5049 add additional test case
Browse files Browse the repository at this point in the history
  • Loading branch information
zspitzer committed Aug 2, 2024
1 parent bc285ee commit a8c2bef
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions test/tickets/LDEV5049.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,26 @@ component extends="org.lucee.cfml.test.LuceeTestCase" skip=true {
expect( parsedForm ).toHaveKey( "fieldnames" );
expect( structCount( parsedForm ) ).toBe( 2 );
});

it( title='internalRequest string url [a&=b]', body=function( currentSpec ) {
var qs = "a&=b";
local.result = _InternalRequest(
template : "#uri#/LDEV5049_url.cfm",
urls: qs
);

var parsedUrl = deserializeJSON( result.filecontent );

systemOutput( "", true );
systemOutput( qs, true );
systemOutput( parsedUrl, true );

expect( parsedUrl ).toHaveKey( "a" );
expect( parsedUrl["a"] ).toBe( "" );
expect( parsedUrl ).toHaveKey( "" );
expect( parsedUrl[""] ).toBe( "b" );
expect( structCount( parsedUrl ) ).toBe( 2 );
});
});
}

Expand Down

0 comments on commit a8c2bef

Please sign in to comment.