diff --git a/test/fixtures/folder-writer/case-collide.cases.json b/test/fixtures/folder-writer/case-collide.cases.json index 5c6c690..b14c1fe 100644 --- a/test/fixtures/folder-writer/case-collide.cases.json +++ b/test/fixtures/folder-writer/case-collide.cases.json @@ -211,6 +211,36 @@ } ], "message": "character element ids \"é1\" and \"é1\" give the file names \"bob--é1.json\" and \"bob--é1.json\", which are one name once folded (NFC, then simple case folding), so a case-insensitive disk (NTFS, APFS) may keep one file for both." + }, + { + "elements": [ + { + "type": "character", + "id": "ς1", + "name": "" + }, + { + "type": "character", + "id": "σ1", + "name": "" + } + ], + "message": "character element ids \"ς1\" and \"σ1\" give the file names \"ς1.json\" and \"σ1.json\", which are one name once folded (NFC, then simple case folding), so a case-insensitive disk (NTFS, APFS) may keep one file for both." + }, + { + "elements": [ + { + "type": "character", + "id": "ς1", + "name": "Bob" + }, + { + "type": "character", + "id": "σ1", + "name": "Bob" + } + ], + "message": "character element ids \"ς1\" and \"σ1\" give the file names \"bob--ς1.json\" and \"bob--σ1.json\", which are one name once folded (NFC, then simple case folding), so a case-insensitive disk (NTFS, APFS) may keep one file for both." } ], "written": [ @@ -375,6 +405,24 @@ "elements/character/bob--1234567K.json", "elements/character/bob--b1234567k.json" ] + }, + { + "elements": [ + { + "type": "character", + "id": "𝐚-12345678", + "name": "Bob" + }, + { + "type": "character", + "id": "a-12345678", + "name": "Bob" + } + ], + "paths": [ + "elements/character/bob--12345678.json", + "elements/character/bob--𝐚-12345678.json" + ] } ] } diff --git a/test/fixtures/folder-writer/unsafe-ids.cases.json b/test/fixtures/folder-writer/unsafe-ids.cases.json index 452a073..36b1611 100644 --- a/test/fixtures/folder-writer/unsafe-ids.cases.json +++ b/test/fixtures/folder-writer/unsafe-ids.cases.json @@ -111,6 +111,16 @@ "id": "con", "name": "", "why": "as \"con.json\" it is a Windows device name" + }, + { + "id": "con", + "name": "Bob", + "why": "as \"con.json\" it is a Windows device name" + }, + { + "id": "a*b-longer-id", + "name": "Bob", + "why": "as \"a*b-longer-id.json\" it holds a reserved or control character" } ], "written": [ diff --git a/test/serial-150-replay.test.ts b/test/serial-150-replay.test.ts index 72c5469..c636207 100644 --- a/test/serial-150-replay.test.ts +++ b/test/serial-150-replay.test.ts @@ -17,8 +17,8 @@ import { ExportFolderCommand } from "../Commands/ExportFolderCommand"; const DIR = path.join(__dirname, "..", "..", "test", "fixtures", "folder-writer"); const HASH: Record = { "id-tail": "9684866e", - "unsafe-ids": "97638af1", - "case-collide": "7fec915c", + "unsafe-ids": "de446111", + "case-collide": "6458bd08", }; const W = "OnlyWorlds/Worlds/W"; const TYPE: Record = { character: "Character", location: "Location" };