view test/octave.test/io/sprintf-1.m @ 11777:c5d9aaeb306a release-3-0-x

use ischar instead of isstr
author John W. Eaton <jwe@octave.org>
date Mon, 02 Jun 2008 09:50:09 -0400
parents 71b4ccd27162
children
line wrap: on
line source

[s, msg, status] = sprintf ("%s: %d\n", "test", 1);

s == "test: 1\n" && ischar (msg) && status == 8