octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[CHANGESET] Failing test in mod.m


From: David Bateman
Subject: [CHANGESET] Failing test in mod.m
Date: Sun, 23 Mar 2008 22:25:18 +0100
User-agent: Thunderbird 2.0.0.12 (X11/20080306)

With the change to the mixed integer/floating point operations recently
committed there is a failing test in mod.m... The fact is that matlab
fails for this test, but frankly given matlab's automatic promotion if
floating point classes to an integer class, I don't see why it should.
So I suggest just removing the failing test as in the following changeset.

D.

# HG changeset patch
# User David Bateman <address@hidden>
# Date 1206307317 -3600
# Node ID a14add2f1a1c3000c4cfb83b1fb1bd98ed629654
# Parent  b6f053165b0bc231a624df0ccdb9408ab86340d7
remove test that no longer fails in mod

diff --git a/scripts/general/mod.m b/scripts/general/mod.m
--- a/scripts/general/mod.m
+++ b/scripts/general/mod.m
@@ -127,4 +127,3 @@ endfunction
 %!assert (mod(uint8(5),4),uint8(1))
 %!assert (mod(5,uint8(4)),uint8(1))
 %!assert (mod(uint8([1:5]),4),uint8([1,2,3,0,1]))
-%!error (mod([1:5],uint8(4)))

reply via email to

[Prev in Thread] Current Thread [Next in Thread]