aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTheodor Thornhill2023-02-03 09:05:13 +0100
committerTheodor Thornhill2023-02-04 09:19:40 +0100
commit8870b54db995e4e8fc6ecfcdd85c4b0e6545dd29 (patch)
treef20c8976d9a889f3a60d008603ac1975d41657e9
parent873a0a15085629ac54fdee609c82b66583e3aefc (diff)
downloademacs-8870b54db995e4e8fc6ecfcdd85c4b0e6545dd29.tar.gz
emacs-8870b54db995e4e8fc6ecfcdd85c4b0e6545dd29.zip
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
-rw-r--r--test/lisp/progmodes/compile-tests.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/lisp/progmodes/compile-tests.el b/test/lisp/progmodes/compile-tests.el
index 53dc7f2a133..078eef36774 100644
--- a/test/lisp/progmodes/compile-tests.el
+++ b/test/lisp/progmodes/compile-tests.el
@@ -382,6 +382,10 @@
382 ;; sun-ada 382 ;; sun-ada
383 (sun-ada "/home3/xdhar/rcds_rc/main.a, line 361, char 6:syntax error: \",\" inserted" 383 (sun-ada "/home3/xdhar/rcds_rc/main.a, line 361, char 6:syntax error: \",\" inserted"
384 1 6 361 "/home3/xdhar/rcds_rc/main.a") 384 1 6 361 "/home3/xdhar/rcds_rc/main.a")
385 (typescript-tsc-plain "/home/foo/greeter.ts(30,12): error TS2339: Property 'foo' does not exist."
386 1 12 30 "/home/foo/greeter.ts")
387 (typescript-tsc-pretty "src/resources/document.ts:140:22 - error TS2362: something."
388 1 22 140 "src/resources/document.ts")
385 ;; 4bsd 389 ;; 4bsd
386 (edg-1 "/usr/src/foo/foo.c(8): warning: w may be used before set" 390 (edg-1 "/usr/src/foo/foo.c(8): warning: w may be used before set"
387 1 nil 8 "/usr/src/foo/foo.c") 391 1 nil 8 "/usr/src/foo/foo.c")
@@ -495,7 +499,7 @@ The test data is in `compile-tests--test-regexps-data'."
495 (compilation-num-warnings-found 0) 499 (compilation-num-warnings-found 0)
496 (compilation-num-infos-found 0)) 500 (compilation-num-infos-found 0))
497 (mapc #'compile--test-error-line compile-tests--test-regexps-data) 501 (mapc #'compile--test-error-line compile-tests--test-regexps-data)
498 (should (eq compilation-num-errors-found 98)) 502 (should (eq compilation-num-errors-found 100))
499 (should (eq compilation-num-warnings-found 35)) 503 (should (eq compilation-num-warnings-found 35))
500 (should (eq compilation-num-infos-found 28))))) 504 (should (eq compilation-num-infos-found 28)))))
501 505