-
Notifications
You must be signed in to change notification settings - Fork 88
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 specs for issue 947. #279
Conversation
Thanks @mechanicalduck |
@@ -0,0 +1,2 @@ | |||
@keyframes test { 10% { color: red; } } | |||
|
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.
@xzyfer, would those extra line feeds at the end of file cause issue with test runners? Normally, if it is CRLF then we add extra line feed so git squashes CRLF+CRLF+EOF (or LF+CRLF+EOF) to a single line feed (LF or CRLF) followed by EOF. If we don't have double CRLF, then git diff on GitHub shows a little red abnormal line termination marker (like this). But in case of double LF, git will retain double linefeeds. IMO, we should avoid this from happening.
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 think this is fine. I force my editor to add a blank line at the end of every file. A lot of specs have this. Also the specs pass on Ruby Sass so I assume all is well.
➜ sass-spec git:(master) ruby sass-spec.rb -c sass -s spec/libsass-todo-issues/issue_963
Recursively searching under directory 'spec/libsass-todo-issues/issue_963' for test files to test 'sass' with.
Sass 3.4.9 (Selective Steve)
Run options: --seed 65106
# Running:
....................................................................................................................................................................
Finished in 57.447308s, 2.8548 runs/s, 8.5644 assertions/s.
164 runs, 492 assertions, 0 failures, 0 errors, 0 skips
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.
Yup we have .trim()
in node-sass spec runner too. Would be nice if we enforce one rule for all specs. 😎
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 guess the trick is getting our of people's way as much as possible. Trying to manage newlines, indentation etc is barrier to people contributing. Especially when we can automatically fix styling ourselves with some simple tooling. I'm fine to just yolo it for now until we're at parity with Ruby Sass.
Add specs for issue 947.