From bf191b2580fdf645f830dd458fb1ddd384f5fb7e Mon Sep 17 00:00:00 2001 From: Hendrik Cannoodt Date: Fri, 26 Jan 2024 12:40:00 +0100 Subject: [PATCH] Fix testbench refactor that removed the intended functionality --- src/test/scala/io/viash/helpers/IOTest.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/scala/io/viash/helpers/IOTest.scala b/src/test/scala/io/viash/helpers/IOTest.scala index 1f09b42c6..ac5076f68 100644 --- a/src/test/scala/io/viash/helpers/IOTest.scala +++ b/src/test/scala/io/viash/helpers/IOTest.scala @@ -117,8 +117,8 @@ class IOTest extends AnyFunSuite with BeforeAndAfter { assert(result == "[anonymized]/test.txt") } - test("anonymizePath with a common path and a trailing slash") { - val basePath = Some(Paths.get("/foo/bar")) + test("anonymizePath with a common path with a trailing slash") { + val basePath = Some(Paths.get("/foo/bar/")) val path = "/foo/bar/baz/test.txt" val result = IO.anonymizePath(basePath, path) assert(result == "baz/test.txt")