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 599c43c
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions test/functions/ExpandPath.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,25 @@ component extends="org.lucee.cfml.test.LuceeTestCase" labels="mappings" {
expandPath( '/');
}



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

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

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

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

}
</cfscript>

0 comments on commit 599c43c

Please sign in to comment.