Mercurial > hg > octave-terminal
changeset 13093:1a21c4c5eeeb
Fix tolerance for mappers.cc test on MacOS.
author | Ben Abbott <bpabbott@mac.com> |
---|---|
date | Sat, 03 Sep 2011 19:41:47 -0400 |
parents | 186c3b80ba54 |
children | 7d4f5a033330 |
files | src/mappers.cc |
diffstat | 1 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/mappers.cc +++ b/src/mappers.cc @@ -212,7 +212,13 @@ %!assert(arg (single(1)), single(0)); %!assert(arg (single(i)), single(pi/2)); -%!assert(arg (single(-1)), single(pi)); +%!test +%! if (ismac ()) +%! ## Avoid failing for a MacOS feature +%! assert(arg (single(-1)), single(pi), 2*eps(single(1))); +%! else +%! assert(arg (single(-1)), single(pi)); +%! endif %!assert(arg (single(-i)), single(-pi/2)); %!assert(arg (single([1, i; -1, -i])), single([0, pi/2; pi, -pi/2]), 2e1*eps('single'));