[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: char ()
From: |
Ben Abbott |
Subject: |
Re: char () |
Date: |
Thu, 15 Sep 2011 07:49:14 -0400 |
On Sep 15, 2011, at 2:02 AM, Carlo de Falco wrote:
> After changeset af36cdb552a6 char does not throw an error if called with
> no arguments, so the check for this error in test/test_string.m is obsolete,
> right?
> c.
>
> <open_bQnvOGwj.txt>
Yes. I think the test is obsolete.
Both Matlab and the current tip return an empty string when called with no
inputs.
isempty (char())
ans = 1
Should the test be modified to reflect the proper behavior?
%% test/octave.test/string/char-2.m
%!assert (isempty (char ()))
Ben
- char (), Carlo de Falco, 2011/09/15
- Re: char (),
Ben Abbott <=