-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
test: add missing test cases for Windows filename characters #14937
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
test: add missing test cases for Windows filename characters #14937
Conversation
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
|||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||
|
Thanks for your PR! Looks good to me! |
User description
The
FileNameCleanerlogic supports replacing colons and double quotes with underscores to ensure valid Windows filenames. However, theFileNameCleanerTestwas missing explicit test cases for these characters. This PR adds those missing cases.Steps to test
jablib/src/test/java/org/jabref/logic/util/FileNameCleanerTest.java:and".Mandatory checks
CHANGELOG.mdin a way that is understandable for the average user (if change is visible to the user)PR Type
Tests
Description
Adds missing test cases for Windows filename characters
Tests colon (
:) character replacement with underscoreTests double quote (
") character replacement with underscoreDiagram Walkthrough
File Walkthrough
FileNameCleanerTest.java
Add Windows filename edge case test coveragejablib/src/test/java/org/jabref/logic/util/FileNameCleanerTest.java
cleanFileNamemethod:) with underscores in filenames") with underscores in filenames