summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorBozhidar Batsov <bozhidar@tradeo.com>2014-05-23 19:09:11 +0300
committerBozhidar Batsov <bozhidar@tradeo.com>2014-05-23 19:09:11 +0300
commite5f4634ff59373cce9876315250756f935dab3b1 (patch)
treef030530d93546af6ba0133a309fd268f7df5ba2c /test
parentc261763ea48d853a7add23e6fe4af5712d6ecc0d (diff)
[#577] Add a test for decoding negative integers
Diffstat (limited to 'test')
-rw-r--r--test/nrepl-bencode-tests.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/nrepl-bencode-tests.el b/test/nrepl-bencode-tests.el
index 6915b510..362f7f50 100644
--- a/test/nrepl-bencode-tests.el
+++ b/test/nrepl-bencode-tests.el
@@ -6,6 +6,9 @@
(ert-deftest test-nrepl-decode-integer ()
(should (equal '(3) (nrepl-decode "i3e"))))
+(ert-deftest test-nrepl-decode-negative-integer ()
+ (should (equal '(-3) (nrepl-decode "i-3e"))))
+
(ert-deftest test-nrepl-bdecode-list ()
(should (equal '(("spam" "eggs"))
(nrepl-decode "l4:spam4:eggse"))))