예제 #1
0
 def test_trim_spaces_between_quote_and_opening_bracket_in_list_literal(self):
     source = "'        (12 13 14)"
     self.assertEq("'(12 13 14)", yasi.trim(source))
예제 #2
0
 def test_trim_extra_whitespace(self):
     source = "(print       'this)"
     self.assertEq("(print 'this)", yasi.trim(source))
예제 #3
0
 def test_trim_leading_whitespace(self):
     source = '       (exit)'
     self.assertEq('(exit)', yasi.trim(source))
예제 #4
0
 def test_trim_space_between_succeeding_closing_brackets(self):
     source = ') ) )'
     self.assertEq(')))', yasi.trim(source))
예제 #5
0
 def test_trim_spaces_before_closing_brackets(self):
     source = '(print 12    )'
     self.assertEq('(print 12)', yasi.trim(source))
예제 #6
0
 def test_trim_space_between_succeeding_opening_brackets(self):
     source = '( ( ( '
     self.assertEq('(((', yasi.trim(source))
예제 #7
0
 def test_trim_adjacent_function_and_argument_opening_bracket(self):
     source = '(print(+ 1 1))'
     self.assertEq('(print (+ 1 1))', yasi.trim(source))
예제 #8
0
 def test_trim_spaces_between_quote_and_opening_bracket_in_list_literal(self):
     source = "'        (12 13 14)"
     self.assertEqual("'(12 13 14)", yasi.trim(source))
예제 #9
0
 def test_trim_separate_adjacent_opening_and_closing_brackets(self):
     source = ')('
     self.assertEq(') (', yasi.trim(source))
예제 #10
0
 def test_trim_extra_whitespace(self):
     source = "(print       'this)"
     self.assertEqual("(print 'this)", yasi.trim(source))
예제 #11
0
 def test_trim_leading_whitespace(self):
     source = '       (exit)'
     self.assertEqual('(exit)', yasi.trim(source))
예제 #12
0
 def test_trim_spaces_before_closing_brackets(self):
     source = '(print 12    )'
     self.assertEqual('(print 12)', yasi.trim(source))
예제 #13
0
 def test_trim_space_between_succeeding_closing_brackets(self):
     source = ') ) )'
     self.assertEqual(')))', yasi.trim(source))
예제 #14
0
 def test_trim_adjacent_function_and_argument_opening_bracket(self):
     source = '(print(+ 1 1))'
     self.assertEqual('(print (+ 1 1))', yasi.trim(source))
예제 #15
0
 def test_trim_space_between_succeeding_opening_brackets(self):
     source = '( ( ( '
     self.assertEqual('(((', yasi.trim(source))
예제 #16
0
 def test_trim_separate_adjacent_opening_and_closing_brackets(self):
     source = ')('
     self.assertEqual(') (', yasi.trim(source))