Opened 4 weeks ago

Last modified 4 weeks ago

#1610 assigned defect

test duration should be printed as inexact

Reported by: felix Owned by: ashinn
Priority: minor Milestone: someday
Component: extensions Version:
Keywords: test Cc:
Estimated difficulty: trivial

Description

In the test egg, the duration of a test is given as an exact value, which should probably be an inexact. Here a simple patch:

--- test-support.scm	(revision 37545)
+++ test-support.scm	(working copy)
@@ -320,11 +320,12 @@
          (start-milliseconds
           (or (test-group-ref group 'start-milliseconds) 0))
          (duration
-          (if (and start-time (> (- end-time start-time) 60))
+          (exact->inexact
+           (if (and start-time (> (- end-time start-time) 60))
               (/ (- (+ (* end-time 1000) end-milliseconds)
                     (+ (* start-time 1000) start-milliseconds))
                  1000)
-              (/ (- end-milliseconds start-milliseconds) 1000)))
+              (/ (- end-milliseconds start-milliseconds) 1000))))
          (count (or (test-group-ref group 'count) 0))
          (pass (or (test-group-ref group 'PASS) 0))
          (fail (or (test-group-ref group 'FAIL) 0))

Change History (1)

comment:1 Changed 4 weeks ago by sjamaan

  • Owner set to ashinn
  • Status changed from new to assigned
Note: See TracTickets for help on using tickets.