Browse Source

ERT: Spreadsheet references more sensitive

* testing/lisp/test-org-table.el:
(test-org-table/org-table-convert-refs-to-an/1):
(test-org-table/org-table-convert-refs-to-rc/1): Row and column number
different.
Michael Brand 8 years ago
parent
commit
4b2aa43ce6
1 changed files with 4 additions and 4 deletions
  1. 4 4
      testing/lisp/test-org-table.el

+ 4 - 4
testing/lisp/test-org-table.el

@@ -877,9 +877,9 @@ See also http://orgmode.org/worg/org-tutorials/org-lookups.html ."
   (should (equal "[0,1]" (f '( "inf" "1") nil t nil))))
   (should (equal "[0,1]" (f '( "inf" "1") nil t nil))))
 
 
 (ert-deftest test-org-table/org-table-convert-refs-to-an/1 ()
 (ert-deftest test-org-table/org-table-convert-refs-to-an/1 ()
-  "Simple reference @1$1."
+  "Simple reference @2$1."
   (should
   (should
-   (string= "A1" (org-table-convert-refs-to-an "@1$1"))))
+   (string= "A2" (org-table-convert-refs-to-an "@2$1"))))
 
 
 ;; TODO: Test broken
 ;; TODO: Test broken
 ;; (ert-deftest test-org-table/org-table-convert-refs-to-an/2 ()
 ;; (ert-deftest test-org-table/org-table-convert-refs-to-an/2 ()
@@ -893,9 +893,9 @@ See also http://orgmode.org/worg/org-tutorials/org-lookups.html ."
    (string= "C& = remote(FOO, @@#B&)" (org-table-convert-refs-to-an "$3 = remote(FOO, @@#$2)"))))
    (string= "C& = remote(FOO, @@#B&)" (org-table-convert-refs-to-an "$3 = remote(FOO, @@#$2)"))))
 
 
 (ert-deftest test-org-table/org-table-convert-refs-to-rc/1 ()
 (ert-deftest test-org-table/org-table-convert-refs-to-rc/1 ()
-  "Simple reference @1$1."
+  "Simple reference @2$1."
   (should
   (should
-   (string= "@1$1" (org-table-convert-refs-to-rc "A1"))))
+   (string= "@2$1" (org-table-convert-refs-to-rc "A2"))))
 
 
 (ert-deftest test-org-table/org-table-convert-refs-to-rc/2 ()
 (ert-deftest test-org-table/org-table-convert-refs-to-rc/2 ()
   "Self reference $0."
   "Self reference $0."