From: <ju...@su...> - 2004-06-02 17:12:38
|
Folks, > You what you want is a set of functions with signatures like: > > CheckIncluded(expected :array of Integer; actual :Integer; msg :string = ''); > CheckIncluded(expected :array of string; actual :string; msg :string = ''); ... Hmm. As far as I remember, a signature of: CheckIncluded(expected :array of Integer; actual :Integer; msg :string = ''); Will accept a call of: CheckIncluded(5, aVar); and interpret it as: CheckIncluded([5], aVar); If that's so, then we could upgrade most of the existing Check methods to take in an array instead of a single expected value. You Delphi experts out there, please confirm if this can be done... Juanco |