changeset 11358:f5ee3e6e9266

isequalwithequalnans.m: Add test case from bug #31239.
author Rik <octave@nomad.inbox5.com>
date Mon, 13 Dec 2010 20:58:10 -0800
parents 903c1a3df301
children e4ba3cb2d27e
files scripts/ChangeLog scripts/general/isequalwithequalnans.m
diffstat 2 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/ChangeLog	Mon Dec 13 20:39:37 2010 -0800
+++ b/scripts/ChangeLog	Mon Dec 13 20:58:10 2010 -0800
@@ -1,3 +1,7 @@
+2010-12-13  Rik  <octave@nomad.inbox5.com>
+
+	* general/isequalwithequalnans.m: Add test case from bug #31239.
+
 2010-12-13  Ben Abbott  <bpabbott@mac.com>
 
 	* plot/__print_parse_opts__.m: Fix indexing bug for varargin.
--- a/scripts/general/isequalwithequalnans.m	Mon Dec 13 20:39:37 2010 -0800
+++ b/scripts/general/isequalwithequalnans.m	Mon Dec 13 20:58:10 2010 -0800
@@ -41,3 +41,4 @@
 %!assert(isequalwithequalnans([1,2,NaN,4],[1,2,3,4]),false)
 ## test for equality (struct)
 %!assert(isequalwithequalnans(struct('a',NaN,'b',2),struct('a',NaN,'b',2),struct('a',NaN,'b',2)),true)
+%!assert(isequalwithequalnans(1,2,1), false)