diff options
author | Michael Griffiths <mikey@cich.li> | 2015-05-19 12:44:07 +0100 |
---|---|---|
committer | Michael Griffiths <mikey@cich.li> | 2015-05-19 12:51:02 +0100 |
commit | c43b727e6cef67a84cedbfea1f45c2b952da7817 (patch) | |
tree | ccaea5dae7804b65248ea8e53e17c67157378f6e /test | |
parent | 48c680ee928efb524091ad5a3b0865b3a13aff48 (diff) |
Remove carriage returns when decoding strings
Fixes #1100.
Diffstat (limited to 'test')
-rw-r--r-- | test/nrepl-bencode-tests.el | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/nrepl-bencode-tests.el b/test/nrepl-bencode-tests.el index 9755c735..471cb4b9 100644 --- a/test/nrepl-bencode-tests.el +++ b/test/nrepl-bencode-tests.el @@ -21,6 +21,12 @@ If object is incomplete, return a decoded path." (ert-deftest test-nrepl-bdecode-string () (should (equal '("spam") (nrepl-bdecode-string "4:spam")))) +(ert-deftest test-nrepl-bdecode-string-platform-specific-newlines () + (should (equal '("spam\n") (nrepl-bdecode-string "5:spam +"))) + (should (equal '("spam\n") (nrepl-bdecode-string "6:spam +
")))) + (ert-deftest test-nrepl-bdecode-integer () (should (equal '(3) (nrepl-bdecode-string "i3e")))) |