view test/octave.test/system/fnmatch-1.m @ 2742:eeb061f9cdbf

[project @ 1997-02-26 04:29:07 by jwe]
author jwe
date Wed, 26 Feb 1997 04:29:48 +0000
parents
children
line wrap: on
line source

string_fill_char = setstr (0);
(fnmatch ("a*a", ["aba"; "xxxba"; "aa"]) == [1; 0; 1]
 && fnmatch (["a*a"; "b*b"], "bob")
 && fnmatch ("x[0-5]*", ["x1"; "x6"]) == [1; 0]
 && fnmatch ("x[0-5]*", ["x1"; "x6"; "x001"]) == [1; 0; 1]
 && fnmatch ("x???y", ["xabcy"; "xy"]) == [1; 0])