Skip to content

Commit

Permalink
add test case
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeloffner committed Oct 18, 2024
1 parent 7baa83d commit 80e5b65
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions test/general/String.cfc
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
component extends="org.lucee.cfml.test.LuceeTestCase"{
function beforeAll(){}

function afterAll(){}

function run( testResults , testBox ) {
describe( "tests for the type string", function() {

it(title="use the underlaying method", body=function(){
var originalString = "My phone number is 123-456-7890.";
var regex = "\d";
var replacedString = originalString.replaceAll(regex, "*");
expect(replacedString).toBe("My phone number is ***-***-****.");
});
});
}
}

0 comments on commit 80e5b65

Please sign in to comment.