Private Function Min3RealVerify() ' Test the Min3Real function. Debug.Assert Min3Real(-2, 2, 0) = -2 Debug.Assert Min3Real(0, -2, 2) = -2 Debug.Assert Min3Real(2, 0, -2) = -2 ' Return leftmost argument. Debug.Assert VarType(Min3Real(2&, 2#, 2!)) = vbLong Debug.Assert VarType(Min3Real(2#, 2!, 2&)) = vbDouble Debug.Assert VarType(Min3Real(2!, 2&, 2#)) = vbSingle ' Perform Binary comparisons. Debug.Assert Min3Real("JOE", "Tom", "Joe") = "JOE" Debug.Assert Min3Real("Joe", "JOE", "Tom") = "JOE" Debug.Assert Min3Real("Tom", "Joe", "JOE") = "JOE" End Function
Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.