-
Notifications
You must be signed in to change notification settings - Fork 111
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
feat: Issues-116 support options for WriteToTTML #117
feat: Issues-116 support options for WriteToTTML #117
Conversation
84b59d7
to
db64f6e
Compare
ttml_test.go
Outdated
|
||
func TestTTMLWithOptionsNoIndent(t *testing.T) { | ||
// Open | ||
s, err := astisub.OpenFile("./testdata/example-in-no-indent.ttml") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why add this new in
file? Can't you use ./testdata/example-in.ttml
directly?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why add this new in file?
I want to decouple the test file in the two test cases, so I add a new file for the test case.
Can't you use ./testdata/example-in.ttml directly?
Yes, I can use directly, If you think it is better.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I understand but I'd rather use ./testdata/example-in.ttml
here 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, will fix it soon.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixes: commit
ttml_test.go
Outdated
@@ -68,3 +68,20 @@ func TestTTMLBreakLines(t *testing.T) { | |||
|
|||
assert.Equal(t, strings.TrimSpace(string(c)), strings.TrimSpace(w.String())) | |||
} | |||
|
|||
func TestTTMLWithOptionsNoIndent(t *testing.T) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you rename this test to TestWriteToTTMLWithIndentOption
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, will rename it later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixes: commit
Thanks for the PR! ❤️ Let me know whether you need a tag 👍 |
Yes, I need a tag. Thank you! |
I've created the |
Issue: #116