tests

Clone Tools
  • last updated 12 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
* nsf-cmd.test: Make new tests 8.5-savy

* nsf-cmd.test: Add test rename (target) conflicts for the shadowed procs; improve test formatting

* nsf-cmd.test: Modernize tests to work on error codes.

* nsf.c, nsf-cmd.test: Fixed nsf::procs for (unintended) deletes of the shadowed proc, plus test cases.

  1. … 1 more file in changeset.
* nsf.c, nsfShadow.c (NsfProcStubDeleteProc, Nsf_RenameObjCmd): Provide for coupled renaming of the nsf::proc pairs; and coupled deletion.

  1. … 3 more files in changeset.
* nsf.c (NsfProcStub, InvokeShadowedProc): Provide for re-fetching (e.g., deleted) ::nsf::procs::* commands, to allow for renamed nsf::procs to run. * nsf-cmd.test: Added test to cover re-fetch

  1. … 1 more file in changeset.
* nsf.c, nsfInt.h (NsfProcStub, NsfProcClientData): Apply namespace reform to nsf::procs, to prevent proc redefinition after a proc rename to fail. * nsf-cmd.test: Add test case to document/ to cover failing rename + redefine.

  1. … 2 more files in changeset.
use consistently US spelling variation

* disposition.test, parameters.test: Adjust tests to reflect the changed representational behaviour for numerics (int, wide) according to TIP 514 (now in Tcl 8.7a2+).

* object-system.test: Add a simple test to catch incomplete version bumps earlier

improve spelling

fix typos

  1. … 27 more files in changeset.
* parameters.test: Adding two test cases to cover previously missed code branches leading to leaking NsfMethodNamePath uses.

* nsf.c (ListMethod): Provide a disassemble implementation based on ::tcl::unsupported::disassemble. [::nsf::cmf::info disassemble] is generally available, the info ?object? method variants only in development mode. Implementation covers proc methods and ::nsf::procs. Along the way, prettify some code paths in ListMethod.

  1. … 6 more files in changeset.
- add Tcl_Obj caching to cget argument - redued usage of goto statements - reduced size of largish function

  1. … 1 more file in changeset.
* msgcat.test: Added a small collection of basic tests covering msgcat usage from within NSF/NX objects and classes. Tested successfully with mainline Tcl 8.6 and the TIP-490 branch "tip490-msgcat-oo-2".

  1. … 1 more file in changeset.
* nsf.c (NextSearchAndInvoke): Relax the pre-conditions, objv can actually be NULL (see test cases). Besides, the assertion was not reflected by a corresponding nonnull constraints on the NextSearchAndInvoke prototype.

  1. … 1 more file in changeset.
Fix another 86/85 glitch

Make test suite working under 8.5, again.

    • -0
    • +173
    ./double-alias.test
  1. … 1 more file in changeset.
extend regression test

    • -0
    • +173
    ./double-alias.tcl
  1. … 1 more file in changeset.
execution namespace reform: - add execution namespace to proc context instead of altering the namespace of the command - this fixes strange behavior of "info commands ::o::p", which might have returned "::p" - provide compatibility with Tcl 8.7a2 - extend regression test

  1. … 2 more files in changeset.
deactivate solution to the tcl87a2 problem for now, since we need a different solution with this for recursive aliases

  1. … 1 more file in changeset.
extend regression test, make assumptions explicit

- remove stripping of substdefault from properties

  1. … 1 more file in changeset.
- add handling of extended substdefault options to per-object variables - improve default value checking for slot-less variables - transfor associated array into a dict - extend regression tests

  1. … 1 more file in changeset.
delete pre-existing commands explicitly

  1. … 1 more file in changeset.
- make it possible to use error code for cmd result comparison - add some NSF specifc error code

  1. … 2 more files in changeset.
provide error hint for "invalid value constraints" errors

  1. … 1 more file in changeset.
Fold "substdefault" and "substdefaultoptions" into a single parameter option "substdefault"

  1. … 3 more files in changeset.
* nsf.c (ParamOptionParse, ParamDefinitionParse, ParamDefsParse), parameters.test: Small "type=" converterArg reform. Provided additional parameter in param-parser machinery, to communicate a (namespace) qualifier into ParamOptionParse. This way, the unqualified type=* values are now expanded to qualified names (definition scope): method parameters, nsf::is, nsf::parseargs, setter methods. Type=* in object parameters are currently expanded at the slot level, could also be added. New tests were added, existing ones adjusted to reflect the new behaviour.

  1. … 2 more files in changeset.