mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-10 14:00:21 +02:00
elisp test fixes
* test-suite/tests/elisp-compiler.test ("Exceptions")["catch and throw"]: Use a freshly-consed object instead of a literal object. This test previously assumed that similar literal objects are never identical, which no longer true. ("Equivalence Predifcates")["eq"]: Likewise.
This commit is contained in:
parent
8f2f65668a
commit
59e46065ce
1 changed files with 3 additions and 3 deletions
|
@ -169,7 +169,7 @@
|
|||
(= (catch 'abc (throw 'abc 2) 1) 2)
|
||||
(= (catch 'abc (catch 'def (throw 'abc (1+ 0)) 2) 3) 1)
|
||||
(= (catch 'abc (catch 'def (throw 'def 1) 2) 3) 3)
|
||||
(= (catch mylist (catch '(1 2) (throw mylist 1) 2) 3) 1)))
|
||||
(= (catch mylist (catch (list 1 2) (throw mylist 1) 2) 3) 1)))
|
||||
|
||||
(pass-if "unwind-protect"
|
||||
(progn (setq a 0 b 1 c 1)
|
||||
|
@ -563,8 +563,8 @@
|
|||
(setq some-string "abc")
|
||||
(and (eq 2 2) (not (eq 1 2))
|
||||
(eq 'abc 'abc) (not (eq 'abc 'def))
|
||||
(eq some-string some-string) (not (eq some-string "abc"))
|
||||
(eq some-list some-list) (not (eq some-list '(1 2)))))))
|
||||
(eq some-string some-string) (not (eq some-string (string 97 98 99)))
|
||||
(eq some-list some-list) (not (eq some-list (list 1 2)))))))
|
||||
|
||||
(with-test-prefix/compile "Number Built-Ins"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue