From 28dad4dd30ba994d6c6185006c613e18271c7466 Mon Sep 17 00:00:00 2001 From: Dane Horn Date: Sun, 15 May 2022 09:43:23 +0200 Subject: [PATCH] expand Directory tests --- test/jest/Terminal/Directory.test.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/jest/Terminal/Directory.test.js b/test/jest/Terminal/Directory.test.js index 79db3a0a1..ee8b53d41 100644 --- a/test/jest/Terminal/Directory.test.js +++ b/test/jest/Terminal/Directory.test.js @@ -103,6 +103,14 @@ describe("Terminal Directory Tests", function () { expect(isValidDirectoryName("._foo")).toEqual(true); expect(isValidDirectoryName("_foo")).toEqual(true); expect(isValidDirectoryName("foo.dir")).toEqual(true); + expect(isValidDirectoryName("foov1.0.0.1")).toEqual(true); + expect(isValidDirectoryName("foov1..0..0..1")).toEqual(true); + expect(isValidDirectoryName("foov1-0-0-1")).toEqual(true); + expect(isValidDirectoryName("foov1-0-0-1-")).toEqual(true); + expect(isValidDirectoryName("foov1--0--0--1--")).toEqual(true); + expect(isValidDirectoryName("foov1_0_0_1")).toEqual(true); + expect(isValidDirectoryName("foov1_0_0_1_")).toEqual(true); + expect(isValidDirectoryName("foov1__0__0__1")).toEqual(true); }); it("should return false for invalid directory names", function () { @@ -115,6 +123,7 @@ describe("Terminal Directory Tests", function () { expect(isValidDirectoryName("..")).toEqual(false); expect(isValidDirectoryName("1.")).toEqual(false); expect(isValidDirectoryName("foo.")).toEqual(false); + expect(isValidDirectoryName("foov1.0.0.1.")).toEqual(false); }); });