fix equal? between an array and a non-array
authorAndy Wingo <wingo@pobox.com>
Tue, 30 Mar 2010 22:05:01 +0000 (00:05 +0200)
committerAndy Wingo <wingo@pobox.com>
Tue, 30 Mar 2010 22:05:01 +0000 (00:05 +0200)
commit3ffd1ba96e986581d97079308fc15ef1fc933cdb
treeff23f8f950b47fc3c335706196b20b5d4c0ca137
parentd26383f427245e088401f53af64b44062750925e
fix equal? between an array and a non-array

OK let's try again. While the thanks go to Daniel Llorens del Río for
the tip, the blame continues going to me :)

* test-suite/Makefile.am:
* test-suite/tests/arrays.test: Add a test.

* libguile/array-map.c (raeql): Handle a few 0-dimensional cases. If the
  shapes of the arrays don't match, just return #f instead of raising
  an error.
libguile/array-map.c
test-suite/Makefile.am
test-suite/tests/arrays.test [new file with mode: 0644]