-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
49 changed files
with
240 additions
and
190 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import fc from 'fast-check'; | ||
import { CandidArb } from '../candid_arb'; | ||
import { CandidMetaArb } from '../candid_arb'; | ||
import { booleanToSrcLiteral } from '../to_src_literal/boolean'; | ||
|
||
export const BoolArb = CandidArb(fc.boolean(), 'bool', booleanToSrcLiteral); | ||
export const BoolArb = CandidMetaArb(fc.boolean(), 'bool', booleanToSrcLiteral); |
8 changes: 6 additions & 2 deletions
8
property_tests/arbitraries/candid/primitive/floats/float32_arb.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
import fc from 'fast-check'; | ||
import { CandidArb } from '../../candid_arb'; | ||
import { CandidMetaArb } from '../../candid_arb'; | ||
import { floatToSrcLiteral } from '../../to_src_literal/float'; | ||
|
||
export const Float32Arb = CandidArb(fc.float(), 'float32', floatToSrcLiteral); | ||
export const Float32Arb = CandidMetaArb( | ||
fc.float(), | ||
'float32', | ||
floatToSrcLiteral | ||
); |
4 changes: 2 additions & 2 deletions
4
property_tests/arbitraries/candid/primitive/floats/float64_arb.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 6 additions & 2 deletions
8
property_tests/arbitraries/candid/primitive/ints/int16_arb.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
import { numberToSrcLiteral } from '../../to_src_literal/number'; | ||
import { CandidArb } from '../../candid_arb'; | ||
import { CandidMetaArb } from '../../candid_arb'; | ||
import { NumberArb } from './'; | ||
|
||
export const Int16Arb = CandidArb(NumberArb(16), 'int16', numberToSrcLiteral); | ||
export const Int16Arb = CandidMetaArb( | ||
NumberArb(16), | ||
'int16', | ||
numberToSrcLiteral | ||
); |
8 changes: 6 additions & 2 deletions
8
property_tests/arbitraries/candid/primitive/ints/int32_arb.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
import { numberToSrcLiteral } from '../../to_src_literal/number'; | ||
import { CandidArb } from '../../candid_arb'; | ||
import { CandidMetaArb } from '../../candid_arb'; | ||
import { NumberArb } from './'; | ||
|
||
export const Int32Arb = CandidArb(NumberArb(32), 'int32', numberToSrcLiteral); | ||
export const Int32Arb = CandidMetaArb( | ||
NumberArb(32), | ||
'int32', | ||
numberToSrcLiteral | ||
); |
8 changes: 6 additions & 2 deletions
8
property_tests/arbitraries/candid/primitive/ints/int64_arb.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
import fc from 'fast-check'; | ||
import { CandidArb } from '../../candid_arb'; | ||
import { CandidMetaArb } from '../../candid_arb'; | ||
import { bigintToSrcLiteral } from '../../to_src_literal/bigint'; | ||
|
||
export const Int64Arb = CandidArb(fc.bigIntN(64), 'int64', bigintToSrcLiteral); | ||
export const Int64Arb = CandidMetaArb( | ||
fc.bigIntN(64), | ||
'int64', | ||
bigintToSrcLiteral | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import { numberToSrcLiteral } from '../../to_src_literal/number'; | ||
import { CandidArb } from '../../candid_arb'; | ||
import { CandidMetaArb } from '../../candid_arb'; | ||
import { NumberArb } from './'; | ||
|
||
export const Int8Arb = CandidArb(NumberArb(8), 'int8', numberToSrcLiteral); | ||
export const Int8Arb = CandidMetaArb(NumberArb(8), 'int8', numberToSrcLiteral); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import fc from 'fast-check'; | ||
import { CandidArb } from '../../candid_arb'; | ||
import { CandidMetaArb } from '../../candid_arb'; | ||
import { bigintToSrcLiteral } from '../../to_src_literal/bigint'; | ||
|
||
export const IntArb = CandidArb(fc.bigInt(), 'int', bigintToSrcLiteral); | ||
export const IntArb = CandidMetaArb(fc.bigInt(), 'int', bigintToSrcLiteral); |
8 changes: 6 additions & 2 deletions
8
property_tests/arbitraries/candid/primitive/nats/nat16_arb.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
import { numberToSrcLiteral } from '../../to_src_literal/number'; | ||
import { CandidArb } from '../../candid_arb'; | ||
import { CandidMetaArb } from '../../candid_arb'; | ||
import { UNumberArb } from './index'; | ||
|
||
export const Nat16Arb = CandidArb(UNumberArb(16), 'nat16', numberToSrcLiteral); | ||
export const Nat16Arb = CandidMetaArb( | ||
UNumberArb(16), | ||
'nat16', | ||
numberToSrcLiteral | ||
); |
8 changes: 6 additions & 2 deletions
8
property_tests/arbitraries/candid/primitive/nats/nat32_arb.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
import { numberToSrcLiteral } from '../../to_src_literal/number'; | ||
import { CandidArb } from '../../candid_arb'; | ||
import { CandidMetaArb } from '../../candid_arb'; | ||
import { UNumberArb } from './index'; | ||
|
||
export const Nat32Arb = CandidArb(UNumberArb(32), 'nat32', numberToSrcLiteral); | ||
export const Nat32Arb = CandidMetaArb( | ||
UNumberArb(32), | ||
'nat32', | ||
numberToSrcLiteral | ||
); |
8 changes: 6 additions & 2 deletions
8
property_tests/arbitraries/candid/primitive/nats/nat64_arb.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
import fc from 'fast-check'; | ||
import { CandidArb } from '../../candid_arb'; | ||
import { CandidMetaArb } from '../../candid_arb'; | ||
import { bigintToSrcLiteral } from '../../to_src_literal/bigint'; | ||
|
||
export const Nat64Arb = CandidArb(fc.bigUintN(64), 'nat64', bigintToSrcLiteral); | ||
export const Nat64Arb = CandidMetaArb( | ||
fc.bigUintN(64), | ||
'nat64', | ||
bigintToSrcLiteral | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import { numberToSrcLiteral } from '../../to_src_literal/number'; | ||
import { CandidArb } from '../../candid_arb'; | ||
import { CandidMetaArb } from '../../candid_arb'; | ||
import { UNumberArb } from './index'; | ||
|
||
export const Nat8Arb = CandidArb(UNumberArb(8), 'nat8', numberToSrcLiteral); | ||
export const Nat8Arb = CandidMetaArb(UNumberArb(8), 'nat8', numberToSrcLiteral); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import fc from 'fast-check'; | ||
import { CandidArb } from '../../candid_arb'; | ||
import { CandidMetaArb } from '../../candid_arb'; | ||
import { bigintToSrcLiteral } from '../../to_src_literal/bigint'; | ||
|
||
export const NatArb = CandidArb(fc.bigUint(), 'nat', bigintToSrcLiteral); | ||
export const NatArb = CandidMetaArb(fc.bigUint(), 'nat', bigintToSrcLiteral); |
Oops, something went wrong.