Bug 416 – mistake in unittest std/math.d line 501

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Windows
Creation time
2006-10-09T11:05:00Z
Last change time
2014-02-15T13:19:30Z
Assigned to
bugzilla
Creator
lio+bugzilla

Comments

Comment #0 by lio+bugzilla — 2006-10-09T11:05:29Z
Phobos build flags (win32.mak): CFLAGS=-g -mn -6 -r DFLAGS=-unittest -g -w unittest Error: AssertError Failure math(501) The offending line in std/math.d: assert(isNegZero(atanh(-real.infinity))); The assert was there in 0.168 but did not fail then.
Comment #1 by aldacron — 2006-10-10T01:25:14Z
[email protected] wrote: > http://d.puremagic.com/issues/show_bug.cgi?id=416 > > Summary: regression: unittest failure in phobos, math(501) > Product: D > Version: 0.169 > Platform: PC > OS/Version: Windows > Status: NEW > Severity: normal > Priority: P2 > Component: DMD > AssignedTo: [email protected] > ReportedBy: [email protected] > > > Phobos build flags (win32.mak): > CFLAGS=-g -mn -6 -r > DFLAGS=-unittest -g -w > > unittest > Error: AssertError Failure math(501) > > The offending line in std/math.d: > assert(isNegZero(atanh(-real.infinity))); > > The assert was there in 0.168 but did not fail then. I don't know how it passed before. The new compiler is correct! That line should be changed to: assert(isnan(atanh(-real.infinity))); It was my mistake in the original code that I submitted.
Comment #2 by lio+bugzilla — 2006-10-10T06:37:26Z
From the Don: I don't know how it passed before. The new compiler is correct! That line should be changed to: assert(isnan(atanh(-real.infinity))); It was my mistake in the original code that I submitted.
Comment #3 by bugzilla — 2006-10-18T13:26:45Z
Fixed DMD 0.170