Ticket #244 (closed defect: fixed)

Opened 15 years ago

Last modified 15 years ago

printign for expected values differs from printing for actual values

Reported by: robby Owned by: plai
Priority: major Milestone:
Component: plai/plai.plt Keywords:
Cc: Version:
Racket Version: 4.2.4.1

Description

This program:

#lang planet plai/plai:1:8
(define-type AE

[num (n number?)])

(define a-num (num 1))
(test a-num (num 2))

prints this out:

(bad a-num #(struct:num 1) (num 2) "at line 5")

but that can be confusing since the expected and actual results are printed in different manners.

It is especially bad when you do something like this (which I just did ...)

#lang planet plai/plai:1:8
(define-type AE

[num (n number?)])

(define a-num '(num 1))
(test a-num (num 1))

which yields:

(bad a-num (num 1) (num 1) "at line 5")

Change History

Changed 15 years ago by plai

  • status changed from new to closed
  • resolution set to fixed

This was fixed.

Note: See TracTickets for help on using tickets.