mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Add style check, test, and code fixes for an else brace check.
This commit is contained in:
parent
80cb0cf821
commit
6642358217
9 changed files with 26 additions and 20 deletions
|
@ -41,6 +41,12 @@ impl test {
|
|||
let x = true;
|
||||
x
|
||||
&& x;
|
||||
if x {
|
||||
;
|
||||
}
|
||||
else {
|
||||
;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -76,6 +76,7 @@ class CheckTidiness(unittest.TestCase):
|
|||
self.assertEqual('use &str instead of &String', errors.next()[2])
|
||||
self.assertEqual('use &T instead of &Root<T>', errors.next()[2])
|
||||
self.assertEqual('operators should go at the end of the first line', errors.next()[2])
|
||||
self.assertEqual('else braces should be on the same line', errors.next()[2])
|
||||
self.assertNoMoreErrors(errors)
|
||||
|
||||
def test_spec_link(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue