Skip to content

Commit

Permalink
Make 3 tests to check for different indentation form for emacs 24.3
Browse files Browse the repository at this point in the history
  • Loading branch information
ap4y committed Feb 22, 2015
1 parent 9941c27 commit d0a61fd
Showing 1 changed file with 30 additions and 8 deletions.
38 changes: 30 additions & 8 deletions test/indentation-tests.el
Original file line number Diff line number Diff line change
Expand Up @@ -723,11 +723,18 @@ class Foo<A: B<C>>:
public class Foo: Foo, Bar,
|Baz {
}
" "
" (if (and (= 24 emacs-major-version)
(= 3 emacs-minor-version))
"
public class Foo: Foo, Bar,
|Baz {
}
"
"
public class Foo: Foo, Bar,
|Baz {
}
")
"))

(check-indentation indents-public-class-declaration/2
"
Expand Down Expand Up @@ -1842,13 +1849,22 @@ foo.bar(10,
|foo
}
)
" "
" (if (and (= 24 emacs-major-version)
(= 3 emacs-minor-version))
"
foo.bar(10,
completionHandler: { complete in
|foo
}
)
"
"
foo.bar(10,
completionHandler: { complete in
|foo
}
)
")
"))

(check-indentation anonymous-function-as-a-argument/6
"
Expand Down Expand Up @@ -1890,14 +1906,20 @@ foo.bar(10,
completionHandler: { (bar, baz) -> Void in
|foo
}
)
" "
" (if (and (= 24 emacs-major-version)
(= 3 emacs-minor-version))
"
foo.bar(10,
completionHandler: { (bar, baz) -> Void in
|foo
}
"
"
foo.bar(10,
completionHandler: { (bar, baz) -> Void in
|foo
}
)
")
"))

(check-indentation anonymous-function-as-a-argument/9
"
Expand Down

0 comments on commit d0a61fd

Please sign in to comment.