diff --git a/test/functions/ExpandPath.cfc b/test/functions/ExpandPath.cfc index ef3c93a2aac..98ebcbf9787 100644 --- a/test/functions/ExpandPath.cfc +++ b/test/functions/ExpandPath.cfc @@ -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); + } + }