Skip to content

Commit 1a26dcd

Browse files
WebFreak001the-horo
andcommitted
fix dub test :dcd
fix #350 Co-authored-by: Andrei Horodniceanu <[email protected]>
1 parent c13fd87 commit 1a26dcd

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

.github/workflows/unittest.yml

+7
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,13 @@ jobs:
4242
# shouldn't break other OSes
4343
MACOSX_DEPLOYMENT_TARGET: '10.12'
4444

45+
- name: DCD communication library tests
46+
run: dub test :dcd
47+
timeout-minutes: 5
48+
env:
49+
# shouldn't break other OSes
50+
MACOSX_DEPLOYMENT_TARGET: '10.12'
51+
4552
- name: LSP tests
4653
run: dub test :lsp
4754
timeout-minutes: 10

dcd/dub.selections.json

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
{
22
"fileVersion": 1,
33
"versions": {
4+
"dcd": "0.16.0-beta.2",
5+
"msgpack-d": "1.0.5"
46
}
57
}

dcd/source/served/dcd/client.d

+4-4
Original file line numberDiff line numberDiff line change
@@ -690,8 +690,8 @@ private string unescapeTabs(string val)
690690

691691
unittest
692692
{
693-
shouldEqual("hello world", "hello world".unescapeTabs);
694-
shouldEqual("hello\nworld", "hello\\nworld".unescapeTabs);
695-
shouldEqual("hello\\nworld", "hello\\\\nworld".unescapeTabs);
696-
shouldEqual("hello\\\nworld", "hello\\\\\\nworld".unescapeTabs);
693+
assert("hello world" == "hello world".unescapeTabs);
694+
assert("hello\nworld" == "hello\\nworld".unescapeTabs);
695+
assert("hello\\nworld" == "hello\\\\nworld".unescapeTabs);
696+
assert("hello\\\nworld" == "hello\\\\\\nworld".unescapeTabs);
697697
}

0 commit comments

Comments
 (0)