@@ -2106,15 +2106,19 @@ Image(filename='%s', width=300)" file)
2106
2106
(ert-deftest jupyter-org-result ()
2107
2107
:tags '(org )
2108
2108
(let ((req (jupyter-org-request)))
2109
- (should (equal (jupyter-org-result req (list :text/plain " foo" ))
2110
- '(fixed-width (:value " foo" ))))
2111
- (should (equal (jupyter-org-result req (list :text/html " foo" ))
2112
- '(export-block (:type " html" :value " foo\n " ))))
2109
+ (let ((res (jupyter-org-result req (list :text/plain " foo" ))))
2110
+ (should (eq (org-element-type res) 'fixed-width ))
2111
+ (should (equal (org-element-property :value res) " foo" )))
2112
+ (let ((res (jupyter-org-result req (list :text/html " foo" ))))
2113
+ (should (eq (org-element-type res) 'export-block ))
2114
+ (should (equal (org-element-property :type res) " html" ))
2115
+ (should (equal (org-element-property :value res) " foo\n " )))
2113
2116
; ; Calls `org-babel-script-escape' for scalar data
2114
2117
(should (equal (jupyter-org-result req (list :text/plain " [1, 2, 3]" ))
2115
2118
" | 1 | 2 | 3 |\n " ))
2116
- (should (equal (jupyter-org-result req (list :text/plain " [1, 2, 3] Foo" ))
2117
- '(fixed-width (:value " [1, 2, 3] Foo" ))))))
2119
+ (let ((res (jupyter-org-result req (list :text/plain " [1, 2, 3] Foo" ))))
2120
+ (should (eq (org-element-type res) 'fixed-width ))
2121
+ (should (equal (org-element-property :value res) " [1, 2, 3] Foo" )))))
2118
2122
2119
2123
(ert-deftest jupyter-org-request-at-point ()
2120
2124
:tags '(org )
0 commit comments