[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/csharp-mode b1e237d 172/459: Add tests
From: |
ELPA Syncer |
Subject: |
[elpa] externals/csharp-mode b1e237d 172/459: Add tests |
Date: |
Sun, 22 Aug 2021 13:59:20 -0400 (EDT) |
branch: externals/csharp-mode
commit b1e237d687680d13a18ce5829948a3483819a8ce
Author: Vasilij Schneidermann <v.schneidermann@gmail.com>
Commit: Vasilij Schneidermann <v.schneidermann@gmail.com>
Add tests
---
csharp-mode-tests.el | 15 +++++++++++++++
test-files/fontification-test.cs | 2 ++
2 files changed, 17 insertions(+)
diff --git a/csharp-mode-tests.el b/csharp-mode-tests.el
index d088c43..2aa9281 100644
--- a/csharp-mode-tests.el
+++ b/csharp-mode-tests.el
@@ -67,6 +67,21 @@
"Type2" 'font-lock-type-face
)))
+(ert-deftest fontification-of-literals-allows-multi-line-strings ()
+ (require 'assess)
+ (should (assess-face-at=
+ "string Literal = \"multi-line\nstring\";"
+ 'csharp-mode
+ ;; should be interpreted as error
+ 18 'font-lock-warning-face
+ ))
+ (should (assess-face-at=
+ "string Literal = @\"multi-line\nstring\";"
+ 'csharp-mode
+ ;; should not be interpreted as error because of @
+ 19 'font-lock-string-face
+ )))
+
(ert-deftest fontification-of-compiler-directives ()
;; this replaces the manual test of
;; test-files/fontification-test-compiler-directives.cs, but file
diff --git a/test-files/fontification-test.cs b/test-files/fontification-test.cs
index c743ede..51a008a 100644
--- a/test-files/fontification-test.cs
+++ b/test-files/fontification-test.cs
@@ -2,3 +2,5 @@ public const string Literal1 = @"literal without trailing
slash";
public const bool Reference = true;
public const string Literal2 = @"literal with trailing slash\";
public const bool Reference = true;
+public const string Literal3 = @"multi-line
+literal";
- [elpa] externals/csharp-mode 8c5bae2 139/459: Fixup, (continued)
- [elpa] externals/csharp-mode 8c5bae2 139/459: Fixup, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode d0d7ec3 140/459: Merge pull request #58 from josteink/compilation-mode-fixes, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 49f7342 148/459: Make future editing sane., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode ffe87f9 150/459: Tests: refactor imenu-tests, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode b4fb58a 153/459: Update changelog., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode c314c65 157/459: Highlight text after #region or #pragma as comment, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 60e8171 159/459: Start update changelog and prepare for new version., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 8aeb816 164/459: Fix compiler warnings., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 775fafd 166/459: Make assess-package available for testing., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode acaa9bb 169/459: Make another fontification-test assess-based., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode b1e237d 172/459: Add tests,
ELPA Syncer <=
- [elpa] externals/csharp-mode c4a2dfd 176/459: Fixup tests., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 4f151a1 177/459: Fix CI by fixing byte-compilation., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 4cd07f9 178/459: Clean up fontification test., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 69d95d2 179/459: Make tests less noisy., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 3c1143d 180/459: Merge branch 'fix-verbatim-string-literals', ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 879beb4 184/459: imenu: Fix sorting of fields., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 26e2430 082/459: Updated readme and feature-list. Bump version., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode d4c7a5c 086/459: Support compilation output from msbuild /maxcpucount (/m)., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode e277562 084/459: Set all as the default Makefile target., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 165d1f2 206/459: Fix indexing of generic methods., ELPA Syncer, 2021/08/22