Skip to content

Commit

Permalink
[#577] Add a test for decoding negative integers
Browse files Browse the repository at this point in the history
  • Loading branch information
Bozhidar Batsov committed May 23, 2014
1 parent c261763 commit e5f4634
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/nrepl-bencode-tests.el
Original file line number Diff line number Diff line change
Expand Up @@ -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"))))
Expand Down

0 comments on commit e5f4634

Please sign in to comment.