Commit Graph

125 Commits

Author SHA1 Message Date
Eli Barzilay
672910f27b Lots of bad TAB eliminations.
I started from tabs that are not on the beginning of lines, and in
several places I did further cleanings.

If you're worried about knowing who wrote some code, for example, if you
get to this commit in "git blame", then note that you can use the "-w"
flag in many git commands to ignore whitespaces.  For example, to see
per-line authors, use "git blame -w <file>".  Another example: to see
the (*much* smaller) non-whitespace changes in this (or any other)
commit, use "git log -p -w -1 <sha1>".
2012-11-07 11:22:20 -05:00
John Clements
f60d57a27f updated manual tests 2012-10-22 14:57:38 -07:00
John Clements
c01e8c1564 refactored to reduce stepper dependencies 2012-06-19 23:51:59 -07:00
Eli Barzilay
17090fca4f A bunch of fprintf' -> eprintf' conversions (and a few related things). 2012-05-06 12:06:00 -04:00
John Clements
8d6e9e79a4 cleanup and refactoring of run-teaching-program, minor teachpack stepper fix
It looks like run-teaching-program hasn't been touched in quite a while.
To begin with, the "rewrite-module" function used to add code to print
out values of non-define exprs, but this is no longer necessary. In fact,
the only thing that it does now is to discard "provide" statements, and
even this may be unnecessary. I rewrote big chunks of this (short) file
to introduce defines, eliminate unnecessary functions, and add stepper-
skip-completely annotations to the requires associated with teachpacks.

Also, it appears that the 'rep' argument to expand-teaching-program
was entirely superfluous; I removed it from the argument list, and also
from the three places in the main tree (deinprogramm, lang, and the stepper)
that call this function.

Let me know of any problems seen with teachpack requires....
2012-03-13 12:09:41 -07:00
Stephen Chang
79dd7df945 fix lazy stepper bug: annota of non-identifier fns
- fix lazy stepper bug where delaying of non-identifier fns
  wasnt being properly hidden
- add test case for this bug

include in 5.2
2011-10-08 15:59:32 -04:00
Robby Findler
2c018a749c PR 5440 requests that the 'electric' > in XML boxes work properly in
this situation:

   <a x="<b

and, in particular, not do this:

   <a x="<b></b>

Looking into this a bit, it isnt' clear how to do this without actually
parsing the whole buffer, something that doesn't seem to be worth
the effort with the amount of use that the XML boxes seem to get

So, for now: closes PR 5440
2011-09-29 12:03:58 -05:00
John Clements
afc01ca2d1 updated expected (cons 1 2) error message 2011-08-09 09:42:23 -04:00
John Clements
0bcff68226 minor testing changes 2011-07-28 22:51:00 -04:00
Stephen Chang
7e933ee8a4 fix stepper test-engine unclosed input-port (in windows) problem 2011-07-24 12:19:05 -04:00
Stephen Chang
7eedae8f69 fix lazy stepper test - lazy-cond1 2011-07-18 12:34:14 -04:00
John Clements
3030fd3f4a test-engine now sets current-directory before running tests 2011-07-09 17:17:49 -07:00
John Clements
77a31dc2af fix a stepper bug related to recent change to handling of module-level defines 2011-07-06 23:22:29 -07:00
Guillaume Marceau
c287519cc0 Updated the expected errors messages in the tests to match the new vocab. 2011-07-06 08:47:15 -04:00
Eli Barzilay
3157955d40 ".ss" -> ".rkt" scan done. 2011-07-02 10:37:53 -04:00
John Clements
3f50dc7f2c refactored to move test cases into a separate file(s) 2011-06-29 12:42:18 -07:00
John Clements
0061218266 added test of let* unwinding, moved shared.rkt unit tests out here 2011-06-29 00:24:02 -07:00
John Clements
2891869371 added tests of require 2011-06-28 18:43:04 -07:00
Eli Barzilay
40124a0619 A long overdue scan to eliminate files without terminating newlines.
(DrRacket should really do that.)
2011-06-28 02:01:41 -04:00
Stephen Chang
b4ab1bb093 fix bug in lazy stepper handling of cyclic lists 2011-05-22 01:54:46 -04:00
John Clements
b228316a8a updates to history
merge to 5.1.1 release
2011-04-22 14:28:18 -07:00
Stephen Chang
d8517af898 fix stepper rendering of non constructor-style lists
in stepper/private/reconstruct.rkt
- in recon-value, list case, add quasiquote rendering when constructor-style
  printing = #f
2011-04-08 20:41:36 -04:00
Stephen Chang
4ef7e1fae3 improve lazy stepper recon of unannotated fn apps
remove stepper/private/lazy-highlighting.rkt

in stepper/private/macro-unwind.rkt:
- in fall-through, add lazy-proc to lazy #%app special case

in stepper/private/model.rkt
- in send-step, dont use highlight-table, just match top called fn in mark-list
  instead

in tests/stepper/
- add lazy stepper tests for filter and fold
2011-04-08 20:41:35 -04:00
Stephen Chang
5238c338b6 fix stepper tests broken by lazy stepper 2011-04-07 15:11:40 -04:00
Stephen Chang
c8dd95b3cf fix user-position stepper-property bug in lazy cond stepper unwinding
in stepper/private/macro-unwind.rkt
 - in fall-through, add special #%app case for force

 in stepper/private/reconstruct.rkt
 - in recon-inner, in called app case, combine force case with other lazy fns

 in tests/stepper/
 - add test for lazy cond unwinding problem
2011-04-06 22:29:48 -04:00
Stephen Chang
5d47c0b49b in stepper/private/reconstruct.rkt
- in recon-inner, in called app case
  - add other force fns to force case (!!, !list, !!list)
  - add other list fns
    (list?, length, list-ref, etc)

