Changeset 4224
- Timestamp:
- 04/25/08 02:24:26 (2 months ago)
- Location:
- trunk
- Files:
-
- 1 added
- 5 modified
-
examples/testing/loader.lgt (modified) (1 diff)
-
library/all_loader.lgt (modified) (1 diff)
-
library/lgtunit.lgt (modified) (5 diffs)
-
library/lgtunit_loader.lgt (added)
-
library/NOTES.txt (modified) (2 diffs)
-
RELEASE_NOTES.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/examples/testing/loader.lgt
r3853 r4224 1 1 2 2 :- initialization(( 3 logtalk_load(library(lgtunit ), [reload(skip)]), % allow for static binding3 logtalk_load(library(lgtunit_loader), [reload(skip)]), % allow for static binding 4 4 logtalk_load(testing))). -
trunk/library/all_loader.lgt
r3853 r4224 7 7 library(dependents_loader), 8 8 library(hierarchies_loader), 9 library(lgtunit_loader), 9 10 library(metapredicates_loader), 10 11 library(random_loader), -
trunk/library/lgtunit.lgt
r3825 r4224 3 3 4 4 :- info([ 5 version is 0. 2,5 version is 0.3, 6 6 author is 'Paulo Moura', 7 date is 200 7/08/27,7 date is 2008/04/25, 8 8 comment is 'Logtalk unit test framework.']). 9 10 :- uses(term, [subsumes/2]). 9 11 10 12 :- public(succeeds/2). … … 12 14 :- info(succeeds/2, [ 13 15 comment is 'Defines a test goal which is expected to succeed.', 14 argnames is [' Test', 'Goal']]).16 argnames is ['Identifier', 'Goal']]). 15 17 16 18 :- public(fails/2). … … 18 20 :- info(fails/2, [ 19 21 comment is 'Defines a test goal which is expected to fail.', 20 argnames is [' Test', 'Goal']]).22 argnames is ['Identifier', 'Goal']]). 21 23 22 24 :- public(throws/3). … … 24 26 :- info(throws/3, [ 25 27 comment is 'Defines a test goal which is expected to throw an error.', 26 argnames is [' Test', 'Goal', 'Error']]).28 argnames is ['Identifier', 'Goal', 'Error']]). 27 29 28 30 :- public(run/2). … … 83 85 84 86 test_throws(Test, Goal, Error) :- 85 ( catch({Goal}, Ball, (( Ball = Error-> passed_test(Test, Goal); failed_test(Test, Goal)), Flag = error)) ->87 ( catch({Goal}, Ball, ((subsumes(Error, Ball) -> passed_test(Test, Goal); failed_test(Test, Goal)), Flag = error)) -> 86 88 ( var(Flag) -> 87 89 failed_test(Test, Goal) -
trunk/library/NOTES.txt
r4102 r4224 17 17 | ?- logtalk_load(library(random_loader)). 18 18 19 Currently, there are ninegroups of entities defined, each one with its19 Currently, there are ten groups of entities defined, each one with its 20 20 own loader and notes files: 21 21 … … 41 41 42 42 lgtunit 43 lgtunit .lgt43 lgtunit_loader.lgt 44 44 lgtunit.notes 45 45 -
trunk/RELEASE_NOTES.txt
r4223 r4224 67 67 for lists with unbound tails after discussion with Jan Wielemaker and 68 68 Ulrich Neumerkel. 69 70 Corrected a bug in the library object "lgtunit" when running "throws" 71 tests (make sure the generated exception is subsumed by the expected 72 exception). Added a "lgtunit_loader" loader utility file for loading 73 the Logtalk unit test library. 69 74 70 75 Added a simple example, "debug_hooks", of using compilation hooks and
