summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Arvydas Silanskas 2021-11-11 22:54:04 +0200
committerGravatar Arvydas Silanskas 2021-11-11 22:54:04 +0200
commit0fe8588181a9e3d45c644460676f72c38f309092 (patch)
tree2736a3c5db90f61fdbd110e20511fcdfe1e959b9
parentfix mapping implementations for dict-alter (diff)
fix kawa docker test
Diffstat (limited to '')
-rw-r--r--docker-compose.yml12
-rw-r--r--docker-kawa.sh7
-rw-r--r--makefile3
-rw-r--r--srfi-225-test.scm21
-rw-r--r--srfi/225.sld4
5 files changed, 30 insertions, 17 deletions
diff --git a/docker-compose.yml b/docker-compose.yml
index 3aa9e00..8ea257e 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -24,6 +24,18 @@ services:
source: .
target: /test/srfi-225
command: "sh /test/srfi-225/docker-chibi.sh"
+ kawa:
+ image: "schemers/kawa"
+ depends_on:
+ - srfi_225_test
+ volumes:
+ - dependencies-volume:/dependencies
+ - target:/target
+ - type: bind
+ source: .
+ target: /test/srfi-225
+ command: "sh /test/srfi-225/docker-kawa.sh"
volumes:
dependencies-volume:
+ target:
diff --git a/docker-kawa.sh b/docker-kawa.sh
index 64de401..bf3ad2e 100644
--- a/docker-kawa.sh
+++ b/docker-kawa.sh
@@ -1,4 +1,4 @@
-mkdir /target
+rm -r /target/*
for i in\
"srfi-27/srfi/27"\
@@ -18,6 +18,7 @@ for i in\
do
CLASSPATH=target kawa -d target -C "dependencies/$i.sld"
done
-
CLASSPATH=target kawa --r7rs -d target -C "test/srfi-225/srfi/225.sld"
-CLASSPATH=target kawa --r7rs "test/srfi-225/srfi-225-test.scm"
+
+cd "/test/srfi-225"
+CLASSPATH=/target kawa --r7rs "srfi-225-test.scm"
diff --git a/makefile b/makefile
index 20e4509..5e7b2ef 100644
--- a/makefile
+++ b/makefile
@@ -9,6 +9,9 @@ test-chibi-docker:
test-gauche-docker:
docker-compose run --rm gauche
+test-kawa-docker:
+ docker-compose run --rm kawa
+
test-chibi:
chibi-scheme -I . srfi-225-test.scm
diff --git a/srfi-225-test.scm b/srfi-225-test.scm
index 31f862d..68402bc 100644
--- a/srfi-225-test.scm
+++ b/srfi-225-test.scm
@@ -688,7 +688,7 @@
(test-group
"dict-for-each<"
(test-for-each (let* ((cmp (dict-comparator dtd (alist->dict '())))
- (ordering (and cmp (comparator-ordering-predicate cmp))))
+ (ordering (and cmp (comparator-ordered? cmp))))
ordering)
(lambda (proc)
(dict-for-each< dtd
@@ -703,7 +703,7 @@
(test-group
"dict-for-each<="
(test-for-each (let* ((cmp (dict-comparator dtd (alist->dict '())))
- (ordering (and cmp (comparator-ordering-predicate cmp))))
+ (ordering (and cmp (comparator-ordered? cmp))))
ordering)
(lambda (proc)
(dict-for-each<= dtd
@@ -718,7 +718,7 @@
(test-group
"dict-for-each>"
(test-for-each (let* ((cmp (dict-comparator dtd (alist->dict '())))
- (ordering (and cmp (comparator-ordering-predicate cmp))))
+ (ordering (and cmp (comparator-ordered? cmp))))
ordering)
(lambda (proc)
(dict-for-each> dtd
@@ -733,7 +733,7 @@
(test-group
"dict-for-each>="
(test-for-each (let* ((cmp (dict-comparator dtd (alist->dict '())))
- (ordering (and cmp (comparator-ordering-predicate cmp))))
+ (ordering (and cmp (comparator-ordered? cmp))))
ordering)
(lambda (proc)
(dict-for-each>= dtd
@@ -748,7 +748,7 @@
(test-group
"dict-for-each-in-open-interval"
(test-for-each (let* ((cmp (dict-comparator dtd (alist->dict '())))
- (ordering (and cmp (comparator-ordering-predicate cmp))))
+ (ordering (and cmp (comparator-ordered? cmp))))
ordering)
(lambda (proc)
(dict-for-each-in-open-interval dtd
@@ -763,7 +763,7 @@
(test-group
"dict-for-each-in-closed-interval"
(test-for-each (let* ((cmp (dict-comparator dtd (alist->dict '())))
- (ordering (and cmp (comparator-ordering-predicate cmp))))
+ (ordering (and cmp (comparator-ordered? cmp))))
ordering)
(lambda (proc)
(dict-for-each-in-closed-interval dtd
@@ -778,7 +778,7 @@
(test-group
"dict-for-each-in-open-closed-interval"
(test-for-each (let* ((cmp (dict-comparator dtd (alist->dict '())))
- (ordering (and cmp (comparator-ordering-predicate cmp))))
+ (ordering (and cmp (comparator-ordered? cmp))))
ordering)
(lambda (proc)
(dict-for-each-in-open-closed-interval dtd
@@ -793,7 +793,7 @@
(test-group
"dict-for-each-in-closed-open-interval"
(test-for-each (let* ((cmp (dict-comparator dtd (alist->dict '())))
- (ordering (and cmp (comparator-ordering-predicate cmp))))
+ (ordering (and cmp (comparator-ordered? cmp))))
ordering)
(lambda (proc)
(dict-for-each-in-closed-open-interval dtd
@@ -836,7 +836,7 @@
;; check all procs were called
(for-each
(lambda (index)
- (when (= 0 (vector-ref counter index))
+ (when (> 0 (vector-ref counter index))
(error "Untested procedure" index)))
(iota (vector-length counter))))
@@ -876,7 +876,8 @@
(cond-expand
((and (library (srfi 69))
- (not gauche)) ;; gauche has bug with comparator retrieval from srfi 69 table
+ (not gauche) ;; gauche has bug with comparator retrieval from srfi 69 table
+ )
(test-group
"srfi-69"
(do-test
diff --git a/srfi/225.sld b/srfi/225.sld
index aee7c59..a410b62 100644
--- a/srfi/225.sld
+++ b/srfi/225.sld
@@ -23,8 +23,6 @@
;; lookup
dict-ref
dict-ref/default
- dict-min-key
- dict-max-key
;; mutation
dict-set
@@ -104,8 +102,6 @@
dict-mutable?-id
dict-ref-id
dict-ref/default-id
- dict-min-key-id
- dict-max-key-id
dict-set-id
dict-adjoin-id
dict-delete-id
ght='13' alt='Gravatar' /> bencollins 4-5/+14 2003-04-23add libtoolize to bootstrapGravatar ddennedy 1-1/+10 2003-04-21added Dan Maas' rawiso docsGravatar ddennedy 1-32/+295 2003-04-07new_handle_on_port() error path fix from Jim RadfordGravatar dmaas 1-1/+3 2003-03-26add raw1394_new_handle_on_port() convenience functionGravatar dmaas 2-1/+41 2003-02-22Updates for new rawiso ioctl interface.Gravatar bencollins 3-37/+125 2003-01-15add iso_xmit_sync() and iso_xmit_write(); clean up iso handling a bitGravatar dmaas 5-39/+161 2003-01-15implement tag matching for rawiso receptionGravatar dmaas 3-4/+12 2003-01-06back out previous commit - don't drop the legacy API just yetGravatar dmaas 6-173/+130 2003-01-05emulate legacy ISO reception API on top of new rawiso APIGravatar dmaas 7-131/+174 2002-12-24update iso API for multi-channel reception and new packet buffer layoutGravatar dmaas 4-123/+236 2002-12-20oops, irq_interval needs to be signedGravatar anonymous 1-1/+1 2002-12-20dmaas - renamed exported arm definitions into the raw1394_ namespace; brought...Gravatar anonymous 3-124/+48 2002-12-16rawiso updates:Gravatar dmaas 3-18/+25 2002-11-18fix cplusplus extern C blockGravatar ddennedy 1-4/+4 2002-11-18merged rawiso branchGravatar ddennedy 7-6/+488