[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emacs-29 8870b54db9 2/2: Add tests for compilation support for TypeScrip
From: |
Theodor Thornhill |
Subject: |
emacs-29 8870b54db9 2/2: Add tests for compilation support for TypeScript (bug#61104) |
Date: |
Sat, 4 Feb 2023 03:20:41 -0500 (EST) |
branch: emacs-29
commit 8870b54db995e4e8fc6ecfcdd85c4b0e6545dd29
Author: Theodor Thornhill <theo@thornhill.no>
Commit: Theodor Thornhill <theo@thornhill.no>
Add tests for compilation support for TypeScript (bug#61104)
* test/lisp/progmodes/compile-tests.el
(compile-tests--test-regexps-data): Add new test-cases.
(compile-test-error-regexps): Increase expected errors
---
test/lisp/progmodes/compile-tests.el | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/test/lisp/progmodes/compile-tests.el
b/test/lisp/progmodes/compile-tests.el
index 53dc7f2a13..078eef3677 100644
--- a/test/lisp/progmodes/compile-tests.el
+++ b/test/lisp/progmodes/compile-tests.el
@@ -382,6 +382,10 @@
;; sun-ada
(sun-ada "/home3/xdhar/rcds_rc/main.a, line 361, char 6:syntax error:
\",\" inserted"
1 6 361 "/home3/xdhar/rcds_rc/main.a")
+ (typescript-tsc-plain "/home/foo/greeter.ts(30,12): error TS2339: Property
'foo' does not exist."
+ 1 12 30 "/home/foo/greeter.ts")
+ (typescript-tsc-pretty "src/resources/document.ts:140:22 - error TS2362:
something."
+ 1 22 140 "src/resources/document.ts")
;; 4bsd
(edg-1 "/usr/src/foo/foo.c(8): warning: w may be used before set"
1 nil 8 "/usr/src/foo/foo.c")
@@ -495,7 +499,7 @@ The test data is in `compile-tests--test-regexps-data'."
(compilation-num-warnings-found 0)
(compilation-num-infos-found 0))
(mapc #'compile--test-error-line compile-tests--test-regexps-data)
- (should (eq compilation-num-errors-found 98))
+ (should (eq compilation-num-errors-found 100))
(should (eq compilation-num-warnings-found 35))
(should (eq compilation-num-infos-found 28)))))