added tidy check for -> ()

This commit is contained in:
lucantrop 2017-03-13 13:13:46 +01:00
parent 94c344a014
commit b1faaa15dc
3 changed files with 4 additions and 1 deletions

View file

@ -123,6 +123,7 @@ class CheckTidiness(unittest.TestCase):
self.assertEqual('use &[T] instead of &Vec<T>', errors.next()[2])
self.assertEqual('use &str instead of &String', errors.next()[2])
self.assertEqual('use &T instead of &Root<T>', errors.next()[2])
self.assertEqual('encountered function signature with -> ()', 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.assertEqual('extra space after (', errors.next()[2])