Skip to content

Commit

Permalink
tests: Add tests for issue #26.
Browse files Browse the repository at this point in the history
  • Loading branch information
CyberShadow committed Oct 10, 2016
1 parent e35790c commit baf1669
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions d-mode-test.el
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ If the resulting indentation ends up being different, raise an error."
(ert-deftest d-mode-basic ()
(should (equal (do-one-test "tests/imenu.d") t))
(should (equal (do-one-test "tests/I0021.d") t))
(should (equal (do-one-test "tests/I0026.d") t))
(should (equal (do-one-test "tests/I0035.d") (version< "24.4" emacs-version)))
(should (equal (do-one-test "tests/I0039.d") (version< "24.4" emacs-version)))
(should (equal (do-one-test "tests/I0064.d") t))
Expand Down
14 changes: 14 additions & 0 deletions tests/I0026.d
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// -*- tab-width: 8 -*-
// #run: (progn (d-setup-cascaded-call-indentation) (d-test-indent))

import std.file;
import std.path;

void main()
{
enum dirPath = "";
foreach (file; dirPath.expandTilde()
.buildNormalizedPath()
.dirEntries(SpanMode.shallow))
{}
}

0 comments on commit baf1669

Please sign in to comment.