Skip to content

Commit

Permalink
quick fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bdemann committed Jan 17, 2024
1 parent 7145451 commit f2e731b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import {
DefinitionConstraints,
RecursiveCandidName
} from './types';
import { RecursiveShapes } from '../recursive';

export type ComplexDefinitionWeights = Partial<{
blob: number;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 2 additions & 0 deletions property_tests/arbitraries/candid/primitive/text.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -32,6 +33,7 @@ export function TextDefinitionArb(): WithShapesArb<TextCandidDefinition> {

export function TextValueArb(
_?: TextCandidDefinition,
_recShapes?: RecursiveShapes,
constraints?: TextConstraints
): fc.Arbitrary<CandidValues<string>> {
const canStartWithDigit = constraints?.canStartWithDigit ?? true;
Expand Down

0 comments on commit f2e731b

Please sign in to comment.