From 651f36e5bb080216c823aa3859e48ba3ed793609 Mon Sep 17 00:00:00 2001 From: Zac Spitzer Date: Mon, 12 Aug 2024 14:31:21 +0200 Subject: [PATCH] LDEV-5065 testcase for assignment regression --- test/tickets/LDEV5065.cfc | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 test/tickets/LDEV5065.cfc diff --git a/test/tickets/LDEV5065.cfc b/test/tickets/LDEV5065.cfc new file mode 100644 index 0000000000..3ae3c56515 --- /dev/null +++ b/test/tickets/LDEV5065.cfc @@ -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) ); + }); + }); + } + +}