From 1a26dcda75950531ff5a9c08a87993c05a51fa16 Mon Sep 17 00:00:00 2001 From: WebFreak001 Date: Thu, 11 Jan 2024 02:08:58 +0100 Subject: [PATCH] fix `dub test :dcd` fix #350 Co-authored-by: Andrei Horodniceanu --- .github/workflows/unittest.yml | 7 +++++++ dcd/dub.selections.json | 2 ++ dcd/source/served/dcd/client.d | 8 ++++---- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/.github/workflows/unittest.yml b/.github/workflows/unittest.yml index 00e7da59..e2b05b1d 100644 --- a/.github/workflows/unittest.yml +++ b/.github/workflows/unittest.yml @@ -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 diff --git a/dcd/dub.selections.json b/dcd/dub.selections.json index 322586b1..6e61c402 100644 --- a/dcd/dub.selections.json +++ b/dcd/dub.selections.json @@ -1,5 +1,7 @@ { "fileVersion": 1, "versions": { + "dcd": "0.16.0-beta.2", + "msgpack-d": "1.0.5" } } diff --git a/dcd/source/served/dcd/client.d b/dcd/source/served/dcd/client.d index 84afa9a4..67f5d13b 100644 --- a/dcd/source/served/dcd/client.d +++ b/dcd/source/served/dcd/client.d @@ -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); }