aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorArtur Malabarba <bruce.connor.am@gmail.com>2015-03-02 23:29:15 -0300
committerArtur Malabarba <bruce.connor.am@gmail.com>2015-03-02 23:29:15 -0300
commit3aa5fe99b6f6d7e84a682243e7b8be7b7147c1e5 (patch)
tree7f0cedccae80564fc1aa25276bfdf9749e9281b9 /test
parentc00ed8c6bbd8e948a3142c71b3bbb3ab86c04959 (diff)
Fix tests
Diffstat (limited to 'test')
-rw-r--r--test/test-printing.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/test-printing.el b/test/test-printing.el
index 1ce7967..93ab064 100644
--- a/test/test-printing.el
+++ b/test/test-printing.el
@@ -115,13 +115,13 @@ after being run through `sx-tag--format'."
(ert-deftest sx-object-modification ()
"Test adding things to objects"
- (let ((object (list (cons 'owner "me"))))
+ (let ((object '((owner . "me"))))
(should
(equal (sx--ensure-owner-in-object 1 object)
'((owner . "me"))))
(should
(equal object '((owner . "me")))))
- (let ((object (list (cons 'not-owner "me"))))
+ (let ((object '((not-owner . "me"))))
(should
(equal (sx--ensure-owner-in-object 1 object)
'((owner . 1) (not-owner . "me"))))
@@ -139,13 +139,13 @@ after being run through `sx-tag--format'."
'((comments . ("comment")) (not-comments . (something)))))
(should
(equal object '((comments . ("comment")) (not-comments . (something))))))
- (let ((object '((not-answers (something)))))
+ (let ((object '((not-answers . (something)))))
(should
(equal (sx--add-answer-to-question-object "answer" object)
'((answers . ("answer")) (not-answers . (something)))))
(should
(equal object '((answers . ("answer")) (not-answers . (something))))))
- (let ((object '((answers (something)))))
+ (let ((object '((answers . (something)))))
(should
(equal (sx--add-answer-to-question-object "answer" object)
'((answers . (something "answer")))))