Skip to content

Commit

Permalink
LDEV-5065 testcase for assignment regression
Browse files Browse the repository at this point in the history
  • Loading branch information
zspitzer committed Aug 12, 2024
1 parent 1405644 commit 651f36e
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions test/tickets/LDEV5065.cfc
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
component extends="org.lucee.cfml.test.LuceeTestCase" {

function run( testResults , testBox ) {
describe( "Test suite for LDEV-5065", function() {

it( title='assignment regression', body=function( currentSpec ) {
var brad=5;
writeDump( var=( brad=4) );
});

it( title='assignment regression', body=function( currentSpec ) {
var brad=5;
writeDump( ( brad+=4) );
});

it( title='assignment regression', body=function( currentSpec ) {
var brad=5;
writeDump( var=( brad+=4) );
});

it( title='assignment regression', body=function( currentSpec ) {
var brad=5;
writeDump( var=( brad=4) );
writeDump( ( brad+=4) );
writeDump( var=( brad+=4) );
});
});
}

}

0 comments on commit 651f36e

Please sign in to comment.