xdbc 1.0.83 → 1.0.85

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -15,16 +15,16 @@ export class GREATER extends DBC {
15
15
  *
16
16
  * @returns TRUE if the value "toCheck" and the "equivalent" are equal to each other, otherwise FALSE. */
17
17
  static checkAlgorithm(toCheck, equivalent, equalityPermitted, invert) {
18
- if (equalityPermitted && !invert && toCheck <= equivalent) {
18
+ if (equalityPermitted && !invert && toCheck < equivalent) {
19
19
  return `Value has to to be greater than or equal to "${equivalent}"`;
20
20
  }
21
- if (equalityPermitted && invert && toCheck >= equivalent) {
21
+ if (equalityPermitted && invert && toCheck > equivalent) {
22
22
  return `Value must not to be less than or equal to "${equivalent}"`;
23
23
  }
24
- if (!invert && toCheck < equivalent) {
24
+ if (!equalityPermitted && !invert && toCheck <= equivalent) {
25
25
  return `Value has to to be greater than "${equivalent}"`;
26
26
  }
27
- if (invert && toCheck > equivalent) {
27
+ if (!equalityPermitted && invert && toCheck >= equivalent) {
28
28
  return `Value must not to be less than "${equivalent}"`;
29
29
  }
30
30
  return true;
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.0.83",
2
+ "version": "1.0.85",
3
3
  "name": "xdbc",
4
4
  "scripts": {
5
5
  "format": "biome format ./src --write",
@@ -15,19 +15,19 @@ export class GREATER extends DBC {
15
15
  *
16
16
  * @returns TRUE if the value "toCheck" and the "equivalent" are equal to each other, otherwise FALSE. */
17
17
  static checkAlgorithm(toCheck, equivalent, equalityPermitted, invert) {
18
- if (equalityPermitted && !invert && toCheck <= equivalent) {
18
+ if (equalityPermitted && !invert && toCheck < equivalent) {
19
19
  return `Value has to to be greater than or equal to "${equivalent}"`;
20
20
  }
21
21
 
22
- if (equalityPermitted && invert && toCheck >= equivalent) {
22
+ if (equalityPermitted && invert && toCheck > equivalent) {
23
23
  return `Value must not to be less than or equal to "${equivalent}"`;
24
24
  }
25
25
 
26
- if (!invert && toCheck < equivalent) {
26
+ if (!equalityPermitted && !invert && toCheck <= equivalent) {
27
27
  return `Value has to to be greater than "${equivalent}"`;
28
28
  }
29
29
 
30
- if (invert && toCheck > equivalent) {
30
+ if (!equalityPermitted && invert && toCheck >= equivalent) {
31
31
  return `Value must not to be less than "${equivalent}"`;
32
32
  }
33
33
 
@@ -47,7 +47,7 @@ export class GREATER extends DBC {
47
47
  equivalent,
48
48
  equalityPermitted = false,
49
49
  invert = false,
50
- path = undefined,
50
+ path: string = undefined,
51
51
  dbc = "WaXCode.DBC",
52
52
  ) {
53
53
  return DBC.decPrecondition(
@@ -77,7 +77,7 @@ export class GREATER extends DBC {
77
77
  equivalent,
78
78
  equalityPermitted = false,
79
79
  invert = false,
80
- path = undefined,
80
+ path: string = undefined,
81
81
  dbc = "WaXCode.DBC",
82
82
  ) {
83
83
  return DBC.decPostcondition(