From 16913f2cd6a500cb3b2fba1bd4e785c822a75637 Mon Sep 17 00:00:00 2001 From: jules Date: Thu, 23 Jun 2016 11:46:03 +0100 Subject: [PATCH] Added a unit test --- modules/juce_core/files/juce_File.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/juce_core/files/juce_File.cpp b/modules/juce_core/files/juce_File.cpp index d1def33948..bebdeed508 100644 --- a/modules/juce_core/files/juce_File.cpp +++ b/modules/juce_core/files/juce_File.cpp @@ -1075,6 +1075,7 @@ public: expect (home.getChildFile (".././xyz") == home.getParentDirectory().getChildFile ("xyz")); expect (home.getChildFile (".././xyz/./abc") == home.getParentDirectory().getChildFile ("xyz/abc")); expect (home.getChildFile ("./../xyz") == home.getParentDirectory().getChildFile ("xyz")); + expect (home.getChildFile ("a1/a2/a3/./../../a4") == home.getChildFile ("a1/a4")); { FileOutputStream fo (tempFile);