-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect test? #37
Comments
The first test passed in |
I'm still a bit confused...could you describe the difference between these two in simple English? I will take a guess to give you an idea what I am looking for...these are apparently wrong so any clarification is appreciated.
|
The first one says |
So does a pattern starting with / have any special meaning? |
It means the same path as the |
The specification and the main webpage state the EditorConfig glob patters are "similar to the format accepted by gitignore" so I've never been sure which parts are similar and which parts are not (plus that link doesn't document anything about how braces are handled in various conditions, etc). I think I have enough of a grasp of it for now I hope Thank you for all the time and explanation 👍 |
Been fighting with these two tests.
editorconfig-core-test/filetree/CMakeLists.txt
Lines 70 to 74 in 6c8fe68
They test these two conditions...
editorconfig-core-test/filetree/path_separator.in
Lines 5 to 9 in 6c8fe68
At this point I'm assuming the first test is incorrect...or else I am completely not understanding how to implement them.
My assumption is that
path/separator
would match any of the following (especially since the comment for the first test says"Tests path separator match below top of path"
:<root_dir>/path/separator
<root_dir>/a/path/separator
<root_dir>/b/c/path/separator
<root_dir>/nested/path/separator
However the test is expecting it to not have
key1=value1
My other assumption is that
/top/of/path
would only match:<root_dir>/top/of/path
And not match any others such as:
<root_dir>/a/top/of/path
<root_dir>/b/c/top/of/path
Which seems to be correct according to the test.
The text was updated successfully, but these errors were encountered: