Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions test/fixtures/folder-writer/case-collide.cases.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down Expand Up @@ -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"
]
}
]
}
10 changes: 10 additions & 0 deletions test/fixtures/folder-writer/unsafe-ids.cases.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down
4 changes: 2 additions & 2 deletions test/serial-150-replay.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ import { ExportFolderCommand } from "../Commands/ExportFolderCommand";
const DIR = path.join(__dirname, "..", "..", "test", "fixtures", "folder-writer");
const HASH: Record<string, string> = {
"id-tail": "9684866e",
"unsafe-ids": "97638af1",
"case-collide": "7fec915c",
"unsafe-ids": "de446111",
"case-collide": "6458bd08",
};
const W = "OnlyWorlds/Worlds/W";
const TYPE: Record<string, string> = { character: "Character", location: "Location" };
Expand Down
Loading