Skip to content

Commit

Permalink
LDEV-5145 test case for expand path directory endings
Browse files Browse the repository at this point in the history
  • Loading branch information
zspitzer committed Nov 7, 2024
1 parent 716e098 commit 5a0ea3c
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions test/functions/ExpandPath.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,15 @@ component extends="org.lucee.cfml.test.LuceeTestCase" labels="mappings" {
expandPath( '/');
}



public void function testForDirectoryWinStyle(){
var trgWin=expandPath("{temp-directory}/#createUniqueID()#\");
expect(right(trgWin,1)).toBe(sep, trgWin);
}

public void function testForDirectoryUnixStyle(){
var trgUnix=expandPath("{temp-directory}/#createUniqueID()#/");
expect(right(trgUnix,1)).toBe(sep, trgUnix);
}

}
</cfscript>

0 comments on commit 5a0ea3c

Please sign in to comment.