fix from Will for set-port-position test by getting a position that will be used later (PR 9993)

svn: r12965
This commit is contained in:
Matthew Flatt 2009-01-01 21:36:37 +00:00
parent 1c38bd2d3f
commit 5e9b0c157a

View File

@ -628,7 +628,9 @@
(test (port-has-port-position? p) #t)
(test (port-has-set-port-position!? p) #t)
(test (port-position p) 0)
(test/unspec (put-string p "abc"))
(test/unspec (put-string p "ab"))
(test (port-position p) 2)
(test/unspec (put-string p "c"))
(flush-output-port p)
(test accum '(#\c #\b #\a))
(test (port-position p) 3)