File tree 1 file changed +35
-0
lines changed 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change 53
53
(find-indent-positions '(" a b c d e f g h"
54
54
" long_streak" )))))
55
55
56
+ (ert-deftest find-indent-positions-5 ()
57
+ (should (equal '(2 4 6 13 15 17 19 24 32 40 )
58
+ (find-indent-positions '(" f g e e iirelevant"
59
+ " a b c d"
60
+ " h idden"
61
+ " hidden"
62
+ " "
63
+ " e f g h"
64
+ " " )))))
65
+
56
66
(ert-deftest find-indent-and-backtab-positions-1 ()
57
67
(should (equal '((2 4 5 8 16 24 32 40 48 56 )
58
68
(2 4 5 8 16 24 32 40 48 56 ))
82
92
(should (equal '((8 10 13 20 24 27 32 35 37 45 )
83
93
(8 10 13 20 24 27 32 35 37 45 ))
84
94
(find-indent-and-backtab-positions '(" \t x <- return 123 {- This is a comment -}" )))))
95
+
96
+ (ert-deftest find-indent-and-backtab-positions-3 ()
97
+ (should (equal '((2 4 6 13 15 17 19 24 32 40 )
98
+ (2 4 6 13 15 17 19 24 32 40 ))
99
+ (find-indent-and-backtab-positions '(" f g e e iirelevant"
100
+ " a b c d"
101
+ " h idden x"
102
+ " hidden 4 5"
103
+ " "
104
+ " e f g h"
105
+ " " )
106
+ (lambda ()
107
+ (setq-local indent-tabs-mode nil ))))))
108
+
109
+ (ert-deftest find-indent-and-backtab-positions-3a ()
110
+ :expected-result :failed
111
+ (should (equal '((2 4 6 13 15 17 19 24 32 40 )
112
+ (2 4 6 13 15 17 19 24 32 40 ))
113
+ (find-indent-and-backtab-positions '(" f g e e iirelevant"
114
+ " a b c d"
115
+ " h idden x"
116
+ " hidden 4 5"
117
+ " "
118
+ " e f g h"
119
+ " " )))))
You can’t perform that action at this time.
0 commit comments