|
From: | Jacob Bachmeyer |
Subject: | Re: New API call: "testsuite has api call" [renamed] |
Date: | Fri, 05 Jun 2020 13:43:52 -0500 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.22) Gecko/20090807 MultiZilla/1.8.3.4e SeaMonkey/1.1.17 Mnenhy/0.7.6.0 |
Jacob Bachmeyer wrote:
The proposed form is simple: testsuite has api call <api call as words>As an example [testsuite has api call testsuite file] returns 1 as does [testsuite has api call testsuite has api call].Test scripts are expected to use this call along the lines of: if { [testsuite has api call some new command] } { some new command and its args }
After sitting on this for a while, I am considering renaming the new call to "testsuite can call api" in a simple s/has api call/can call api/ (well, "simple" from the caller's perspective, the renaming is a bit more involved). I believe that the new name "reads better" in the expected use; for example:
if { [testsuite can call api testsuite file] } { ... } versus if { [testsuite has api call testsuite file] } { ... }Changing this seems to better express a shade of meaning: the availability of an API call is a characteristic of the environment rather than of the testsuite itself.
-- Jacob
[Prev in Thread] | Current Thread | [Next in Thread] |