[Swift-devel] assertEqual

Tim Armstrong tim.g.armstrong at gmail.com
Fri Apr 10 14:08:12 CDT 2015


Yep that would be a doable overload.  I don't have a strong opinion on the
name.

- Tim

On 10 April 2015 at 13:02, Mihael Hategan <hategan at mcs.anl.gov> wrote:

> wait, wouldn't assertEqual(float, float, float, msg = ) be a doable
> overload in /T to assertEqual(float, float, msg =)?
>
> Or do we want it to be assertAlmostEqual because we think that's a
> better name for it?
>
> Mihael
>
> On Thu, 2015-04-09 at 12:25 -0700, Mihael Hategan wrote:
> > On Wed, 2015-04-08 at 11:48 -0500, Tim Armstrong wrote:
> > > Reviving this thread...  Probably the options are to either add an
> overload:
> > >
> > > assertEqual(float v1, float v2, float tolerance, string msg)
> > >
> > > or something like
> > >
> > > assertAlmostEqual(float v1, float v2, float tolerance, string msg)
> >
> > OK, let's go with assertAlmostEqual.
> >
> > Although I would like to lobby for overloading support with keywords,
> > but that can wait.
> >
> > Mihael
> >
> >
> > _______________________________________________
> > Swift-devel mailing list
> > Swift-devel at ci.uchicago.edu
> > https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-devel
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/swift-devel/attachments/20150410/055de836/attachment.html>


More information about the Swift-devel mailing list