Skip to content

Commit

Permalink
LDEV-4766 lsParseCurrency is not thread safe
Browse files Browse the repository at this point in the history
  • Loading branch information
zspitzer committed Mar 15, 2024
1 parent 0372327 commit d8ea8be
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions test/tickets/LDEV4766.cfc
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
component extends="org.lucee.cfml.test.LuceeTestCase" {

function run( testResults , testBox ) {

describe( "Test case for LDEV-4766", function() {
it( title="Test case for lsParseCurrency is not thread safe", body=function( currentSpec ) {
var a = [];
arraySet( a, 1, 1000, "" );

arrayEach( a, function( el, idx ){
lsParseCurrency( arguments.idx & "." & RandRange( 1,100 ) );
}, true );
});
});

}

}

0 comments on commit d8ea8be

Please sign in to comment.