You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: collection/structs.ini
+17-3Lines changed: 17 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -57,7 +57,7 @@ FPC=Y
57
57
DescEx="<p>Constructs and returns a <var>TRange</var> record with bounds <var>A</var> and <var>B</var>.</p><p>The smaller of <var>A</var> and <var>B</var> is used as the lower bound and the larger as the upper bound. If both values are equal then the range will be empty.</p>"
58
58
Depends=TRange
59
59
SeeAlso=TRange
60
-
SeeAlso=TRange,TRangeEx
60
+
SeeAlso=TRange,TRangeEx,TIntegerRange
61
61
Snip=580.dat
62
62
Delphi7=Y
63
63
Delphi2005Win32=Y
@@ -122,6 +122,20 @@ Delphi10S=Y
122
122
Delphi12A=Y
123
123
FPC=Y
124
124
125
+
[TIntegerRange]
126
+
DisplayName=TIntegerRange
127
+
DescEx="<p>An advanced record that encapsulates an integer range along with operations on it.</p><p>The range is immutable, so the constructor must be used to instantiate a non-empty range.</p>"
128
+
Extra="<p><var>TIntegerRange</var> supports various operator overloads, which operate in a way similar to the Pascal <strong>set</strong> operators:</p><p><mono>=</mono> compares two ranges for equality.</p><p><mono><></mono> compares two ranges for inequality.</p><p><mono><=</mono> checks if the left operand is wholly contained in, or is equal to the right operand (c.f. Pascal subset operator).</p><p><mono>>=</mono> checks if the left operand wholly contains, or is equal to, the right hand operand (c.f. Pascal proper superset operator).</p><p><mono>+</mono> creates the union of the two ranges specified by the operands, i.e. a new range that is the smallest range that contains both operands. For example, representing a range as <mono>[A..B]</mono>, <mono>[1..3] + [7..10] = [1..10]</mono> (c.f. Pascal union operator).</p><p><mono>*</mono> creates a new range that the largest range contained in both ranges specified by the operands, or an empty range if the operands do not overlap. For example, <mono>[1..3] * [2..7] = [2..3]</mono> while <mono>[1..3] * [6..9] is an empty range.</mono> (c.f. Pascal intersection operator).</p><p><strong><mono>in</mono></strong> checks if the integer specified in the left hand operand is contained in the range specified by the right hand operand (c.f. Pascal membership operator).</p>"
Copy file name to clipboardExpand all lines: tests/README.md
+8-2Lines changed: 8 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -35,6 +35,10 @@ Contains the _TestCatMaths_[^2] project that provides _DUnit_ tests for selected
35
35
36
36
### `./Cat-String`
37
37
38
+
Contains the _TestCatStructsXE_[^3] project that provides _DUnit_ tests for selected snippets from the database's _Structures_ category.
39
+
40
+
### `./Cat-Structs`
41
+
38
42
Contains the _TestCatString_[^2] project that provides _DUnit_ tests for selected snippets from the database's _String Management_ category.
39
43
40
44
### `./Cat-WinSys`
@@ -47,6 +51,8 @@ These test files originated as a [zip file on Google Drive](https://drive.google
47
51
48
52
All subsequent changes to the files were made on GitHub. At present the GitHub repository differs from the original code on Google Drive.
49
53
50
-
[^1]: There are different versions of the group project file for different Delphi versions: `CodeSnippetsTestsbdsgroup` for Delphi 2006, `CodeSnippetsTests.groupproj` for Delphi 2007-2010 and `CodeSnippetsTestsXE.groupproj` for Delphi XE.
54
+
[^1]: There are different versions of the group project file for different Delphi versions: `CodeSnippetsTests.bdsgroup` for Delphi 2006, `CodeSnippetsTests.groupproj` for Delphi 2007-2010 and `CodeSnippetsTestsXE.groupproj` for Delphi XE.
55
+
56
+
[^2]: There are different versions of project files for different Delphi versions. They are one or more of `<NAME>.bdsproj` for Delphi 2006, `<NAME>.dproj` for Delphi 2007 to 2010 and `<NAME>XE.dproj` for Delphi XE, where `<NAME>` is the base name of the project, for example `TestDateCat` or `TestCatMaths`. There are also different `.dpr` files: `<NAME>.dpr` for compilers earlier than Delphi XE and `<NAME>XE.dpr` for Delphi XE.
51
57
52
-
[^2]: There are different versions of project files for different Delphi versions. They are one or more of `<NAME>.bdsproj` for Delphi 2006, `<NAME>.dproj` for Delphi 2007 to 2010 and `<NAME>XE.dproj` for Delphi XE, where `<NAME>` is the base name of the project, for example `TestDateCat` or `TestCatMaths`.
58
+
[^3]: There is only one project file for the _Structures_ category tests, `TesttCatStructsXE.dpr`, which is targetted at Delphi XE. There is no test project targetted at earlier compilers. This project is only included in the `CodeSnippetsTestsXE.groupproj` group and no others.
0 commit comments