[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/haskell-tng-mode 8b6d545 178/385: split all the tests
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/haskell-tng-mode 8b6d545 178/385: split all the tests |
Date: |
Tue, 5 Oct 2021 23:59:26 -0400 (EDT) |
branch: elpa/haskell-tng-mode
commit 8b6d5459958032c022dd37084534c196259a441e
Author: Tseen She <ts33n.sh3@gmail.com>
Commit: Tseen She <ts33n.sh3@gmail.com>
split all the tests
---
test/haskell-tng-font-lock-test.el | 8 ++++----
test/haskell-tng-layout-test.el | 11 ++++++-----
test/haskell-tng-lexer-test.el | 14 ++++++++------
test/haskell-tng-sexp-test.el | 14 ++++++--------
test/haskell-tng-syntax-test.el | 11 ++++++-----
5 files changed, 30 insertions(+), 28 deletions(-)
diff --git a/test/haskell-tng-font-lock-test.el
b/test/haskell-tng-font-lock-test.el
index 0f4267b..21702ac 100644
--- a/test/haskell-tng-font-lock-test.el
+++ b/test/haskell-tng-font-lock-test.el
@@ -18,10 +18,10 @@
"faceup"))
;; to generate .faceup files, use faceup-view-buffer
-(ert-deftest haskell-tng-font-lock-file-tests ()
- (should (have-expected-faces (testdata "src/medley.hs")))
+(ert-deftest haskell-tng-font-lock-file-tests:medley ()
+ (should (have-expected-faces (testdata "src/medley.hs"))))
- (should (have-expected-faces (testdata "src/layout.hs")))
- )
+(ert-deftest haskell-tng-font-lock-file-tests:layout ()
+ (should (have-expected-faces (testdata "src/layout.hs"))))
;;; haskell-tng-font-lock-test.el ends here
diff --git a/test/haskell-tng-layout-test.el b/test/haskell-tng-layout-test.el
index a69c46a..2a410cd 100644
--- a/test/haskell-tng-layout-test.el
+++ b/test/haskell-tng-layout-test.el
@@ -11,14 +11,15 @@
(require 'haskell-tng-testutils
"test/haskell-tng-testutils.el")
-(ert-deftest haskell-tng-layout-file-tests ()
+(ert-deftest haskell-tng-layout-file-tests:layout ()
;; the Haskell2010 test case
- (should (have-expected-layout (testdata "src/layout.hs")))
+ (should (have-expected-layout (testdata "src/layout.hs"))))
- (should (have-expected-layout (testdata "src/indentation.hs")))
+(ert-deftest haskell-tng-layout-file-tests:indentation ()
+ (should (have-expected-layout (testdata "src/indentation.hs"))))
- (should (have-expected-layout (testdata "src/medley.hs")))
- )
+(ert-deftest haskell-tng-layout-file-tests:medley ()
+ (should (have-expected-layout (testdata "src/medley.hs"))))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Testing utilities
diff --git a/test/haskell-tng-lexer-test.el b/test/haskell-tng-lexer-test.el
index 5fc7c0e..efbfded 100644
--- a/test/haskell-tng-lexer-test.el
+++ b/test/haskell-tng-lexer-test.el
@@ -11,15 +11,17 @@
(require 'haskell-tng-testutils
"test/haskell-tng-testutils.el")
-(ert-deftest haskell-tng-lexer-file-tests ()
+(ert-deftest haskell-tng-lexer-file-tests:layout ()
(should (have-expected-forward-lex (testdata "src/layout.hs")))
+ (should (have-expected-backward-lex (testdata "src/layout.hs"))))
+
+(ert-deftest haskell-tng-lexer-file-tests:indentation ()
(should (have-expected-forward-lex (testdata "src/indentation.hs")))
- (should (have-expected-forward-lex (testdata "src/medley.hs")))
+ (should (have-expected-backward-lex (testdata "src/indentation.hs"))))
- (should (have-expected-backward-lex (testdata "src/layout.hs")))
- (should (have-expected-backward-lex (testdata "src/indentation.hs")))
- (should (have-expected-backward-lex (testdata "src/medley.hs")))
- )
+(ert-deftest haskell-tng-lexer-file-tests:medley ()
+ (should (have-expected-forward-lex (testdata "src/medley.hs")))
+ (should (have-expected-backward-lex (testdata "src/medley.hs"))))
(ert-deftest haskell-tng-lexer-state-invalidation-tests ()
(with-temp-buffer
diff --git a/test/haskell-tng-sexp-test.el b/test/haskell-tng-sexp-test.el
index 4785227..0aa23f7 100644
--- a/test/haskell-tng-sexp-test.el
+++ b/test/haskell-tng-sexp-test.el
@@ -20,16 +20,14 @@
;; However, this fails to find all bounds because there is ambiguity at virtual
;; tokens.
-(ert-deftest haskell-tng-sexp-file-tests ()
- (should (have-expected-sexps (testdata "src/layout.hs")))
+(ert-deftest haskell-tng-sexp-file-tests:layout ()
+ (should (have-expected-sexps (testdata "src/layout.hs"))))
- (should (have-expected-sexps (testdata "src/indentation.hs")))
+(ert-deftest haskell-tng-sexp-file-tests:indentation ()
+ (should (have-expected-sexps (testdata "src/indentation.hs"))))
- (should (have-expected-sexps (testdata "src/grammar.hs")))
-
- ;; to the extent that they aren't even useful
- ;;(should (have-expected-sexps (testdata "src/medley.hs")))
- )
+(ert-deftest haskell-tng-sexp-file-tests:grammar ()
+ (should (have-expected-sexps (testdata "src/grammar.hs"))))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; SMIE testing utilities
diff --git a/test/haskell-tng-syntax-test.el b/test/haskell-tng-syntax-test.el
index c8a64a4..ad94879 100644
--- a/test/haskell-tng-syntax-test.el
+++ b/test/haskell-tng-syntax-test.el
@@ -49,12 +49,13 @@
(s-join "" codes)))
;; to generate .faceup files, use faceup-view-buffer
-(ert-deftest haskell-tng-syntax-file-tests ()
- (should (have-expected-syntax (testdata "src/medley.hs")))
+(ert-deftest haskell-tng-syntax-file-tests:medley ()
+ (should (have-expected-syntax (testdata "src/medley.hs"))))
- (should (have-expected-syntax (testdata "src/layout.hs")))
+(ert-deftest haskell-tng-syntax-file-tests:layout ()
+ (should (have-expected-syntax (testdata "src/layout.hs"))))
- (should (have-expected-syntax (testdata "src/indentation.hs")))
- )
+(ert-deftest haskell-tng-syntax-file-tests:indentation ()
+ (should (have-expected-syntax (testdata "src/indentation.hs"))))
;;; haskell-tng-syntax-test.el ends here
- [nongnu] elpa/haskell-tng-mode 0d04664 115/385: implement batch compilation, (continued)
- [nongnu] elpa/haskell-tng-mode 0d04664 115/385: implement batch compilation, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode adb3c50 143/385: better insert indentation suggestions, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode e79577e 132/385: match ghc source paths when compiling, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 8ec4807 145/385: somehow dropped font-lock-extend-region-multiline, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode d3a6a22 147/385: no todos in the test/src dir, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 85f20b1 154/385: indent coproducts, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 3dbb883 013/385: more progress on multiline type expansion, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode c6382e1 036/385: almost got it with imports, then I lost it..., ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode f3e3838 070/385: starting to transcribe the expression table, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode ceaec13 098/385: groundwork for tab cycling, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 8b6d545 178/385: split all the tests,
ELPA Syncer <=
- [nongnu] elpa/haskell-tng-mode 4e1f51c 170/385: indent is deriving aware, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 3ddafce 181/385: disambiguate -> during lexing, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 6b4dca0 189/385: note other build tools, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode cc657a8 197/385: support type alignment options, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode a7098e8 194/385: stylish haskell outputs failures, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 21fe2a0 221/385: fix broken test assertions, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 907255e 026/385: some namespacing, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode e7eaa38 077/385: some ideas for cabal, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode ddd0706 108/385: suggest next line indentation, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 7a8f714 139/385: indent back to the same level of `do', ELPA Syncer, 2021/10/06