Skip to content

Commit

Permalink
improve test
Browse files Browse the repository at this point in the history
  • Loading branch information
zspitzer committed Nov 7, 2024
1 parent 099ea18 commit 200b74d
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions test/functions/ExpandPath.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -76,23 +76,31 @@ component extends="org.lucee.cfml.test.LuceeTestCase" labels="mappings" {
}

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

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

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

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

}
Expand Down

0 comments on commit 200b74d

Please sign in to comment.