Add regression test for literal search on paths

This commit is contained in:
Guillaume Gomez
2025-09-11 18:05:21 +02:00
parent bfd5a264c7
commit 04a1dd1c17
2 changed files with 30 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
// exact-check
// This test ensures that literal search is always applied on elements of the path.
const EXPECTED = [
{
'query': '"some::path"',
'others': [
{ 'path': 'literal_path::some', 'name': 'Path' },
],
},
{
'query': '"somea::path"',
'others': [
{ 'path': 'literal_path::somea', 'name': 'Path' },
],
},
{
'query': '"soma::path"',
'others': [
],
},
];

View File

@@ -0,0 +1,7 @@
pub mod some {
pub struct Path;
}
pub mod somea {
pub struct Path;
}