From 5a0ea3c040e9456cc80d151bf05f8aa4d4f2e1d5 Mon Sep 17 00:00:00 2001 From: Zac Spitzer Date: Thu, 7 Nov 2024 12:53:04 +0100 Subject: [PATCH] LDEV-5145 test case for expand path directory endings --- test/functions/ExpandPath.cfc | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/test/functions/ExpandPath.cfc b/test/functions/ExpandPath.cfc index ef3c93a2aac..ea76daacfc5 100644 --- a/test/functions/ExpandPath.cfc +++ b/test/functions/ExpandPath.cfc @@ -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); + } + }