From f2e731b7dfe30c69d45ad89c54d030f6df79c1a3 Mon Sep 17 00:00:00 2001 From: Benjamin DeMann Date: Wed, 17 Jan 2024 14:07:55 -0700 Subject: [PATCH] quick fixes --- .../candid_definition_arb/complex_candid_definition_memo.ts | 1 - .../candid_definition_arb/recursive_candid_definition_memo.ts | 1 - property_tests/arbitraries/candid/primitive/text.ts | 2 ++ 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/property_tests/arbitraries/candid/candid_definition_arb/complex_candid_definition_memo.ts b/property_tests/arbitraries/candid/candid_definition_arb/complex_candid_definition_memo.ts index 08cb9f841f..79218dbf52 100644 --- a/property_tests/arbitraries/candid/candid_definition_arb/complex_candid_definition_memo.ts +++ b/property_tests/arbitraries/candid/candid_definition_arb/complex_candid_definition_memo.ts @@ -13,7 +13,6 @@ import { DefinitionConstraints, RecursiveCandidName } from './types'; -import { RecursiveShapes } from '../recursive'; export type ComplexDefinitionWeights = Partial<{ blob: number; diff --git a/property_tests/arbitraries/candid/candid_definition_arb/recursive_candid_definition_memo.ts b/property_tests/arbitraries/candid/candid_definition_arb/recursive_candid_definition_memo.ts index 8505d31af7..e76f2a0e35 100644 --- a/property_tests/arbitraries/candid/candid_definition_arb/recursive_candid_definition_memo.ts +++ b/property_tests/arbitraries/candid/candid_definition_arb/recursive_candid_definition_memo.ts @@ -2,7 +2,6 @@ import fc from 'fast-check'; import { RecursiveDefinitionArb } from '../recursive/definition_arb'; import { complexCandidDefinitionMemo } from './complex_candid_definition_memo'; import { RecursiveCandidName, CandidDefinitionMemo } from './types'; -import { RecursiveShapes } from '../recursive'; // The number of options below (it's just recursive) export const REC_ARB_COUNT = 0; diff --git a/property_tests/arbitraries/candid/primitive/text.ts b/property_tests/arbitraries/candid/primitive/text.ts index 292c9e6f71..4ee729e8c6 100644 --- a/property_tests/arbitraries/candid/primitive/text.ts +++ b/property_tests/arbitraries/candid/primitive/text.ts @@ -10,6 +10,7 @@ import { CandidValues } from '../candid_values_arb'; import { CandidValueAndMeta } from '../candid_value_and_meta_arb'; import { CandidValueAndMetaArbGenerator } from '../candid_value_and_meta_arb_generator'; import { JsFunctionNameArb } from '../../js_function_name_arb'; +import { RecursiveShapes } from '../recursive'; export interface TextConstraints extends StringSharedConstraints { canStartWithDigit?: boolean; @@ -32,6 +33,7 @@ export function TextDefinitionArb(): WithShapesArb { export function TextValueArb( _?: TextCandidDefinition, + _recShapes?: RecursiveShapes, constraints?: TextConstraints ): fc.Arbitrary> { const canStartWithDigit = constraints?.canStartWithDigit ?? true;