[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/d-mode 609816b 219/346: tests: Move d-forward-type tests t
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/d-mode 609816b 219/346: tests: Move d-forward-type tests to new test file |
Date: |
Sun, 29 Aug 2021 11:00:34 -0400 (EDT) |
branch: elpa/d-mode
commit 609816b4fe8c23a0c544d9026d98c5a380de4a32
Author: Vladimir Panteleev <git@thecybershadow.net>
Commit: Vladimir Panteleev <git@thecybershadow.net>
tests: Move d-forward-type tests to new test file
---
tests/I0095.d | 3 ---
tests/I0095.d.html | 3 ---
tests/fonts.d | 4 ----
tests/fonts.d.html | 4 ----
tests/fonts_types.d | 8 ++++++++
tests/fonts_types.d.html | 8 ++++++++
6 files changed, 16 insertions(+), 14 deletions(-)
diff --git a/tests/I0095.d b/tests/I0095.d
index c51a2c3..4080419 100644
--- a/tests/I0095.d
+++ b/tests/I0095.d
@@ -7,6 +7,3 @@ void foo(const(Type) param);
const(Type) bar(const(Type) param);
const(Type) baz(ref const(Type) param, lazy int param2);
-
-const(Tpl!int) var1;
-const(Tpl!(int, "", [1, 2, 3])*) var2;
diff --git a/tests/I0095.d.html b/tests/I0095.d.html
index 055ba0e..c9ac7cf 100644
--- a/tests/I0095.d.html
+++ b/tests/I0095.d.html
@@ -7,6 +7,3 @@
<span class="keyword">const</span>(<span class="type">Type</span>) <span
class="function-name">bar</span>(<span class="keyword">const</span>(<span
class="type">Type</span>) <span class="variable-name">param</span>);
<span class="keyword">const</span>(<span class="type">Type</span>) <span
class="function-name">baz</span>(<span class="keyword">ref const</span>(<span
class="type">Type</span>) <span class="variable-name">param</span>, <span
class="keyword">lazy</span> <span class="type">int</span> <span
class="variable-name">param2</span>);
-
-<span class="keyword">const</span>(<span class="type">Tpl</span><span
class="negation-char">!</span><span class="type">int</span>) <span
class="variable-name">var1</span>;
-<span class="keyword">const</span>(<span class="type">Tpl</span><span
class="negation-char">!</span>(<span class="type">int</span>, <span
class="string">""</span>, [1, 2, 3])*) <span
class="variable-name">var2</span>;
diff --git a/tests/fonts.d b/tests/fonts.d
index 2495554..a9b6ee8 100644
--- a/tests/fonts.d
+++ b/tests/fonts.d
@@ -10,8 +10,4 @@ void main()
aa[s].length;
run(a ~ b);
-
- assert(to!string(d) == to!string(double.max));
-
- private void resetFile(string name, scope const(char)[] stdioOpenmode,
bool isPopened) @trusted {}
}
diff --git a/tests/fonts.d.html b/tests/fonts.d.html
index 1d45b19..27a9b4d 100644
--- a/tests/fonts.d.html
+++ b/tests/fonts.d.html
@@ -10,8 +10,4 @@
aa[s].length;
run(a ~ b);
-
- <span class="keyword">assert</span>(to<span
class="negation-char">!</span><span class="type">string</span>(d) == to<span
class="negation-char">!</span><span class="type">string</span>(<span
class="type">double</span>.max));
-
- <span class="keyword">private</span> <span class="type">void</span>
<span class="function-name">resetFile</span>(<span class="type">string</span>
<span class="variable-name">name</span>, <span class="keyword">scope
const</span>(<span class="type">char</span>)[] <span
class="variable-name">stdioOpenmode</span>, <span class="type">bool</span>
<span class="variable-name">isPopened</span>) <span
class="c-annotation-face">@trusted</span> {}
}
diff --git a/tests/fonts_types.d b/tests/fonts_types.d
new file mode 100644
index 0000000..d87091e
--- /dev/null
+++ b/tests/fonts_types.d
@@ -0,0 +1,8 @@
+// #run: (d-test-fontification)
+
+const(Tpl!int) var1;
+const(Tpl!(int, "", [1, 2, 3])*) var2;
+
+assert(to!string(d) == to!string(double.max));
+
+private void resetFile(string name, scope const(char)[] stdioOpenmode, bool
isPopened) @trusted {}
diff --git a/tests/fonts_types.d.html b/tests/fonts_types.d.html
new file mode 100644
index 0000000..3d04006
--- /dev/null
+++ b/tests/fonts_types.d.html
@@ -0,0 +1,8 @@
+<span class="comment-delimiter">// </span><span class="comment">#run:
(d-test-fontification)
+</span>
+<span class="keyword">const</span>(<span class="type">Tpl</span><span
class="negation-char">!</span><span class="type">int</span>) <span
class="variable-name">var1</span>;
+<span class="keyword">const</span>(<span class="type">Tpl</span><span
class="negation-char">!</span>(<span class="type">int</span>, <span
class="string">""</span>, [1, 2, 3])*) <span
class="variable-name">var2</span>;
+
+<span class="keyword">assert</span>(to<span
class="negation-char">!</span><span class="type">string</span>(d) == to<span
class="negation-char">!</span><span class="type">string</span>(<span
class="type">double</span>.max));
+
+<span class="keyword">private</span> <span class="type">void</span> <span
class="function-name">resetFile</span>(<span class="type">string</span> <span
class="variable-name">name</span>, <span class="keyword">scope
const</span>(<span class="type">char</span>)[] <span
class="variable-name">stdioOpenmode</span>, <span class="type">bool</span>
<span class="variable-name">isPopened</span>) <span
class="c-annotation-face">@trusted</span> {}
- [nongnu] elpa/d-mode 5e08129 192/346: Fix indentation of function out contracts, (continued)
- [nongnu] elpa/d-mode 5e08129 192/346: Fix indentation of function out contracts, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 06fb0ff 189/346: Fix indentation of enums with a base type, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 1afddc7 190/346: Fix a typo in a regex, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 382a677 195/346: Use c-major-mode-is, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 9edcfbd 197/346: Remove unused bits from d-in-knr-argdecl, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 175c6e5 193/346: Fix indentation of function constraints/contracts?, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 5fdba4e 202/346: Add pragma keyword, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 51b1af1 203/346: Fix K&R region detection and body-less function declarations, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode b5fb492 204/346: Fix fontification of manifest (enum) constants, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode e52434e 218/346: d-mode-test.el: Save actual result to file in case of mismatch, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 609816b 219/346: tests: Move d-forward-type tests to new test file,
ELPA Syncer <=
- [nongnu] elpa/d-mode 4d9f9ce 211/346: Drop support for Emacs 24, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode f2b4aec 205/346: Fix fontification of "a in b" expressions, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode f69e94e 207/346: Change test suite enumeration and activation, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode b0a59de 214/346: Fix mis-parsing of concatenating two variables, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 445c696 210/346: Implement a more complete description for D type syntax, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode ed0de34 222/346: Refactor "this" (constructor) handling, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode aaa704a 216/346: Fix coverage issues in d-forward-type, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 572d707 221/346: Improve comprehension of constness and storage classes, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 64afe5f 206/346: .travis.yml: Test against more Emacs versions, ELPA Syncer, 2021/08/29
- [nongnu] elpa/d-mode 02733b0 223/346: Remove some redundant progns, ELPA Syncer, 2021/08/29