Skip to content
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

Add assertions for subtitle time duration in milliseconds #9047

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

ivandrofly
Copy link
Member

Investigating appveyor issue with TestUnknownCsv3

The test now includes checks for the start and end times in milliseconds to ensure accuracy of subtitle timing. The commented out asserts are intended to handle timecode formatting, which provides a context for further investigation on their failure in specific environments like AppVeyor.

Signed-off-by: Ivandro Jao <[email protected]>
This change adds an assertion to verify that the current thread culture is set to "en-US" during the test execution. Ensuring the correct culture is crucial for precise interpretation of any locale-specific operations within the test. This helps maintain consistency and predictability across different environments.

Signed-off-by: Ivandro Jao <[email protected]>
Previously, the test used Assert.Equals, which is not a valid method for comparing values in this context. This change corrects the assertion to Assert.AreEqual, ensuring it correctly checks the CurrentCulture Name property. This fix ensures proper test validation and consistency in the test assertions.

Signed-off-by: Ivandro Jao <[email protected]>
Refactor the `MakeSubtitle` method for cleaner return logic and improve the `DetectSeparator` function for more accurate separator detection. Adjust the test in `UnknownFormatImporterCsvTest.cs` to correct the expected duration for subtitle end time.

Signed-off-by: Ivandro Jao <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant