tests

Clone Tools
  • last updated 5 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
New feature: Added method nx::Object->"info consts"

A "const" is a variable that cannot be altered later. So far, such

constant variables have to be created via the Tcl9 "const" cmd, like

in the example below. The introspection method "/obj/ info consts" is

very similar to "/obj/ info vars", but it lists only unmodifiable

variables.

nx::Object create o {

#

# Create a "const" instance variable

#

const :x 1

set :y 2

...

}

puts [o info consts]

puts [o info vars]

  1. … 2 more files in changeset.
regression test: increased independency of test cases

added one more test to pinpoint issue #3 with Tcl 8.5.19

improved spelling

  1. … 11 more files in changeset.
whitespace cleanup

  1. … 1 more file in changeset.
* accessor.test: Added tests to document the behaviour for internally generated per-slot accessor methods * nx.tcl (VariableSlot), properties.test: Make sure that calling delete on a single-valued property/ variable errors out, like calling add * nx.tcl (defineIncrementalOperations): Rewrite to avoid repetitive computations * nx.tcl: First take on fixing definition of incremental slot operations, in presence of custom provided ones (esp. value=delete)

  1. … 1 more file in changeset.
* accessor.test: Added a few more tests

* accessor.test: Added tests to document the behaviour for internally generated per-slot accessor methods

* nx.tcl (VariableSlot), properties.test: Make sure that calling delete on a single-valued property/ variable errors out, like calling add

  1. … 1 more file in changeset.
* nx.tcl: Make sure to return "switch" for object parameters via info-introspection. Added some tests.

  1. … 1 more file in changeset.
Adding more test cases

  1. … 1 more file in changeset.
Adding first tests and a tentative fix

  1. … 1 more file in changeset.
improve spelling

  1. … 5 more files in changeset.
New feature: added support for return value checker for nsf::proc

One can now specify "-returns ...." in nsf::proc commands the same way

as in nx/XOTcl2 methods.

nsf::proc ... /procName/ /arguments/ ?-returns /valueconstraint/? /body/

When return value checkers are defined, these are returned by the

usual introspection interface.

% nsf::proc ::foo {-a:integer} -returns integer {return 1}

% nsf::cmd::info definition ::foo

::nsf::proc ::foo -a:integer -returns integer {return 1}

% nsf::cmd::info returns ::foo

integer

The regression test was extended to cover these cases.

  1. … 4 more files in changeset.
Fix bug, where Tcl's "string is" checker modified result, when used as a return value checker

The new code saves and restores the original result value.

The regression test was extended.

Many thanks to Antonio Pisano for pointing out this issue.

  1. … 1 more file in changeset.
* tcl86.test, nsf-cmd.test, forward.test, destroy.test: Make sure to run all 8.6+/ 8.7+ specific tests also under Tcl 9

report tcl version at the begin of regression test to ease reading output of git workflows

Added support for compiling with Tcl 9.0 (Many Thanks to Jan Nijtmans for first steps)

This version compiles cleanly at least with Tcl 8.6.* and Tcl 9.0 (fossil trunk),

having -pedantic and -Wextra defined.

  1. … 20 more files in changeset.
added option "-asdict" to nsf::parseargs

The new option makes it easier to process the parsed argument in different

contexts

  1. … 3 more files in changeset.
Bug fix: include alias to object in "info methods -path"

Previously, it was not possible to define an alias to an object for

NaviServer, since it was not returned by "info methods -path" and

was therefore not included in the blueprint.

Extended regression test.

  1. … 2 more files in changeset.
fix broken test

* nsf.c (VolatileMethod), volatile.test: Fix volatile for XOTcl 2: frame skipping must be limited to configure, otherwise, for self calls (e.g., 'my volatile'), the sentinal variable plus unset trace become created in the wrong callframe context (leading to corruption of any non-proc callframe); added test cases

  1. … 1 more file in changeset.
reduce debugging output

  1. … 1 more file in changeset.
improve spelling: move closer to the linux documentation recommendations

  1. … 13 more files in changeset.
improve spelling

  1. … 3 more files in changeset.
improve spelling

  1. … 4 more files in changeset.
improve spelling

  1. … 4 more files in changeset.
improve spelling

  1. … 8 more files in changeset.
Fix potential crash, whe nsf::parseargs is called with a non-empty argspec and empty argv

Extended regression test to cover such cases.

  1. … 1 more file in changeset.
typographic changes, most prominently, more consistent comma settings

https://onlinewritingtraining.com.au/however-therefore-furthermore/

  1. … 2 more files in changeset.