samth/test-bugs — Issue #106: in-generator breaks for value-less yields
Author: racket-bug-submit
Created: 2012-03-08 02:41:47+00:00
State: open
Labels: anon-submit, gnats-migrated

###### Originally submitted by Jay McCarthy on: Mon Aug 23 21:44:01 -0400 2010

Welcome to DrRacket, version 5.0.1.3--2010-08-02(-/f) [3m].
Language: racket; memory limit: 256 MB.
. . test: 1/1 test failures:
unsaved-editor814:6:1: test failure in '(for/list ((() (in-generator (yield))) (i (in-naturals))) i)
expected: '(0)
got: error: car: expects argument of type ; given '()
>

##### Steps to Reproduce:

```
#lang racket
(require racket/generator
tests/eli-tester)
```

```
(test
(for/list ([() (in-generator (yield))]
[i (in-naturals)])
i)
=>
(list 0))
```

##### Release:

5.0.1.3--2010-08-02(-/f)

##### Environment:

macosx "Darwin jay-mccarthys-macbook.local 10.4.0 Darwin Kernel Version 10.4.0: Fri Apr 23 18:28:53 PDT 2010; root:xnu-1504.7.4~1/RELEASE_I386 i386" (i386-macosx/3m) (get-display-depth) = 32
Human Language: english
(current-memory-use) 149370084

Collections:
(("/Users/jay/Library/Racket/5.0.1.3/collects" non-existent-path) ("/Users/jay/Dev/scm/plt/collects" ".gitignore" "2htdp" "afm" "algol60" "at-exp" "browser" "combinator-parser" "compiler" "config" "datalog" "defaults" "deinprogramm" "drracket" "drscheme" "dynext" "embedded-gui" "eopl" "errortrace" "ffi" "file" "framework" "frtime" "games" "graphics" "gui-debugger" "guibuilder" "handin-client" "handin-server" "help" "hierlist" "honu" "htdp" "html" "icons" "info-domain" "lang" "launcher" "lazy" "macro-debugger" "make" "meta" "mred" "mrlib" "mysterx" "mz" "mzcom" "mzlib" "mzscheme" "net" "openssl" "parser-tools" "plai" "planet" "plot" "preprocessor" "profile" "r5rs" "r6rs" "racket" "racklog" "rackunit" "raclog" "raco" "racunit" "reader" "readline" "redex" "repo-time-stamp" "repos-time-stamp" "rico" "rktunit" "rnrs" "s-exp" "schelog" "scheme" "schemeunit" "scribble" "scribblings" "scriblib" "setup" "sgl" "sirmail" "slatex" "slideshow" "srfi" "srpersist" "stepper" "string-constan!
ts" "swindle" "syntax" "syntax-color" "teachpack" "test-box-recovery" "test-engine" "tests" "tex2page" "texpict" "trace" "typed" "typed-scheme" "unstable" "version" "waterworld" "web-server" "wxme" "xml"))
Computer Language: (("Determine language from source") (#(#t print mixed-fraction-e #f #t debug) (default) #() "#lang racket\n" #t))

###### This bug was converted from Gnats bug [11123](http://bugs.racket-lang.org/query/?cmd=view&pr=11123).

[anon-submit jay AT racket-lang.org]