@fncts/test 0.0.12 → 0.0.13
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.
- package/TestSpec.d.ts +1 -1
- package/_cjs/control/Annotations/api.cjs +1 -1
- package/_cjs/control/Annotations/api.cjs.map +1 -1
- package/_cjs/control/Gen/api/char.cjs.map +1 -1
- package/_cjs/control/Gen/api.cjs +3 -3
- package/_cjs/control/Gen/api.cjs.map +1 -1
- package/_cjs/control/Gen/definition.cjs.map +1 -1
- package/_cjs/control/Live/definition.cjs +1 -1
- package/_cjs/control/Live/definition.cjs.map +1 -1
- package/_cjs/control/RunnableSpec.cjs +9 -11
- package/_cjs/control/RunnableSpec.cjs.map +1 -1
- package/_cjs/control/Sized/api.cjs +1 -1
- package/_cjs/control/Sized/api.cjs.map +1 -1
- package/_cjs/control/Spec/api.cjs +1 -1
- package/_cjs/control/Spec/api.cjs.map +1 -1
- package/_cjs/control/Spec/definition.cjs.map +1 -1
- package/_cjs/control/TestAspect/api.cjs +3 -3
- package/_cjs/control/TestAspect/api.cjs.map +1 -1
- package/_cjs/control/TestClock/api.cjs +14 -22
- package/_cjs/control/TestClock/api.cjs.map +1 -1
- package/_cjs/control/TestConsole/api.cjs +12 -15
- package/_cjs/control/TestConsole/api.cjs.map +1 -1
- package/_cjs/control/TestEnvironment.cjs.map +1 -1
- package/_cjs/control/TestExecutor.cjs +6 -6
- package/_cjs/control/TestExecutor.cjs.map +1 -1
- package/_cjs/control/TestLogger.cjs.map +1 -1
- package/_cjs/control/TestRandom/api.cjs +10 -18
- package/_cjs/control/TestRandom/api.cjs.map +1 -1
- package/_cjs/control/TestRunner.cjs.map +1 -1
- package/_mjs/control/Annotations/api.mjs +1 -1
- package/_mjs/control/Annotations/api.mjs.map +1 -1
- package/_mjs/control/Gen/api/char.mjs.map +1 -1
- package/_mjs/control/Gen/api.mjs +3 -3
- package/_mjs/control/Gen/api.mjs.map +1 -1
- package/_mjs/control/Gen/definition.mjs.map +1 -1
- package/_mjs/control/Live/definition.mjs +1 -1
- package/_mjs/control/Live/definition.mjs.map +1 -1
- package/_mjs/control/RunnableSpec.mjs +9 -11
- package/_mjs/control/RunnableSpec.mjs.map +1 -1
- package/_mjs/control/Sized/api.mjs +1 -1
- package/_mjs/control/Sized/api.mjs.map +1 -1
- package/_mjs/control/Spec/api.mjs +1 -1
- package/_mjs/control/Spec/api.mjs.map +1 -1
- package/_mjs/control/Spec/definition.mjs.map +1 -1
- package/_mjs/control/TestAspect/api.mjs +3 -3
- package/_mjs/control/TestAspect/api.mjs.map +1 -1
- package/_mjs/control/TestClock/api.mjs +13 -21
- package/_mjs/control/TestClock/api.mjs.map +1 -1
- package/_mjs/control/TestConsole/api.mjs +10 -13
- package/_mjs/control/TestConsole/api.mjs.map +1 -1
- package/_mjs/control/TestEnvironment.mjs.map +1 -1
- package/_mjs/control/TestExecutor.mjs +6 -6
- package/_mjs/control/TestExecutor.mjs.map +1 -1
- package/_mjs/control/TestLogger.mjs.map +1 -1
- package/_mjs/control/TestRandom/api.mjs +10 -18
- package/_mjs/control/TestRandom/api.mjs.map +1 -1
- package/_mjs/control/TestRunner.mjs.map +1 -1
- package/_src/api.ts +8 -8
- package/_src/control/AbstractRunnableSpec.ts +2 -2
- package/_src/control/Annotations/api.ts +4 -4
- package/_src/control/AssertionIO/definition.ts +1 -1
- package/_src/control/DefaultTestReporter/render.ts +1 -1
- package/_src/control/FreeBooleanAlgebraIO/api.ts +4 -4
- package/_src/control/Gen/api/array.ts +2 -2
- package/_src/control/Gen/api/char.ts +10 -10
- package/_src/control/Gen/api/conc.ts +2 -2
- package/_src/control/Gen/api/double.ts +2 -2
- package/_src/control/Gen/api/float.ts +1 -1
- package/_src/control/Gen/api/string.ts +8 -8
- package/_src/control/Gen/api.ts +20 -20
- package/_src/control/Gen/definition.ts +2 -0
- package/_src/control/Live/definition.ts +7 -7
- package/_src/control/RunnableSpec.ts +4 -4
- package/_src/control/Sample/api.ts +12 -12
- package/_src/control/Sized/api.ts +2 -2
- package/_src/control/Sized/live.ts +1 -1
- package/_src/control/Spec/api.ts +18 -21
- package/_src/control/Spec/definition.ts +3 -3
- package/_src/control/TestAspect/api.ts +12 -14
- package/_src/control/TestAspect/definition.ts +1 -1
- package/_src/control/TestClock/api.ts +10 -10
- package/_src/control/TestClock/definition.ts +3 -3
- package/_src/control/TestConsole/api.ts +5 -5
- package/_src/control/TestEnvironment.ts +11 -10
- package/_src/control/TestExecutor.ts +4 -6
- package/_src/control/TestLogger.ts +2 -2
- package/_src/control/TestRandom/api.ts +10 -10
- package/_src/control/TestRunner.ts +3 -3
- package/_src/data/TestConfig.ts +1 -1
- package/_src/util/math.ts +3 -3
- package/api.d.ts +5 -6
- package/control/AbstractRunnableSpec.d.ts +2 -3
- package/control/Annotations/api.d.ts +4 -5
- package/control/Annotations/live.d.ts +3 -3
- package/control/AssertionIO/definition.d.ts +1 -1
- package/control/DefaultRunnableSpec.d.ts +2 -2
- package/control/DefaultTestReporter/render.d.ts +1 -2
- package/control/FreeBooleanAlgebraIO/api.d.ts +4 -4
- package/control/Gen/api/array.d.ts +2 -3
- package/control/Gen/api/char.d.ts +9 -9
- package/control/Gen/api/conc.d.ts +2 -3
- package/control/Gen/api/double.d.ts +2 -2
- package/control/Gen/api/float.d.ts +1 -1
- package/control/Gen/api/string.d.ts +8 -9
- package/control/Gen/api.d.ts +19 -20
- package/control/Gen/definition.d.ts +2 -0
- package/control/Live/definition.d.ts +4 -6
- package/control/RunnableSpec.d.ts +2 -3
- package/control/Sample/api.d.ts +10 -10
- package/control/Sized/api.d.ts +2 -3
- package/control/Sized/live.d.ts +1 -2
- package/control/Spec/api.d.ts +12 -14
- package/control/Spec/definition.d.ts +4 -5
- package/control/TestAspect/api.d.ts +6 -7
- package/control/TestAspect/definition.d.ts +1 -1
- package/control/TestClock/api.d.ts +3 -4
- package/control/TestClock/definition.d.ts +3 -3
- package/control/TestConsole/api.d.ts +2 -3
- package/control/TestConsole/definition.d.ts +5 -5
- package/control/TestEnvironment.d.ts +2 -3
- package/control/TestExecutor.d.ts +2 -3
- package/control/TestLogger.d.ts +2 -3
- package/control/TestRandom/api.d.ts +10 -10
- package/control/TestRunner.d.ts +3 -4
- package/data/TestConfig.d.ts +5 -6
- package/package.json +4 -4
- package/util/math.d.ts +4 -4
|
@@ -1,49 +1,49 @@
|
|
|
1
1
|
import { Byte } from "@fncts/base/data/Byte";
|
|
2
2
|
import { Layer } from "@fncts/io/Layer";
|
|
3
|
-
import {
|
|
3
|
+
import { Random } from "@fncts/io/Random";
|
|
4
4
|
import { Data, TestRandom } from "@fncts/test/control/TestRandom";
|
|
5
5
|
/**
|
|
6
6
|
* @tsplus static fncts.test.TestRandom feedInts
|
|
7
7
|
* @tsplus location "@fncts/test/control/TestRandom/api"
|
|
8
8
|
*/
|
|
9
|
-
export declare function feedInts(...ints: ReadonlyArray<number>): import("@fncts/io/IO").IO<
|
|
9
|
+
export declare function feedInts(...ints: ReadonlyArray<number>): import("@fncts/io/IO").IO<TestRandom, never, void>;
|
|
10
10
|
/**
|
|
11
11
|
* @tsplus static fncts.test.TestRandom feedBytes
|
|
12
12
|
* @tsplus location "@fncts/test/control/TestRandom/api"
|
|
13
13
|
*/
|
|
14
|
-
export declare function feedBytes(...bytes: ReadonlyArray<ReadonlyArray<Byte>>): import("@fncts/io/IO").IO<
|
|
14
|
+
export declare function feedBytes(...bytes: ReadonlyArray<ReadonlyArray<Byte>>): import("@fncts/io/IO").IO<TestRandom, never, void>;
|
|
15
15
|
/**
|
|
16
16
|
* @tsplus static fncts.test.TestRandom feedChars
|
|
17
17
|
* @tsplus location "@fncts/test/control/TestRandom/api"
|
|
18
18
|
*/
|
|
19
|
-
export declare function feedChars(...chars: ReadonlyArray<string>): import("@fncts/io/IO").IO<
|
|
19
|
+
export declare function feedChars(...chars: ReadonlyArray<string>): import("@fncts/io/IO").IO<TestRandom, never, void>;
|
|
20
20
|
/**
|
|
21
21
|
* @tsplus static fncts.test.TestRandom feedDoubles
|
|
22
22
|
* @tsplus location "@fncts/test/control/TestRandom/api"
|
|
23
23
|
*/
|
|
24
|
-
export declare function feedDoubles(...doubles: ReadonlyArray<number>): import("@fncts/io/IO").IO<
|
|
24
|
+
export declare function feedDoubles(...doubles: ReadonlyArray<number>): import("@fncts/io/IO").IO<TestRandom, never, void>;
|
|
25
25
|
/**
|
|
26
26
|
* @tsplus static fncts.test.TestRandom feedStrings
|
|
27
27
|
* @tsplus location "@fncts/test/control/TestRandom/api"
|
|
28
28
|
*/
|
|
29
|
-
export declare function feedStrings(...strings: ReadonlyArray<string>): import("@fncts/io/IO").IO<
|
|
29
|
+
export declare function feedStrings(...strings: ReadonlyArray<string>): import("@fncts/io/IO").IO<TestRandom, never, void>;
|
|
30
30
|
/**
|
|
31
31
|
* @tsplus static fncts.test.TestRandom feedBooleans
|
|
32
32
|
* @tsplus location "@fncts/test/control/TestRandom/api"
|
|
33
33
|
*/
|
|
34
|
-
export declare function feedBooleans(...booleans: ReadonlyArray<boolean>): import("@fncts/io/IO").IO<
|
|
34
|
+
export declare function feedBooleans(...booleans: ReadonlyArray<boolean>): import("@fncts/io/IO").IO<TestRandom, never, void>;
|
|
35
35
|
/**
|
|
36
36
|
* @tsplus static fncts.test.TestRandomOps make
|
|
37
37
|
* @tsplus location "@fncts/test/control/TestRandom/api"
|
|
38
38
|
*/
|
|
39
|
-
export declare function make(initialData: Data): Layer<
|
|
39
|
+
export declare function make(initialData: Data): Layer<never, never, Random | TestRandom>;
|
|
40
40
|
/**
|
|
41
41
|
* @tsplus static fncts.test.TestRandomOps Deterministic
|
|
42
42
|
* @tsplus location "@fncts/test/control/TestRandom/api"
|
|
43
43
|
*/
|
|
44
|
-
export declare const determinictic: import("@fncts/io/Layer").Layer<
|
|
44
|
+
export declare const determinictic: import("@fncts/io/Layer").Layer<never, never, import("@fncts/io/Random").Random | TestRandom>;
|
|
45
45
|
/**
|
|
46
46
|
* @tsplus static fncts.test.TestRandomOps Random
|
|
47
47
|
* @tsplus location "@fncts/test/control/TestRandom/api"
|
|
48
48
|
*/
|
|
49
|
-
export declare const random: Layer<unknown, never,
|
|
49
|
+
export declare const random: Layer<unknown, never, TestRandom>;
|
package/control/TestRunner.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Layer } from "@fncts/io/Layer";
|
|
2
|
-
import { Has } from "@fncts/base/typeclass";
|
|
3
2
|
import { URIO } from "@fncts/io/IO";
|
|
4
3
|
import { ExecutionStrategy } from "@fncts/base/data/ExecutionStrategy";
|
|
5
4
|
import { Clock } from "@fncts/io/Clock";
|
|
@@ -14,7 +13,7 @@ export declare class TestRunner<R, E> {
|
|
|
14
13
|
readonly executor: TestExecutor<R>;
|
|
15
14
|
readonly runtimeConfig: RuntimeConfig;
|
|
16
15
|
readonly reporter: TestReporter<E>;
|
|
17
|
-
readonly bootstrap: Layer<
|
|
18
|
-
constructor(executor: TestExecutor<R>, runtimeConfig?: RuntimeConfig, reporter?: TestReporter<E>, bootstrap?: Layer<
|
|
19
|
-
run(spec: Spec<R
|
|
16
|
+
readonly bootstrap: Layer<never, never, TestLogger>;
|
|
17
|
+
constructor(executor: TestExecutor<R>, runtimeConfig?: RuntimeConfig, reporter?: TestReporter<E>, bootstrap?: Layer<never, never, TestLogger>);
|
|
18
|
+
run(spec: Spec<R | Annotations, E>): URIO<TestLogger, ExecutedSpec<E>>;
|
|
20
19
|
}
|
package/data/TestConfig.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Layer } from "@fncts/io/Layer";
|
|
2
|
-
import { Has } from "@fncts/base/typeclass";
|
|
3
2
|
/**
|
|
4
3
|
* @tsplus type fncts.test.data.TestConfig
|
|
5
4
|
* @tsplus companion fncts.test.data.TestConfigOps
|
|
@@ -19,24 +18,24 @@ export declare const TestConfigTag: import("@fncts/base/data/Tag").Tag<TestConfi
|
|
|
19
18
|
* @tsplus static fncts.test.data.TestConfigOps Live
|
|
20
19
|
* @tsplus location "@fncts/test/data/TestConfig"
|
|
21
20
|
*/
|
|
22
|
-
export declare function live(_: TestConfig): Layer<
|
|
21
|
+
export declare function live(_: TestConfig): Layer<never, never, TestConfig>;
|
|
23
22
|
/**
|
|
24
23
|
* @tsplus static fncts.test.data.TestConfigOps repeats
|
|
25
24
|
* @tsplus location "@fncts/test/data/TestConfig"
|
|
26
25
|
*/
|
|
27
|
-
export declare const repeats: import("@fncts/io/IO").IO<
|
|
26
|
+
export declare const repeats: import("@fncts/io/IO").IO<TestConfig, never, number>;
|
|
28
27
|
/**
|
|
29
28
|
* @tsplus static fncts.test.data.TestConfigOps retries
|
|
30
29
|
* @tsplus location "@fncts/test/data/TestConfig"
|
|
31
30
|
*/
|
|
32
|
-
export declare const retries: import("@fncts/io/IO").IO<
|
|
31
|
+
export declare const retries: import("@fncts/io/IO").IO<TestConfig, never, number>;
|
|
33
32
|
/**
|
|
34
33
|
* @tsplus static fncts.test.data.TestConfigOps samples
|
|
35
34
|
* @tsplus location "@fncts/test/data/TestConfig"
|
|
36
35
|
*/
|
|
37
|
-
export declare const samples: import("@fncts/io/IO").IO<
|
|
36
|
+
export declare const samples: import("@fncts/io/IO").IO<TestConfig, never, number>;
|
|
38
37
|
/**
|
|
39
38
|
* @tsplus static fncts.test.data.TestConfigOps shrinks
|
|
40
39
|
* @tsplus location "@fncts/test/data/TestConfig"
|
|
41
40
|
*/
|
|
42
|
-
export declare const shrinks: import("@fncts/io/IO").IO<
|
|
41
|
+
export declare const shrinks: import("@fncts/io/IO").IO<TestConfig, never, number>;
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fncts/test",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.13",
|
|
4
4
|
"dependencies": {
|
|
5
|
-
"@fncts/base": "0.0.
|
|
6
|
-
"@fncts/io": "0.0.
|
|
7
|
-
"@fncts/typelevel": "0.0.
|
|
5
|
+
"@fncts/base": "0.0.13",
|
|
6
|
+
"@fncts/io": "0.0.13",
|
|
7
|
+
"@fncts/typelevel": "0.0.11"
|
|
8
8
|
},
|
|
9
9
|
"exports": {
|
|
10
10
|
"./*": {
|
package/util/math.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { IO,
|
|
1
|
+
import { IO, UIO } from "@fncts/io/IO";
|
|
2
2
|
/** @internal */
|
|
3
3
|
export declare const MIN_VALUE_32: number;
|
|
4
4
|
/** @internal */
|
|
5
5
|
export declare const MAX_VALUE_32: number;
|
|
6
6
|
/** @internal */
|
|
7
7
|
export declare const EPSILON_32: number;
|
|
8
|
-
export declare function safeFloatToIndex(f: number, label: string): IO<
|
|
8
|
+
export declare function safeFloatToIndex(f: number, label: string): IO<never, never, number>;
|
|
9
9
|
export declare function decomposeFloat(f: number): {
|
|
10
10
|
exponent: number;
|
|
11
11
|
significand: number;
|
|
@@ -110,7 +110,7 @@ export declare function indexToDouble(index: ArrayInt64): number;
|
|
|
110
110
|
*
|
|
111
111
|
* @internal
|
|
112
112
|
*/
|
|
113
|
-
export declare function safeDoubleToIndex(d: number, label: string): IO<
|
|
113
|
+
export declare function safeDoubleToIndex(d: number, label: string): IO<never, never, ArrayInt64>;
|
|
114
114
|
export declare function nextUp(x: number): number;
|
|
115
115
|
export declare function nextAfter(x: number, y: number): number;
|
|
116
116
|
export declare function computeBiasedRanges(min: ArrayInt64, max: ArrayInt64, biasedRanges?: {
|
|
@@ -123,7 +123,7 @@ export declare function computeBiasedRanges(min: ArrayInt64, max: ArrayInt64, bi
|
|
|
123
123
|
export declare function computeArrayInt64GenerateRange(min: ArrayInt64, max: ArrayInt64, biasFactor: number | undefined, biasedRanges: {
|
|
124
124
|
min: ArrayInt64;
|
|
125
125
|
max: ArrayInt64;
|
|
126
|
-
}[] | undefined):
|
|
126
|
+
}[] | undefined): UIO<{
|
|
127
127
|
min: ArrayInt64;
|
|
128
128
|
max: ArrayInt64;
|
|
129
129
|
}>;
|