Skip to content

Commit

Permalink
Merge pull request #2207 from MitrahSoft/IsXmlAttribute_
Browse files Browse the repository at this point in the history
Added a testcase for IsXmlAttribute() function
  • Loading branch information
zspitzer authored Aug 10, 2023
2 parents d3e901f + 2664f2c commit 5da69c9
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/functions/isXMLAttribute.cfc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
component extends="org.lucee.cfml.test.LuceeTestCase" labels="isXmlAttribute" {

function run( testResults , testBox ) {
describe( title = "Testcase for isXMLAttribute function", body = function() {
it( title = "checking isXmlAttribute() function", body = function( currentSpec ) {
var path='<note test="aaa"><from body="bbb">Bob</from></note>';
var res = XmlSearch(path, '//@test');
expect(isXMLAttribute(res[1])).toBe(true);
});
});
}
}

0 comments on commit 5da69c9

Please sign in to comment.