in stepper/private/lazy-highlighting.rkt
- add various list fns (list?, length, list-ref, etc)

in stepper/private/macro-unwind.rkt
- in unwind-cond, disable check of user-source and user-position

in tests/stepper/
- add test for various list fns
2011-04-06 18:44:36 -04:00
Stephen Chang
e41ba9c77b in lazy/lazy.rkt
- modify cond for stepper
- add support for multiple values in stepper
  - add inspector to multiple-values struct
  - hide split-values call in ~define-values

in tests/stepper/
- add tests for cond

in stepper/private/annotate.rkt
- in annotate/top-level, allow arbitrary top-level terms
  (no error in else case), otherwise exprs like let throws error

in stepper/private/
   reconstruct.rkt
   lazy-highlighting.rkt
- add support for eq? eqv? equal? lazy fns
2011-04-06 18:44:35 -04:00
Stephen Chang
c0f8f1cdb2 lazy stepper working with infinite lists
in stepper/private/marks.rkt
- in mark-binding-value, add exception handler to catch undefined vars, so
  display-mark in break works with recursive fns

in /tests/stepper/automatic-tests.rkt
                  through-tests.rkt
- add inf list example from icfp paper

in stepper/private/model.rkt
- refactor send-step to use cond instead of unless
- in send-step, when highlight-stack = null and last-rhs != null (and lhs !=
  last-rhs), send a step with lhs = last-rhs (previously skipped whenever
  highlight-stack = null)
  - basic filter example wasnt showing result without this
  - in icfp inf list example, this shows some intermediate forcing states
  - all other existing tests passed
2011-04-06 18:42:57 -04:00
Stephen Chang
348a20c0e5 in stepper/private/reconstruct.rkt
- in recon-inner, called app case, add first fn to list of special lazy fns
- in recon-value, add handling of running promises not found by
  recon-inner search
  - add optional so-far param to recon-value
- add unknown-promises-table and add case in recon-value to handle

in stepper/private/lazy-highlighting.rkt
- add (first,0) pair

in stepper/private/model.rkt
- modify lazy fn "skipping" (from lazy-highlighting.rkt) to use the skips
  only when last-rhs-exp = null; o.w. skipping is handled solely by
  examining last-rhs-exp

in tests/stepper/
- add take example from icfp paper
- add tests for unknown promises
2011-04-06 18:42:56 -04:00
Stephen Chang
d04d3fadc3 - add if tests for lazy stepper
in stepper/private/reconstruct.rkt
- in recon-inner, in called app case, add "take" to lazy fn case and fix to
  handle more than unary fns
2011-04-06 18:42:55 -04:00
Stephen Chang
49fd1fb0e0 in stepper/private/reconstruct.rkt
- in recon-value, add cases to handle list and cons
- in recon-inner, in app called case, add case to handle lazy list fns
  that contain unannotated !'s (ie cadr, cdddr, second, third, etc)

in stepper/private/model.rkt
- add highlight-stack
- in send-step, add various skip conditions when lhs = ellipses

add file stepper/private/lazy-highlighting.rkt

in tests/stepper/through-tests.rkt
   tests/stepper/automatic-tests.rkt
- add tests for list and cons fns
2011-04-06 18:42:54 -04:00
Stephen Chang
c41123ce6c existing lazy stepper tests passing
in tests/stepper/
test-engine.rkt
- add racket/private/promise to test-namespace using namespace-attach-module

automatic-tests.rkt
- add lazy tests

through-tests.rkt
- fix existing lazy tests lazy1, lazy2, lazy3

language-level-model.rkt
- fix lazy ll-model

in stepper/private/model-settings.rkt
- edit settings for lazy racket
2011-04-06 18:42:53 -04:00
Robby Findler
d4e6f99b74 fix the algorithm for determining if a > that is typed in an
XML box ends an opening tag or not
  closes PR 11792
2011-03-31 17:26:03 -05:00
John Clements
c1f76d418f bug fixed 2011-02-15 14:10:57 -08:00
John Clements
e4c4170d31 updated props in test dir 2011-02-03 14:17:18 -08:00
John Clements
d2771cfb53 added big-bang-test.rkt 2011-02-03 10:27:47 -08:00
John Clements
368f345901 more stepper cleanup 2010-12-08 16:37:15 -08:00
John Clements
ff973b628b stepper refactoring and cleanup 2010-12-08 16:37:15 -08:00
John Clements
5456e83ce4 massively faster due to reuse of namespace 2010-12-07 20:44:35 -08:00
John Clements
0d2a4b98db moving to another machine 2010-12-07 20:44:34 -08:00
John Clements
6f84a1c143 checkpointing progress toward applicable structs instead of hash table 2010-12-07 20:44:34 -08:00
John Clements
b37187da59 added universe-test 2010-10-21 07:19:10 -07:00
John Clements
d18f43a488 cosmetic changes only 2010-10-20 12:05:06 -07:00
John Clements
70898379c5 copied 'mzlib/convert-prop attachment from outer layer to inner layer. 2010-10-19 23:28:45 -07:00
John Clements
0536d52efd looks like a fix for cond 2010-10-19 17:50:35 -07:00
John Clements
2083181d2e got testing harness working again. 2010-10-19 14:37:44 -07:00
John Clements
4d1d1e5b0e removed new stepper test from automatic testing (until fixed). 2010-08-29 10:38:27 -07:00
John Clements
3b94602e2e added test case for PR 11120 2010-08-27 16:42:32 -07:00
Eli Barzilay
606b7f60dc Lots of "~e" to "~.s" changes. 2010-08-25 17:17:01 -04:00
Mike Sperber
de94854243 Unbreak stepper tests.
... via a spectacularly ugly hack.
2010-07-14 14:07:13 +02:00