Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSybren A. Stüvel <sybren@blender.org>2021-10-25 13:36:47 +0300
committerSybren A. Stüvel <sybren@blender.org>2021-10-25 13:37:35 +0300
commit892e5f4a9f8a3f4e67a6ff00e4195b628decc127 (patch)
tree737e29b1991e8a0919f1cc0a4b5ae98d6130b9f2 /source/blender/blenkernel/intern/asset_catalog_path_test.cc
parent550cbec5c4dcf785d382950e2651a423f55b2f6a (diff)
Asset Catalogs: be more accepting of backslashes as separators
Asset Catalog Paths should only contain forward slashes as separators, but now the UI is more resilient to people using blackslashes instead. Manifest Task: T90553
Diffstat (limited to 'source/blender/blenkernel/intern/asset_catalog_path_test.cc')
-rw-r--r--source/blender/blenkernel/intern/asset_catalog_path_test.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/asset_catalog_path_test.cc b/source/blender/blenkernel/intern/asset_catalog_path_test.cc
index 997f57a161c..f248863ce77 100644
--- a/source/blender/blenkernel/intern/asset_catalog_path_test.cc
+++ b/source/blender/blenkernel/intern/asset_catalog_path_test.cc
@@ -208,6 +208,18 @@ TEST(AssetCatalogPathTest, cleanup)
AssetCatalogPath with_colons("some/key:subkey=value/path");
EXPECT_EQ(AssetCatalogPath("some/key-subkey=value/path"), with_colons.cleanup());
}
+ {
+ const AssetCatalogPath with_backslashes("windows\\for\\life");
+ EXPECT_EQ(AssetCatalogPath("windows/for/life"), with_backslashes.cleanup());
+ }
+ {
+ const AssetCatalogPath with_mixed("windows\\for/life");
+ EXPECT_EQ(AssetCatalogPath("windows/for/life"), with_mixed.cleanup());
+ }
+ {
+ const AssetCatalogPath with_punctuation("is!/this?/¿valid?");
+ EXPECT_EQ(AssetCatalogPath("is!/this?/¿valid?"), with_punctuation.cleanup());
+ }
}
TEST(AssetCatalogPathTest, iterate_components)