Test layer index can contain filenames with spaces
Add tests to ensure that the layer index can support filenames that contain spaces. Closes gh-20827
This commit is contained in:
@@ -104,7 +104,15 @@ class LayersIndexTests {
|
||||
index.add(LAYER_A, "a2/b1");
|
||||
index.add(LAYER_B, "a2/b2");
|
||||
assertThatIndex(index).writesExpectedContent();
|
||||
}
|
||||
|
||||
@Test
|
||||
void writeToWhenSpaceInFileName() {
|
||||
LayersIndex index = new LayersIndex(LAYER_A);
|
||||
index.add(LAYER_A, "a b");
|
||||
index.add(LAYER_A, "a b/c");
|
||||
index.add(LAYER_A, "a b/d");
|
||||
assertThatIndex(index).writesExpectedContent();
|
||||
}
|
||||
|
||||
private LayersIndexAssert assertThatIndex(LayersIndex index) {
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
- "a":
|
||||
- "a b"
|
||||
- "a b/"
|
||||
Reference in New Issue
Block a user