Skip to content

Commit

Permalink
fix dub test :dcd
Browse files Browse the repository at this point in the history
fix #350

Co-authored-by: Andrei Horodniceanu <[email protected]>
  • Loading branch information
WebFreak001 and the-horo committed Jan 11, 2024
1 parent c13fd87 commit 1a26dcd
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/unittest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,13 @@ jobs:
# shouldn't break other OSes
MACOSX_DEPLOYMENT_TARGET: '10.12'

- name: DCD communication library tests
run: dub test :dcd
timeout-minutes: 5
env:
# shouldn't break other OSes
MACOSX_DEPLOYMENT_TARGET: '10.12'

- name: LSP tests
run: dub test :lsp
timeout-minutes: 10
Expand Down
2 changes: 2 additions & 0 deletions dcd/dub.selections.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"fileVersion": 1,
"versions": {
"dcd": "0.16.0-beta.2",
"msgpack-d": "1.0.5"
}
}
8 changes: 4 additions & 4 deletions dcd/source/served/dcd/client.d
Original file line number Diff line number Diff line change
Expand Up @@ -690,8 +690,8 @@ private string unescapeTabs(string val)

unittest
{
shouldEqual("hello world", "hello world".unescapeTabs);
shouldEqual("hello\nworld", "hello\\nworld".unescapeTabs);
shouldEqual("hello\\nworld", "hello\\\\nworld".unescapeTabs);
shouldEqual("hello\\\nworld", "hello\\\\\\nworld".unescapeTabs);
assert("hello world" == "hello world".unescapeTabs);
assert("hello\nworld" == "hello\\nworld".unescapeTabs);
assert("hello\\nworld" == "hello\\\\nworld".unescapeTabs);
assert("hello\\\nworld" == "hello\\\\\\nworld".unescapeTabs);
}

0 comments on commit 1a26dcd

Please sign in to comment.