diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7ba3652ef1..283a45483b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -64,10 +64,10 @@ jobs: run: | EXAMPLE_DIRECTORIES=$(cat << END [ - "tests/property/candid_rpc/class_syntax/service", - "tests/property/candid_rpc/class_syntax/stable_b_tree_map", - "tests/property/candid_rpc/functional_syntax/service", - "tests/property/candid_rpc/functional_syntax/stable_b_tree_map", + "tests/property/candid_rpc/class_api/service", + "tests/property/candid_rpc/class_api/stable_b_tree_map", + "tests/property/candid_rpc/functional_api/service", + "tests/property/candid_rpc/functional_api/stable_b_tree_map", "tests/end_to_end/http_server/ethers_base", "tests/end_to_end/http_server/http_outcall_fetch", "tests/end_to_end/http_server/ic_evm_rpc", @@ -76,70 +76,70 @@ jobs: "examples/ckbtc", "examples/hello_world", "examples/hello_world_candid_rpc", - "tests/property/candid_rpc/class_syntax/blob", - "tests/property/candid_rpc/class_syntax/bool", - "tests/property/candid_rpc/class_syntax/canister_methods/http_request", - "tests/property/candid_rpc/class_syntax/canister_methods/http_request_update", - "tests/property/candid_rpc/class_syntax/canister_methods/init", - "tests/property/candid_rpc/class_syntax/canister_methods/inspect_message", - "tests/property/candid_rpc/class_syntax/canister_methods/post_upgrade", - "tests/property/candid_rpc/class_syntax/canister_methods/pre_upgrade", - "tests/property/candid_rpc/class_syntax/canister_methods/query", - "tests/property/candid_rpc/class_syntax/canister_methods/update", - "tests/property/candid_rpc/class_syntax/float32", - "tests/property/candid_rpc/class_syntax/float64", - "tests/property/candid_rpc/class_syntax/func", - "tests/property/candid_rpc/class_syntax/int", - "tests/property/candid_rpc/class_syntax/int16", - "tests/property/candid_rpc/class_syntax/int32", - "tests/property/candid_rpc/class_syntax/int64", - "tests/property/candid_rpc/class_syntax/int8", - "tests/property/candid_rpc/class_syntax/nat", - "tests/property/candid_rpc/class_syntax/nat16", - "tests/property/candid_rpc/class_syntax/nat32", - "tests/property/candid_rpc/class_syntax/nat64", - "tests/property/candid_rpc/class_syntax/nat8", - "tests/property/candid_rpc/class_syntax/null", - "tests/property/candid_rpc/class_syntax/opt", - "tests/property/candid_rpc/class_syntax/principal", - "tests/property/candid_rpc/class_syntax/record", - "tests/property/candid_rpc/class_syntax/recursive", - "tests/property/candid_rpc/class_syntax/text", - "tests/property/candid_rpc/class_syntax/tuple", - "tests/property/candid_rpc/class_syntax/variant", - "tests/property/candid_rpc/class_syntax/vec", - "tests/property/candid_rpc/functional_syntax/blob", - "tests/property/candid_rpc/functional_syntax/bool", - "tests/property/candid_rpc/functional_syntax/canister_methods/http_request", - "tests/property/candid_rpc/functional_syntax/canister_methods/http_request_update", - "tests/property/candid_rpc/functional_syntax/canister_methods/init", - "tests/property/candid_rpc/functional_syntax/canister_methods/inspect_message", - "tests/property/candid_rpc/functional_syntax/canister_methods/post_upgrade", - "tests/property/candid_rpc/functional_syntax/canister_methods/pre_upgrade", - "tests/property/candid_rpc/functional_syntax/canister_methods/query", - "tests/property/candid_rpc/functional_syntax/canister_methods/update", - "tests/property/candid_rpc/functional_syntax/float32", - "tests/property/candid_rpc/functional_syntax/float64", - "tests/property/candid_rpc/functional_syntax/func", - "tests/property/candid_rpc/functional_syntax/int", - "tests/property/candid_rpc/functional_syntax/int16", - "tests/property/candid_rpc/functional_syntax/int32", - "tests/property/candid_rpc/functional_syntax/int64", - "tests/property/candid_rpc/functional_syntax/int8", - "tests/property/candid_rpc/functional_syntax/nat", - "tests/property/candid_rpc/functional_syntax/nat16", - "tests/property/candid_rpc/functional_syntax/nat32", - "tests/property/candid_rpc/functional_syntax/nat64", - "tests/property/candid_rpc/functional_syntax/nat8", - "tests/property/candid_rpc/functional_syntax/null", - "tests/property/candid_rpc/functional_syntax/opt", - "tests/property/candid_rpc/functional_syntax/principal", - "tests/property/candid_rpc/functional_syntax/record", - "tests/property/candid_rpc/functional_syntax/recursive", - "tests/property/candid_rpc/functional_syntax/text", - "tests/property/candid_rpc/functional_syntax/tuple", - "tests/property/candid_rpc/functional_syntax/variant", - "tests/property/candid_rpc/functional_syntax/vec", + "tests/property/candid_rpc/class_api/blob", + "tests/property/candid_rpc/class_api/bool", + "tests/property/candid_rpc/class_api/canister_methods/http_request", + "tests/property/candid_rpc/class_api/canister_methods/http_request_update", + "tests/property/candid_rpc/class_api/canister_methods/init", + "tests/property/candid_rpc/class_api/canister_methods/inspect_message", + "tests/property/candid_rpc/class_api/canister_methods/post_upgrade", + "tests/property/candid_rpc/class_api/canister_methods/pre_upgrade", + "tests/property/candid_rpc/class_api/canister_methods/query", + "tests/property/candid_rpc/class_api/canister_methods/update", + "tests/property/candid_rpc/class_api/float32", + "tests/property/candid_rpc/class_api/float64", + "tests/property/candid_rpc/class_api/func", + "tests/property/candid_rpc/class_api/int", + "tests/property/candid_rpc/class_api/int16", + "tests/property/candid_rpc/class_api/int32", + "tests/property/candid_rpc/class_api/int64", + "tests/property/candid_rpc/class_api/int8", + "tests/property/candid_rpc/class_api/nat", + "tests/property/candid_rpc/class_api/nat16", + "tests/property/candid_rpc/class_api/nat32", + "tests/property/candid_rpc/class_api/nat64", + "tests/property/candid_rpc/class_api/nat8", + "tests/property/candid_rpc/class_api/null", + "tests/property/candid_rpc/class_api/opt", + "tests/property/candid_rpc/class_api/principal", + "tests/property/candid_rpc/class_api/record", + "tests/property/candid_rpc/class_api/recursive", + "tests/property/candid_rpc/class_api/text", + "tests/property/candid_rpc/class_api/tuple", + "tests/property/candid_rpc/class_api/variant", + "tests/property/candid_rpc/class_api/vec", + "tests/property/candid_rpc/functional_api/blob", + "tests/property/candid_rpc/functional_api/bool", + "tests/property/candid_rpc/functional_api/canister_methods/http_request", + "tests/property/candid_rpc/functional_api/canister_methods/http_request_update", + "tests/property/candid_rpc/functional_api/canister_methods/init", + "tests/property/candid_rpc/functional_api/canister_methods/inspect_message", + "tests/property/candid_rpc/functional_api/canister_methods/post_upgrade", + "tests/property/candid_rpc/functional_api/canister_methods/pre_upgrade", + "tests/property/candid_rpc/functional_api/canister_methods/query", + "tests/property/candid_rpc/functional_api/canister_methods/update", + "tests/property/candid_rpc/functional_api/float32", + "tests/property/candid_rpc/functional_api/float64", + "tests/property/candid_rpc/functional_api/func", + "tests/property/candid_rpc/functional_api/int", + "tests/property/candid_rpc/functional_api/int16", + "tests/property/candid_rpc/functional_api/int32", + "tests/property/candid_rpc/functional_api/int64", + "tests/property/candid_rpc/functional_api/int8", + "tests/property/candid_rpc/functional_api/nat", + "tests/property/candid_rpc/functional_api/nat16", + "tests/property/candid_rpc/functional_api/nat32", + "tests/property/candid_rpc/functional_api/nat64", + "tests/property/candid_rpc/functional_api/nat8", + "tests/property/candid_rpc/functional_api/null", + "tests/property/candid_rpc/functional_api/opt", + "tests/property/candid_rpc/functional_api/principal", + "tests/property/candid_rpc/functional_api/record", + "tests/property/candid_rpc/functional_api/recursive", + "tests/property/candid_rpc/functional_api/text", + "tests/property/candid_rpc/functional_api/tuple", + "tests/property/candid_rpc/functional_api/variant", + "tests/property/candid_rpc/functional_api/vec", "tests/end_to_end/candid_rpc/class_syntax/async_await", "tests/end_to_end/candid_rpc/class_syntax/audio_recorder", "tests/end_to_end/candid_rpc/class_syntax/bitcoin", diff --git a/property_tests/arbitraries/candid/candid_definition_arb/complex_candid_definition_memo.ts b/test/property/arbitraries/candid/candid_definition_arb/complex_candid_definition_memo.ts similarity index 100% rename from property_tests/arbitraries/candid/candid_definition_arb/complex_candid_definition_memo.ts rename to test/property/arbitraries/candid/candid_definition_arb/complex_candid_definition_memo.ts diff --git a/property_tests/arbitraries/candid/candid_definition_arb/index.ts b/test/property/arbitraries/candid/candid_definition_arb/index.ts similarity index 100% rename from property_tests/arbitraries/candid/candid_definition_arb/index.ts rename to test/property/arbitraries/candid/candid_definition_arb/index.ts diff --git a/property_tests/arbitraries/candid/candid_definition_arb/recursive_candid_definition_memo.ts b/test/property/arbitraries/candid/candid_definition_arb/recursive_candid_definition_memo.ts similarity index 100% rename from property_tests/arbitraries/candid/candid_definition_arb/recursive_candid_definition_memo.ts rename to test/property/arbitraries/candid/candid_definition_arb/recursive_candid_definition_memo.ts diff --git a/property_tests/arbitraries/candid/candid_definition_arb/simple_candid_definition_arb.ts b/test/property/arbitraries/candid/candid_definition_arb/simple_candid_definition_arb.ts similarity index 100% rename from property_tests/arbitraries/candid/candid_definition_arb/simple_candid_definition_arb.ts rename to test/property/arbitraries/candid/candid_definition_arb/simple_candid_definition_arb.ts diff --git a/property_tests/arbitraries/candid/candid_definition_arb/types.ts b/test/property/arbitraries/candid/candid_definition_arb/types.ts similarity index 97% rename from property_tests/arbitraries/candid/candid_definition_arb/types.ts rename to test/property/arbitraries/candid/candid_definition_arb/types.ts index dd45587f64..e16909cac6 100644 --- a/property_tests/arbitraries/candid/candid_definition_arb/types.ts +++ b/test/property/arbitraries/candid/candid_definition_arb/types.ts @@ -1,6 +1,6 @@ import fc from 'fast-check'; -import { CandidType as RuntimeCandidType } from '../../../../src/lib/experimental/candid/candid_type'; +import { CandidType as RuntimeCandidType } from '../../../../../src/lib/experimental/candid/candid_type'; import { Context } from '../../types'; import { CandidType } from '../candid_type'; import { RecursiveShapes } from '../recursive'; diff --git a/property_tests/arbitraries/candid/candid_return_type_arb.ts b/test/property/arbitraries/candid/candid_return_type_arb.ts similarity index 100% rename from property_tests/arbitraries/candid/candid_return_type_arb.ts rename to test/property/arbitraries/candid/candid_return_type_arb.ts diff --git a/property_tests/arbitraries/candid/candid_type.ts b/test/property/arbitraries/candid/candid_type.ts similarity index 100% rename from property_tests/arbitraries/candid/candid_type.ts rename to test/property/arbitraries/candid/candid_type.ts diff --git a/property_tests/arbitraries/candid/candid_value_and_meta_arb.ts b/test/property/arbitraries/candid/candid_value_and_meta_arb.ts similarity index 97% rename from property_tests/arbitraries/candid/candid_value_and_meta_arb.ts rename to test/property/arbitraries/candid/candid_value_and_meta_arb.ts index 02d07f7647..573d9eb8ff 100644 --- a/property_tests/arbitraries/candid/candid_value_and_meta_arb.ts +++ b/test/property/arbitraries/candid/candid_value_and_meta_arb.ts @@ -1,6 +1,6 @@ import fc from 'fast-check'; -import { CandidType as RuntimeCandidType } from '../../../src/lib/experimental'; +import { CandidType as RuntimeCandidType } from '../../../../src/lib/experimental'; import { Context } from '../types'; import { CandidValueConstraints } from './candid_values_arb'; import { BlobArb } from './constructed/blob_arb'; diff --git a/property_tests/arbitraries/candid/candid_value_and_meta_arb_generator.ts b/test/property/arbitraries/candid/candid_value_and_meta_arb_generator.ts similarity index 100% rename from property_tests/arbitraries/candid/candid_value_and_meta_arb_generator.ts rename to test/property/arbitraries/candid/candid_value_and_meta_arb_generator.ts diff --git a/property_tests/arbitraries/candid/candid_values_arb.ts b/test/property/arbitraries/candid/candid_values_arb.ts similarity index 100% rename from property_tests/arbitraries/candid/candid_values_arb.ts rename to test/property/arbitraries/candid/candid_values_arb.ts diff --git a/property_tests/arbitraries/candid/constructed/blob_arb/definition_arb.ts b/test/property/arbitraries/candid/constructed/blob_arb/definition_arb.ts similarity index 96% rename from property_tests/arbitraries/candid/constructed/blob_arb/definition_arb.ts rename to test/property/arbitraries/candid/constructed/blob_arb/definition_arb.ts index 199a079aae..b40af61920 100644 --- a/property_tests/arbitraries/candid/constructed/blob_arb/definition_arb.ts +++ b/test/property/arbitraries/candid/constructed/blob_arb/definition_arb.ts @@ -1,6 +1,6 @@ import fc from 'fast-check'; -import { blob } from '../../../../../src/lib/experimental'; +import { blob } from '../../../../../../src/lib/experimental'; import { Context } from '../../../types'; import { UniqueIdentifierArb } from '../../../unique_identifier_arb'; import { diff --git a/property_tests/arbitraries/candid/constructed/blob_arb/index.ts b/test/property/arbitraries/candid/constructed/blob_arb/index.ts similarity index 100% rename from property_tests/arbitraries/candid/constructed/blob_arb/index.ts rename to test/property/arbitraries/candid/constructed/blob_arb/index.ts diff --git a/property_tests/arbitraries/candid/constructed/blob_arb/values_arb.ts b/test/property/arbitraries/candid/constructed/blob_arb/values_arb.ts similarity index 100% rename from property_tests/arbitraries/candid/constructed/blob_arb/values_arb.ts rename to test/property/arbitraries/candid/constructed/blob_arb/values_arb.ts diff --git a/property_tests/arbitraries/candid/constructed/opt_arb/definition_arb.ts b/test/property/arbitraries/candid/constructed/opt_arb/definition_arb.ts similarity index 98% rename from property_tests/arbitraries/candid/constructed/opt_arb/definition_arb.ts rename to test/property/arbitraries/candid/constructed/opt_arb/definition_arb.ts index e3c93bfddf..59bb3d2348 100644 --- a/property_tests/arbitraries/candid/constructed/opt_arb/definition_arb.ts +++ b/test/property/arbitraries/candid/constructed/opt_arb/definition_arb.ts @@ -1,6 +1,6 @@ import fc from 'fast-check'; -import { CandidType, Opt } from '../../../../../src/lib/experimental'; +import { CandidType, Opt } from '../../../../../../src/lib/experimental'; import { Api, Context } from '../../../types'; import { UniqueIdentifierArb } from '../../../unique_identifier_arb'; import { diff --git a/property_tests/arbitraries/candid/constructed/opt_arb/index.ts b/test/property/arbitraries/candid/constructed/opt_arb/index.ts similarity index 100% rename from property_tests/arbitraries/candid/constructed/opt_arb/index.ts rename to test/property/arbitraries/candid/constructed/opt_arb/index.ts diff --git a/property_tests/arbitraries/candid/constructed/opt_arb/values_arb.ts b/test/property/arbitraries/candid/constructed/opt_arb/values_arb.ts similarity index 100% rename from property_tests/arbitraries/candid/constructed/opt_arb/values_arb.ts rename to test/property/arbitraries/candid/constructed/opt_arb/values_arb.ts diff --git a/property_tests/arbitraries/candid/constructed/record_arb/definition_arb.ts b/test/property/arbitraries/candid/constructed/record_arb/definition_arb.ts similarity index 98% rename from property_tests/arbitraries/candid/constructed/record_arb/definition_arb.ts rename to test/property/arbitraries/candid/constructed/record_arb/definition_arb.ts index 2d85e57faa..07c60697b3 100644 --- a/property_tests/arbitraries/candid/constructed/record_arb/definition_arb.ts +++ b/test/property/arbitraries/candid/constructed/record_arb/definition_arb.ts @@ -1,6 +1,6 @@ import fc from 'fast-check'; -import { CandidType, Record } from '../../../../../src/lib/experimental'; +import { CandidType, Record } from '../../../../../../src/lib/experimental'; import { JsFunctionNameArb } from '../../../js_function_name_arb'; import { Api, Context } from '../../../types'; import { UniqueIdentifierArb } from '../../../unique_identifier_arb'; diff --git a/property_tests/arbitraries/candid/constructed/record_arb/index.ts b/test/property/arbitraries/candid/constructed/record_arb/index.ts similarity index 100% rename from property_tests/arbitraries/candid/constructed/record_arb/index.ts rename to test/property/arbitraries/candid/constructed/record_arb/index.ts diff --git a/property_tests/arbitraries/candid/constructed/record_arb/values_arb.ts b/test/property/arbitraries/candid/constructed/record_arb/values_arb.ts similarity index 100% rename from property_tests/arbitraries/candid/constructed/record_arb/values_arb.ts rename to test/property/arbitraries/candid/constructed/record_arb/values_arb.ts diff --git a/property_tests/arbitraries/candid/constructed/tuple_arb/definition_arb.ts b/test/property/arbitraries/candid/constructed/tuple_arb/definition_arb.ts similarity index 98% rename from property_tests/arbitraries/candid/constructed/tuple_arb/definition_arb.ts rename to test/property/arbitraries/candid/constructed/tuple_arb/definition_arb.ts index 461c114dc0..97bd1ebd24 100644 --- a/property_tests/arbitraries/candid/constructed/tuple_arb/definition_arb.ts +++ b/test/property/arbitraries/candid/constructed/tuple_arb/definition_arb.ts @@ -1,6 +1,6 @@ import fc from 'fast-check'; -import { CandidType, Tuple } from '../../../../../src/lib/experimental'; +import { CandidType, Tuple } from '../../../../../../src/lib/experimental'; import { Api, Context } from '../../../types'; import { UniqueIdentifierArb } from '../../../unique_identifier_arb'; import { diff --git a/property_tests/arbitraries/candid/constructed/tuple_arb/index.ts b/test/property/arbitraries/candid/constructed/tuple_arb/index.ts similarity index 100% rename from property_tests/arbitraries/candid/constructed/tuple_arb/index.ts rename to test/property/arbitraries/candid/constructed/tuple_arb/index.ts diff --git a/property_tests/arbitraries/candid/constructed/tuple_arb/values_arbs.ts b/test/property/arbitraries/candid/constructed/tuple_arb/values_arbs.ts similarity index 100% rename from property_tests/arbitraries/candid/constructed/tuple_arb/values_arbs.ts rename to test/property/arbitraries/candid/constructed/tuple_arb/values_arbs.ts diff --git a/property_tests/arbitraries/candid/constructed/variant_arb/definition_arbs.ts b/test/property/arbitraries/candid/constructed/variant_arb/definition_arbs.ts similarity index 99% rename from property_tests/arbitraries/candid/constructed/variant_arb/definition_arbs.ts rename to test/property/arbitraries/candid/constructed/variant_arb/definition_arbs.ts index c102c46236..c7061c4342 100644 --- a/property_tests/arbitraries/candid/constructed/variant_arb/definition_arbs.ts +++ b/test/property/arbitraries/candid/constructed/variant_arb/definition_arbs.ts @@ -1,6 +1,6 @@ import fc from 'fast-check'; -import { CandidType, Variant } from '../../../../../src/lib/experimental'; +import { CandidType, Variant } from '../../../../../../src/lib/experimental'; import { JsFunctionNameArb } from '../../../js_function_name_arb'; import { Api, Context } from '../../../types'; import { UniqueIdentifierArb } from '../../../unique_identifier_arb'; diff --git a/property_tests/arbitraries/candid/constructed/variant_arb/index.ts b/test/property/arbitraries/candid/constructed/variant_arb/index.ts similarity index 100% rename from property_tests/arbitraries/candid/constructed/variant_arb/index.ts rename to test/property/arbitraries/candid/constructed/variant_arb/index.ts diff --git a/property_tests/arbitraries/candid/constructed/variant_arb/values_arb.ts b/test/property/arbitraries/candid/constructed/variant_arb/values_arb.ts similarity index 100% rename from property_tests/arbitraries/candid/constructed/variant_arb/values_arb.ts rename to test/property/arbitraries/candid/constructed/variant_arb/values_arb.ts diff --git a/property_tests/arbitraries/candid/constructed/vec_arb/definition_arb.ts b/test/property/arbitraries/candid/constructed/vec_arb/definition_arb.ts similarity index 98% rename from property_tests/arbitraries/candid/constructed/vec_arb/definition_arb.ts rename to test/property/arbitraries/candid/constructed/vec_arb/definition_arb.ts index b4c9cb1e54..9430160c90 100644 --- a/property_tests/arbitraries/candid/constructed/vec_arb/definition_arb.ts +++ b/test/property/arbitraries/candid/constructed/vec_arb/definition_arb.ts @@ -1,6 +1,6 @@ import fc from 'fast-check'; -import { CandidType, Vec } from '../../../../../src/lib/experimental'; +import { CandidType, Vec } from '../../../../../../src/lib/experimental'; import { Api, Context } from '../../../types'; import { UniqueIdentifierArb } from '../../../unique_identifier_arb'; import { diff --git a/property_tests/arbitraries/candid/constructed/vec_arb/index.ts b/test/property/arbitraries/candid/constructed/vec_arb/index.ts similarity index 100% rename from property_tests/arbitraries/candid/constructed/vec_arb/index.ts rename to test/property/arbitraries/candid/constructed/vec_arb/index.ts diff --git a/property_tests/arbitraries/candid/constructed/vec_arb/values_arb.ts b/test/property/arbitraries/candid/constructed/vec_arb/values_arb.ts similarity index 100% rename from property_tests/arbitraries/candid/constructed/vec_arb/values_arb.ts rename to test/property/arbitraries/candid/constructed/vec_arb/values_arb.ts diff --git a/property_tests/arbitraries/candid/corresponding_js_type.ts b/test/property/arbitraries/candid/corresponding_js_type.ts similarity index 100% rename from property_tests/arbitraries/candid/corresponding_js_type.ts rename to test/property/arbitraries/candid/corresponding_js_type.ts diff --git a/property_tests/arbitraries/candid/primitive/bool.ts b/test/property/arbitraries/candid/primitive/bool.ts similarity index 100% rename from property_tests/arbitraries/candid/primitive/bool.ts rename to test/property/arbitraries/candid/primitive/bool.ts diff --git a/property_tests/arbitraries/candid/primitive/floats/float32_arb.ts b/test/property/arbitraries/candid/primitive/floats/float32_arb.ts similarity index 100% rename from property_tests/arbitraries/candid/primitive/floats/float32_arb.ts rename to test/property/arbitraries/candid/primitive/floats/float32_arb.ts diff --git a/property_tests/arbitraries/candid/primitive/floats/float64_arb.ts b/test/property/arbitraries/candid/primitive/floats/float64_arb.ts similarity index 100% rename from property_tests/arbitraries/candid/primitive/floats/float64_arb.ts rename to test/property/arbitraries/candid/primitive/floats/float64_arb.ts diff --git a/property_tests/arbitraries/candid/primitive/ints/index.ts b/test/property/arbitraries/candid/primitive/ints/index.ts similarity index 100% rename from property_tests/arbitraries/candid/primitive/ints/index.ts rename to test/property/arbitraries/candid/primitive/ints/index.ts diff --git a/property_tests/arbitraries/candid/primitive/ints/int16_arb.ts b/test/property/arbitraries/candid/primitive/ints/int16_arb.ts similarity index 100% rename from property_tests/arbitraries/candid/primitive/ints/int16_arb.ts rename to test/property/arbitraries/candid/primitive/ints/int16_arb.ts diff --git a/property_tests/arbitraries/candid/primitive/ints/int32_arb.ts b/test/property/arbitraries/candid/primitive/ints/int32_arb.ts similarity index 100% rename from property_tests/arbitraries/candid/primitive/ints/int32_arb.ts rename to test/property/arbitraries/candid/primitive/ints/int32_arb.ts diff --git a/property_tests/arbitraries/candid/primitive/ints/int64_arb.ts b/test/property/arbitraries/candid/primitive/ints/int64_arb.ts similarity index 100% rename from property_tests/arbitraries/candid/primitive/ints/int64_arb.ts rename to test/property/arbitraries/candid/primitive/ints/int64_arb.ts diff --git a/property_tests/arbitraries/candid/primitive/ints/int8_arb.ts b/test/property/arbitraries/candid/primitive/ints/int8_arb.ts similarity index 100% rename from property_tests/arbitraries/candid/primitive/ints/int8_arb.ts rename to test/property/arbitraries/candid/primitive/ints/int8_arb.ts diff --git a/property_tests/arbitraries/candid/primitive/ints/int_arb.ts b/test/property/arbitraries/candid/primitive/ints/int_arb.ts similarity index 100% rename from property_tests/arbitraries/candid/primitive/ints/int_arb.ts rename to test/property/arbitraries/candid/primitive/ints/int_arb.ts diff --git a/property_tests/arbitraries/candid/primitive/nats/index.ts b/test/property/arbitraries/candid/primitive/nats/index.ts similarity index 100% rename from property_tests/arbitraries/candid/primitive/nats/index.ts rename to test/property/arbitraries/candid/primitive/nats/index.ts diff --git a/property_tests/arbitraries/candid/primitive/nats/nat16_arb.ts b/test/property/arbitraries/candid/primitive/nats/nat16_arb.ts similarity index 100% rename from property_tests/arbitraries/candid/primitive/nats/nat16_arb.ts rename to test/property/arbitraries/candid/primitive/nats/nat16_arb.ts diff --git a/property_tests/arbitraries/candid/primitive/nats/nat32_arb.ts b/test/property/arbitraries/candid/primitive/nats/nat32_arb.ts similarity index 100% rename from property_tests/arbitraries/candid/primitive/nats/nat32_arb.ts rename to test/property/arbitraries/candid/primitive/nats/nat32_arb.ts diff --git a/property_tests/arbitraries/candid/primitive/nats/nat64_arb.ts b/test/property/arbitraries/candid/primitive/nats/nat64_arb.ts similarity index 100% rename from property_tests/arbitraries/candid/primitive/nats/nat64_arb.ts rename to test/property/arbitraries/candid/primitive/nats/nat64_arb.ts diff --git a/property_tests/arbitraries/candid/primitive/nats/nat8_arb.ts b/test/property/arbitraries/candid/primitive/nats/nat8_arb.ts similarity index 100% rename from property_tests/arbitraries/candid/primitive/nats/nat8_arb.ts rename to test/property/arbitraries/candid/primitive/nats/nat8_arb.ts diff --git a/property_tests/arbitraries/candid/primitive/nats/nat_arb.ts b/test/property/arbitraries/candid/primitive/nats/nat_arb.ts similarity index 100% rename from property_tests/arbitraries/candid/primitive/nats/nat_arb.ts rename to test/property/arbitraries/candid/primitive/nats/nat_arb.ts diff --git a/property_tests/arbitraries/candid/primitive/null.ts b/test/property/arbitraries/candid/primitive/null.ts similarity index 100% rename from property_tests/arbitraries/candid/primitive/null.ts rename to test/property/arbitraries/candid/primitive/null.ts diff --git a/property_tests/arbitraries/candid/primitive/text.ts b/test/property/arbitraries/candid/primitive/text.ts similarity index 100% rename from property_tests/arbitraries/candid/primitive/text.ts rename to test/property/arbitraries/candid/primitive/text.ts diff --git a/property_tests/arbitraries/candid/primitive/void.ts b/test/property/arbitraries/candid/primitive/void.ts similarity index 100% rename from property_tests/arbitraries/candid/primitive/void.ts rename to test/property/arbitraries/candid/primitive/void.ts diff --git a/property_tests/arbitraries/candid/recursive/definition_arb.ts b/test/property/arbitraries/candid/recursive/definition_arb.ts similarity index 98% rename from property_tests/arbitraries/candid/recursive/definition_arb.ts rename to test/property/arbitraries/candid/recursive/definition_arb.ts index 570a174898..26121c0678 100644 --- a/property_tests/arbitraries/candid/recursive/definition_arb.ts +++ b/test/property/arbitraries/candid/recursive/definition_arb.ts @@ -1,6 +1,6 @@ import fc from 'fast-check'; -import { CandidType, Recursive } from '../../../../src/lib/experimental'; +import { CandidType, Recursive } from '../../../../../src/lib/experimental'; import { Api, Context } from '../../types'; import { UniqueIdentifierArb } from '../../unique_identifier_arb'; import { diff --git a/property_tests/arbitraries/candid/recursive/index.ts b/test/property/arbitraries/candid/recursive/index.ts similarity index 100% rename from property_tests/arbitraries/candid/recursive/index.ts rename to test/property/arbitraries/candid/recursive/index.ts diff --git a/property_tests/arbitraries/candid/recursive/values_arb.ts b/test/property/arbitraries/candid/recursive/values_arb.ts similarity index 100% rename from property_tests/arbitraries/candid/recursive/values_arb.ts rename to test/property/arbitraries/candid/recursive/values_arb.ts diff --git a/property_tests/arbitraries/candid/reference/func_arb/definition_arb.ts b/test/property/arbitraries/candid/reference/func_arb/definition_arb.ts similarity index 97% rename from property_tests/arbitraries/candid/reference/func_arb/definition_arb.ts rename to test/property/arbitraries/candid/reference/func_arb/definition_arb.ts index 12b34e2e56..eff4465cc3 100644 --- a/property_tests/arbitraries/candid/reference/func_arb/definition_arb.ts +++ b/test/property/arbitraries/candid/reference/func_arb/definition_arb.ts @@ -1,7 +1,7 @@ import fc from 'fast-check'; -import { CandidType } from '../../../../../src/lib/experimental/candid/candid_type'; -import { Func } from '../../../../../src/lib/experimental/candid/types/reference/func'; +import { CandidType } from '../../../../../../src/lib/experimental/candid/candid_type'; +import { Func } from '../../../../../../src/lib/experimental/candid/types/reference/func'; import { Api, Context } from '../../../types'; import { UniqueIdentifierArb } from '../../../unique_identifier_arb'; import { diff --git a/property_tests/arbitraries/candid/reference/func_arb/index.ts b/test/property/arbitraries/candid/reference/func_arb/index.ts similarity index 100% rename from property_tests/arbitraries/candid/reference/func_arb/index.ts rename to test/property/arbitraries/candid/reference/func_arb/index.ts diff --git a/property_tests/arbitraries/candid/reference/func_arb/values_arb.ts b/test/property/arbitraries/candid/reference/func_arb/values_arb.ts similarity index 100% rename from property_tests/arbitraries/candid/reference/func_arb/values_arb.ts rename to test/property/arbitraries/candid/reference/func_arb/values_arb.ts diff --git a/property_tests/arbitraries/candid/reference/principal_arb.ts b/test/property/arbitraries/candid/reference/principal_arb.ts similarity index 100% rename from property_tests/arbitraries/candid/reference/principal_arb.ts rename to test/property/arbitraries/candid/reference/principal_arb.ts diff --git a/property_tests/arbitraries/candid/reference/service_arb/definition_arb.ts b/test/property/arbitraries/candid/reference/service_arb/definition_arb.ts similarity index 98% rename from property_tests/arbitraries/candid/reference/service_arb/definition_arb.ts rename to test/property/arbitraries/candid/reference/service_arb/definition_arb.ts index 1d580ed254..d5e4ba838b 100644 --- a/property_tests/arbitraries/candid/reference/service_arb/definition_arb.ts +++ b/test/property/arbitraries/candid/reference/service_arb/definition_arb.ts @@ -1,6 +1,6 @@ import fc from 'fast-check'; -import { Canister } from '../../../../../src/lib/experimental/candid/types/reference/service'; +import { Canister } from '../../../../../../src/lib/experimental/candid/types/reference/service'; import { Api, Context } from '../../../types'; import { UniqueIdentifierArb } from '../../../unique_identifier_arb'; import { diff --git a/property_tests/arbitraries/candid/reference/service_arb/index.ts b/test/property/arbitraries/candid/reference/service_arb/index.ts similarity index 100% rename from property_tests/arbitraries/candid/reference/service_arb/index.ts rename to test/property/arbitraries/candid/reference/service_arb/index.ts diff --git a/property_tests/arbitraries/candid/reference/service_arb/service_method_arb.ts b/test/property/arbitraries/candid/reference/service_arb/service_method_arb.ts similarity index 95% rename from property_tests/arbitraries/candid/reference/service_arb/service_method_arb.ts rename to test/property/arbitraries/candid/reference/service_arb/service_method_arb.ts index c3a86f77ef..c4069482b5 100644 --- a/property_tests/arbitraries/candid/reference/service_arb/service_method_arb.ts +++ b/test/property/arbitraries/candid/reference/service_arb/service_method_arb.ts @@ -3,8 +3,8 @@ import fc from 'fast-check'; import { query, update -} from '../../../../../src/lib/experimental/canister_methods/methods/'; -import { CanisterMethodInfo } from '../../../../../src/lib/experimental/canister_methods/types/canister_method_info'; +} from '../../../../../../src/lib/experimental/canister_methods/methods'; +import { CanisterMethodInfo } from '../../../../../../src/lib/experimental/canister_methods/types/canister_method_info'; import { JsFunctionNameArb } from '../../../js_function_name_arb'; import { Context } from '../../../types'; import { diff --git a/property_tests/arbitraries/candid/reference/service_arb/values_arb.ts b/test/property/arbitraries/candid/reference/service_arb/values_arb.ts similarity index 100% rename from property_tests/arbitraries/candid/reference/service_arb/values_arb.ts rename to test/property/arbitraries/candid/reference/service_arb/values_arb.ts diff --git a/property_tests/arbitraries/candid/simple_type_arbs/candid_type_to_azle_candid_type.ts b/test/property/arbitraries/candid/simple_type_arbs/candid_type_to_azle_candid_type.ts similarity index 97% rename from property_tests/arbitraries/candid/simple_type_arbs/candid_type_to_azle_candid_type.ts rename to test/property/arbitraries/candid/simple_type_arbs/candid_type_to_azle_candid_type.ts index fa94f88caa..3e421b6cb3 100644 --- a/property_tests/arbitraries/candid/simple_type_arbs/candid_type_to_azle_candid_type.ts +++ b/test/property/arbitraries/candid/simple_type_arbs/candid_type_to_azle_candid_type.ts @@ -18,7 +18,7 @@ import { Principal, text, Void -} from '../../../../src/lib/experimental'; +} from '../../../../../src/lib/experimental'; import { SimpleCandidType } from '../candid_type'; export function candidTypeToRuntimeTypeObject( diff --git a/property_tests/arbitraries/candid/simple_type_arbs/definition_arb.ts b/test/property/arbitraries/candid/simple_type_arbs/definition_arb.ts similarity index 100% rename from property_tests/arbitraries/candid/simple_type_arbs/definition_arb.ts rename to test/property/arbitraries/candid/simple_type_arbs/definition_arb.ts diff --git a/property_tests/arbitraries/candid/simple_type_arbs/values_arb.ts b/test/property/arbitraries/candid/simple_type_arbs/values_arb.ts similarity index 100% rename from property_tests/arbitraries/candid/simple_type_arbs/values_arb.ts rename to test/property/arbitraries/candid/simple_type_arbs/values_arb.ts diff --git a/property_tests/arbitraries/candid/to_src_literal/bigint.ts b/test/property/arbitraries/candid/to_src_literal/bigint.ts similarity index 100% rename from property_tests/arbitraries/candid/to_src_literal/bigint.ts rename to test/property/arbitraries/candid/to_src_literal/bigint.ts diff --git a/property_tests/arbitraries/candid/to_src_literal/blob.ts b/test/property/arbitraries/candid/to_src_literal/blob.ts similarity index 100% rename from property_tests/arbitraries/candid/to_src_literal/blob.ts rename to test/property/arbitraries/candid/to_src_literal/blob.ts diff --git a/property_tests/arbitraries/candid/to_src_literal/boolean.ts b/test/property/arbitraries/candid/to_src_literal/boolean.ts similarity index 100% rename from property_tests/arbitraries/candid/to_src_literal/boolean.ts rename to test/property/arbitraries/candid/to_src_literal/boolean.ts diff --git a/property_tests/arbitraries/candid/to_src_literal/float.ts b/test/property/arbitraries/candid/to_src_literal/float.ts similarity index 100% rename from property_tests/arbitraries/candid/to_src_literal/float.ts rename to test/property/arbitraries/candid/to_src_literal/float.ts diff --git a/property_tests/arbitraries/candid/to_src_literal/null.ts b/test/property/arbitraries/candid/to_src_literal/null.ts similarity index 100% rename from property_tests/arbitraries/candid/to_src_literal/null.ts rename to test/property/arbitraries/candid/to_src_literal/null.ts diff --git a/property_tests/arbitraries/candid/to_src_literal/number.ts b/test/property/arbitraries/candid/to_src_literal/number.ts similarity index 100% rename from property_tests/arbitraries/candid/to_src_literal/number.ts rename to test/property/arbitraries/candid/to_src_literal/number.ts diff --git a/property_tests/arbitraries/candid/to_src_literal/principal.ts b/test/property/arbitraries/candid/to_src_literal/principal.ts similarity index 100% rename from property_tests/arbitraries/candid/to_src_literal/principal.ts rename to test/property/arbitraries/candid/to_src_literal/principal.ts diff --git a/property_tests/arbitraries/candid/to_src_literal/string.ts b/test/property/arbitraries/candid/to_src_literal/string.ts similarity index 100% rename from property_tests/arbitraries/candid/to_src_literal/string.ts rename to test/property/arbitraries/candid/to_src_literal/string.ts diff --git a/property_tests/arbitraries/candid/to_src_literal/void.ts b/test/property/arbitraries/candid/to_src_literal/void.ts similarity index 100% rename from property_tests/arbitraries/candid/to_src_literal/void.ts rename to test/property/arbitraries/candid/to_src_literal/void.ts diff --git a/property_tests/arbitraries/canister_arb.ts b/test/property/arbitraries/canister_arb.ts similarity index 100% rename from property_tests/arbitraries/canister_arb.ts rename to test/property/arbitraries/canister_arb.ts diff --git a/property_tests/arbitraries/canister_methods/index.ts b/test/property/arbitraries/canister_methods/index.ts similarity index 100% rename from property_tests/arbitraries/canister_methods/index.ts rename to test/property/arbitraries/canister_methods/index.ts diff --git a/property_tests/arbitraries/canister_methods/init_method_arb.ts b/test/property/arbitraries/canister_methods/init_method_arb.ts similarity index 100% rename from property_tests/arbitraries/canister_methods/init_method_arb.ts rename to test/property/arbitraries/canister_methods/init_method_arb.ts diff --git a/property_tests/arbitraries/canister_methods/inspect_message_method_arb.ts b/test/property/arbitraries/canister_methods/inspect_message_method_arb.ts similarity index 100% rename from property_tests/arbitraries/canister_methods/inspect_message_method_arb.ts rename to test/property/arbitraries/canister_methods/inspect_message_method_arb.ts diff --git a/property_tests/arbitraries/canister_methods/post_upgrade_arb.ts b/test/property/arbitraries/canister_methods/post_upgrade_arb.ts similarity index 100% rename from property_tests/arbitraries/canister_methods/post_upgrade_arb.ts rename to test/property/arbitraries/canister_methods/post_upgrade_arb.ts diff --git a/property_tests/arbitraries/canister_methods/pre_upgrade_method_arb.ts b/test/property/arbitraries/canister_methods/pre_upgrade_method_arb.ts similarity index 100% rename from property_tests/arbitraries/canister_methods/pre_upgrade_method_arb.ts rename to test/property/arbitraries/canister_methods/pre_upgrade_method_arb.ts diff --git a/property_tests/arbitraries/canister_methods/query_method_arb.ts b/test/property/arbitraries/canister_methods/query_method_arb.ts similarity index 100% rename from property_tests/arbitraries/canister_methods/query_method_arb.ts rename to test/property/arbitraries/canister_methods/query_method_arb.ts diff --git a/property_tests/arbitraries/canister_methods/update_method_arb.ts b/test/property/arbitraries/canister_methods/update_method_arb.ts similarity index 100% rename from property_tests/arbitraries/canister_methods/update_method_arb.ts rename to test/property/arbitraries/canister_methods/update_method_arb.ts diff --git a/property_tests/arbitraries/config.ts b/test/property/arbitraries/config.ts similarity index 100% rename from property_tests/arbitraries/config.ts rename to test/property/arbitraries/config.ts diff --git a/property_tests/arbitraries/http/body_arb.ts b/test/property/arbitraries/http/body_arb.ts similarity index 100% rename from property_tests/arbitraries/http/body_arb.ts rename to test/property/arbitraries/http/body_arb.ts diff --git a/property_tests/arbitraries/http/headers_arb.ts b/test/property/arbitraries/http/headers_arb.ts similarity index 100% rename from property_tests/arbitraries/http/headers_arb.ts rename to test/property/arbitraries/http/headers_arb.ts diff --git a/property_tests/arbitraries/http/request_arb.ts b/test/property/arbitraries/http/request_arb.ts similarity index 98% rename from property_tests/arbitraries/http/request_arb.ts rename to test/property/arbitraries/http/request_arb.ts index 34668ec3cf..24a9611542 100644 --- a/property_tests/arbitraries/http/request_arb.ts +++ b/test/property/arbitraries/http/request_arb.ts @@ -1,6 +1,6 @@ import fc from 'fast-check'; -import { HttpRequest, None, Some } from '../../../src/lib/experimental'; +import { HttpRequest, None, Some } from '../../../../src/lib/experimental'; import { CandidValueAndMeta } from '../candid/candid_value_and_meta_arb'; import { blobToSrcLiteral } from '../candid/to_src_literal/blob'; import { stringToSrcLiteral } from '../candid/to_src_literal/string'; diff --git a/property_tests/arbitraries/http/response_arb.ts b/test/property/arbitraries/http/response_arb.ts similarity index 99% rename from property_tests/arbitraries/http/response_arb.ts rename to test/property/arbitraries/http/response_arb.ts index 137fda8b20..e4bfc32f64 100644 --- a/property_tests/arbitraries/http/response_arb.ts +++ b/test/property/arbitraries/http/response_arb.ts @@ -1,6 +1,6 @@ import fc from 'fast-check'; -import { HttpResponse, None } from '../../../src/lib/experimental'; +import { HttpResponse, None } from '../../../../src/lib/experimental'; import { CandidValueAndMeta } from '../candid/candid_value_and_meta_arb'; import { CorrespondingJSType } from '../candid/corresponding_js_type'; import { blobToSrcLiteral } from '../candid/to_src_literal/blob'; diff --git a/property_tests/arbitraries/js_function_name_arb.ts b/test/property/arbitraries/js_function_name_arb.ts similarity index 100% rename from property_tests/arbitraries/js_function_name_arb.ts rename to test/property/arbitraries/js_function_name_arb.ts diff --git a/property_tests/arbitraries/stable_b_tree_map_arb.ts b/test/property/arbitraries/stable_b_tree_map_arb.ts similarity index 100% rename from property_tests/arbitraries/stable_b_tree_map_arb.ts rename to test/property/arbitraries/stable_b_tree_map_arb.ts diff --git a/property_tests/arbitraries/types.ts b/test/property/arbitraries/types.ts similarity index 96% rename from property_tests/arbitraries/types.ts rename to test/property/arbitraries/types.ts index f37aa1be58..523306d061 100644 --- a/property_tests/arbitraries/types.ts +++ b/test/property/arbitraries/types.ts @@ -6,7 +6,7 @@ import { TextConstraints } from './candid/primitive/text'; import { CanisterMethodConstraints, QueryOrUpdateConstraints -} from './canister_methods/'; +} from './canister_methods'; export type Api = 'class' | 'functional'; diff --git a/property_tests/arbitraries/unique_identifier_arb.ts b/test/property/arbitraries/unique_identifier_arb.ts similarity index 100% rename from property_tests/arbitraries/unique_identifier_arb.ts rename to test/property/arbitraries/unique_identifier_arb.ts diff --git a/property_tests/arbitraries/unique_primitive_arb.ts b/test/property/arbitraries/unique_primitive_arb.ts similarity index 100% rename from property_tests/arbitraries/unique_primitive_arb.ts rename to test/property/arbitraries/unique_primitive_arb.ts diff --git a/property_tests/are_params_correctly_ordered.ts b/test/property/are_params_correctly_ordered.ts similarity index 100% rename from property_tests/are_params_correctly_ordered.ts rename to test/property/are_params_correctly_ordered.ts diff --git a/property_tests/get_actor.ts b/test/property/get_actor.ts similarity index 95% rename from property_tests/get_actor.ts rename to test/property/get_actor.ts index 69f700e358..cc575b28c2 100644 --- a/property_tests/get_actor.ts +++ b/test/property/get_actor.ts @@ -1,6 +1,6 @@ import { Agent, HttpAgent } from '@dfinity/agent'; -import { getCanisterId } from '../dfx'; +import { getCanisterId } from '../../dfx'; export function getActor(parentDir: string, agent?: Agent): any { const resolvedPathIndex = require.resolve( diff --git a/property_tests/index.ts b/test/property/index.ts similarity index 100% rename from property_tests/index.ts rename to test/property/index.ts diff --git a/property_tests/set_experimental.ts b/test/property/set_experimental.ts similarity index 100% rename from property_tests/set_experimental.ts rename to test/property/set_experimental.ts diff --git a/property_tests/test/index.ts b/test/property/test/index.ts similarity index 99% rename from property_tests/test/index.ts rename to test/property/test/index.ts index 5b599f0a8e..add82832a1 100644 --- a/property_tests/test/index.ts +++ b/test/property/test/index.ts @@ -4,7 +4,7 @@ // eslint-disable-next-line @typescript-eslint/no-var-requires const deepEqual = require('deep-is'); -import { jsonStringify } from '../../src/lib/experimental/json'; +import { jsonStringify } from '../../../src/lib/experimental/json'; export type Test<> = { name: string; diff --git a/property_tests/tsconfig.json b/test/property/tsconfig.json similarity index 100% rename from property_tests/tsconfig.json rename to test/property/tsconfig.json diff --git a/property_tests/visitors/LICENCE b/test/property/visitors/LICENCE similarity index 100% rename from property_tests/visitors/LICENCE rename to test/property/visitors/LICENCE diff --git a/property_tests/visitors/cli-string-visitor.ts b/test/property/visitors/cli-string-visitor.ts similarity index 100% rename from property_tests/visitors/cli-string-visitor.ts rename to test/property/visitors/cli-string-visitor.ts diff --git a/tests/property/candid_rpc/class_syntax/blob/dfx.json b/tests/property/candid_rpc/class_api/blob/dfx.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/blob/dfx.json rename to tests/property/candid_rpc/class_api/blob/dfx.json diff --git a/tests/property/candid_rpc/class_syntax/blob/package-lock.json b/tests/property/candid_rpc/class_api/blob/package-lock.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/blob/package-lock.json rename to tests/property/candid_rpc/class_api/blob/package-lock.json diff --git a/tests/property/candid_rpc/class_syntax/blob/package.json b/tests/property/candid_rpc/class_api/blob/package.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/blob/package.json rename to tests/property/candid_rpc/class_api/blob/package.json diff --git a/tests/property/candid_rpc/functional_syntax/blob/test/generate_body.ts b/tests/property/candid_rpc/class_api/blob/test/generate_body.ts similarity index 79% rename from tests/property/candid_rpc/functional_syntax/blob/test/generate_body.ts rename to tests/property/candid_rpc/class_api/blob/test/generate_body.ts index a4b13c01e7..d42cc53f6d 100644 --- a/tests/property/candid_rpc/functional_syntax/blob/test/generate_body.ts +++ b/tests/property/candid_rpc/class_api/blob/test/generate_body.ts @@ -1,6 +1,6 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParamBlobs: Named>[], diff --git a/tests/property/candid_rpc/functional_syntax/blob/test/generate_tests.ts b/tests/property/candid_rpc/class_api/blob/test/generate_tests.ts similarity index 81% rename from tests/property/candid_rpc/functional_syntax/blob/test/generate_tests.ts rename to tests/property/candid_rpc/class_api/blob/test/generate_tests.ts index 7a40235d34..486dfabddd 100644 --- a/tests/property/candid_rpc/functional_syntax/blob/test/generate_tests.ts +++ b/tests/property/candid_rpc/class_api/blob/test/generate_tests.ts @@ -1,6 +1,6 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/class_syntax/blob/test/test.ts b/tests/property/candid_rpc/class_api/blob/test/test.ts similarity index 64% rename from tests/property/candid_rpc/class_syntax/blob/test/test.ts rename to tests/property/candid_rpc/class_api/blob/test/test.ts index 904b0ba3ff..f7884705d6 100644 --- a/tests/property/candid_rpc/class_syntax/blob/test/test.ts +++ b/tests/property/candid_rpc/class_api/blob/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { BlobArb } from 'azle/property_tests/arbitraries/candid/constructed/blob_arb'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { BlobArb } from 'azle/test/property/arbitraries/candid/constructed/blob_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/class_syntax/blob/tsconfig.json b/tests/property/candid_rpc/class_api/blob/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/blob/tsconfig.json rename to tests/property/candid_rpc/class_api/blob/tsconfig.json diff --git a/tests/property/candid_rpc/class_syntax/bool/dfx.json b/tests/property/candid_rpc/class_api/bool/dfx.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/bool/dfx.json rename to tests/property/candid_rpc/class_api/bool/dfx.json diff --git a/tests/property/candid_rpc/class_syntax/bool/package-lock.json b/tests/property/candid_rpc/class_api/bool/package-lock.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/bool/package-lock.json rename to tests/property/candid_rpc/class_api/bool/package-lock.json diff --git a/tests/property/candid_rpc/class_syntax/bool/package.json b/tests/property/candid_rpc/class_api/bool/package.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/bool/package.json rename to tests/property/candid_rpc/class_api/bool/package.json diff --git a/tests/property/candid_rpc/class_syntax/bool/test/generate_body.ts b/tests/property/candid_rpc/class_api/bool/test/generate_body.ts similarity index 79% rename from tests/property/candid_rpc/class_syntax/bool/test/generate_body.ts rename to tests/property/candid_rpc/class_api/bool/test/generate_body.ts index 563aed3275..994df55128 100644 --- a/tests/property/candid_rpc/class_syntax/bool/test/generate_body.ts +++ b/tests/property/candid_rpc/class_api/bool/test/generate_body.ts @@ -1,6 +1,6 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParamBools: Named>[], diff --git a/tests/property/candid_rpc/functional_syntax/bool/test/generate_tests.ts b/tests/property/candid_rpc/class_api/bool/test/generate_tests.ts similarity index 78% rename from tests/property/candid_rpc/functional_syntax/bool/test/generate_tests.ts rename to tests/property/candid_rpc/class_api/bool/test/generate_tests.ts index a91e7cc3b6..f502a7d3d1 100644 --- a/tests/property/candid_rpc/functional_syntax/bool/test/generate_tests.ts +++ b/tests/property/candid_rpc/class_api/bool/test/generate_tests.ts @@ -1,6 +1,6 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/class_syntax/bool/test/test.ts b/tests/property/candid_rpc/class_api/bool/test/test.ts similarity index 64% rename from tests/property/candid_rpc/class_syntax/bool/test/test.ts rename to tests/property/candid_rpc/class_api/bool/test/test.ts index c7975a97ba..d67e509a37 100644 --- a/tests/property/candid_rpc/class_syntax/bool/test/test.ts +++ b/tests/property/candid_rpc/class_api/bool/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { BoolArb } from 'azle/property_tests/arbitraries/candid/primitive/bool'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { BoolArb } from 'azle/test/property/arbitraries/candid/primitive/bool'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/class_syntax/bool/tsconfig.json b/tests/property/candid_rpc/class_api/bool/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/bool/tsconfig.json rename to tests/property/candid_rpc/class_api/bool/tsconfig.json diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/http_request/dfx.json b/tests/property/candid_rpc/class_api/canister_methods/http_request/dfx.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/canister_methods/http_request/dfx.json rename to tests/property/candid_rpc/class_api/canister_methods/http_request/dfx.json diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/http_request/package-lock.json b/tests/property/candid_rpc/class_api/canister_methods/http_request/package-lock.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/canister_methods/http_request/package-lock.json rename to tests/property/candid_rpc/class_api/canister_methods/http_request/package-lock.json diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/http_request/package.json b/tests/property/candid_rpc/class_api/canister_methods/http_request/package.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/canister_methods/http_request/package.json rename to tests/property/candid_rpc/class_api/canister_methods/http_request/package.json diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/http_request/test/fletch.ts b/tests/property/candid_rpc/class_api/canister_methods/http_request/test/fletch.ts similarity index 100% rename from tests/property/candid_rpc/class_syntax/canister_methods/http_request/test/fletch.ts rename to tests/property/candid_rpc/class_api/canister_methods/http_request/test/fletch.ts diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/http_request/test/generate_body.ts b/tests/property/candid_rpc/class_api/canister_methods/http_request/test/generate_body.ts similarity index 94% rename from tests/property/candid_rpc/class_syntax/canister_methods/http_request/test/generate_body.ts rename to tests/property/candid_rpc/class_api/canister_methods/http_request/test/generate_body.ts index 1ac9d67ced..e496e4f53f 100644 --- a/tests/property/candid_rpc/class_syntax/canister_methods/http_request/test/generate_body.ts +++ b/tests/property/candid_rpc/class_api/canister_methods/http_request/test/generate_body.ts @@ -1,7 +1,7 @@ import { HttpRequest } from 'azle/experimental'; -import { Named } from 'azle/property_tests'; -import { CandidReturnType } from 'azle/property_tests/arbitraries/candid/candid_return_type_arb'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; +import { Named } from 'azle/test/property'; +import { CandidReturnType } from 'azle/test/property/arbitraries/candid/candid_return_type_arb'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; export function generateBody( namedParams: Named>[], diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/http_request/test/generate_tests.ts b/tests/property/candid_rpc/class_api/canister_methods/http_request/test/generate_tests.ts similarity index 84% rename from tests/property/candid_rpc/class_syntax/canister_methods/http_request/test/generate_tests.ts rename to tests/property/candid_rpc/class_api/canister_methods/http_request/test/generate_tests.ts index cc66fcf5ca..28b9df4f00 100644 --- a/tests/property/candid_rpc/class_syntax/canister_methods/http_request/test/generate_tests.ts +++ b/tests/property/candid_rpc/class_api/canister_methods/http_request/test/generate_tests.ts @@ -1,8 +1,8 @@ import { HttpRequest, HttpResponse } from 'azle/experimental'; -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { HttpResponseAgentResponseValue } from 'azle/property_tests/arbitraries/http/response_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { HttpResponseAgentResponseValue } from 'azle/test/property/arbitraries/http/response_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; import { fletch } from './fletch'; diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/http_request/test/test.ts b/tests/property/candid_rpc/class_api/canister_methods/http_request/test/test.ts similarity index 65% rename from tests/property/candid_rpc/class_syntax/canister_methods/http_request/test/test.ts rename to tests/property/candid_rpc/class_api/canister_methods/http_request/test/test.ts index a27f9a2735..31a36e8516 100644 --- a/tests/property/candid_rpc/class_syntax/canister_methods/http_request/test/test.ts +++ b/tests/property/candid_rpc/class_api/canister_methods/http_request/test/test.ts @@ -1,14 +1,14 @@ import { HttpRequest } from 'azle/experimental'; -import { runPropTests } from 'azle/property_tests'; -import { RecordArb } from 'azle/property_tests/arbitraries/candid/constructed/record_arb'; +import { runPropTests } from 'azle/test/property'; +import { RecordArb } from 'azle/test/property/arbitraries/candid/constructed/record_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { HttpRequestArb } from 'azle/property_tests/arbitraries/http/request_arb'; -import { HttpResponseArb } from 'azle/property_tests/arbitraries/http/response_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { HttpRequestArb } from 'azle/test/property/arbitraries/http/request_arb'; +import { HttpResponseArb } from 'azle/test/property/arbitraries/http/response_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/http_request/tsconfig.json b/tests/property/candid_rpc/class_api/canister_methods/http_request/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/canister_methods/http_request/tsconfig.json rename to tests/property/candid_rpc/class_api/canister_methods/http_request/tsconfig.json diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/http_request_update/dfx.json b/tests/property/candid_rpc/class_api/canister_methods/http_request_update/dfx.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/canister_methods/http_request_update/dfx.json rename to tests/property/candid_rpc/class_api/canister_methods/http_request_update/dfx.json diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/http_request_update/package-lock.json b/tests/property/candid_rpc/class_api/canister_methods/http_request_update/package-lock.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/canister_methods/http_request_update/package-lock.json rename to tests/property/candid_rpc/class_api/canister_methods/http_request_update/package-lock.json diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/http_request_update/package.json b/tests/property/candid_rpc/class_api/canister_methods/http_request_update/package.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/canister_methods/http_request_update/package.json rename to tests/property/candid_rpc/class_api/canister_methods/http_request_update/package.json diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/http_request_update/test/fletch.ts b/tests/property/candid_rpc/class_api/canister_methods/http_request_update/test/fletch.ts similarity index 100% rename from tests/property/candid_rpc/class_syntax/canister_methods/http_request_update/test/fletch.ts rename to tests/property/candid_rpc/class_api/canister_methods/http_request_update/test/fletch.ts diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/http_request_update/test/generate_body.ts b/tests/property/candid_rpc/class_api/canister_methods/http_request_update/test/generate_body.ts similarity index 94% rename from tests/property/candid_rpc/class_syntax/canister_methods/http_request_update/test/generate_body.ts rename to tests/property/candid_rpc/class_api/canister_methods/http_request_update/test/generate_body.ts index 1157342cb0..975e7ea290 100644 --- a/tests/property/candid_rpc/class_syntax/canister_methods/http_request_update/test/generate_body.ts +++ b/tests/property/candid_rpc/class_api/canister_methods/http_request_update/test/generate_body.ts @@ -1,7 +1,7 @@ import { HttpRequest } from 'azle/experimental'; -import { Named } from 'azle/property_tests'; -import { CandidReturnType } from 'azle/property_tests/arbitraries/candid/candid_return_type_arb'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; +import { Named } from 'azle/test/property'; +import { CandidReturnType } from 'azle/test/property/arbitraries/candid/candid_return_type_arb'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; export function generateBody( namedParams: Named>[], diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/http_request_update/test/generate_tests.ts b/tests/property/candid_rpc/class_api/canister_methods/http_request_update/test/generate_tests.ts similarity index 87% rename from tests/property/candid_rpc/class_syntax/canister_methods/http_request_update/test/generate_tests.ts rename to tests/property/candid_rpc/class_api/canister_methods/http_request_update/test/generate_tests.ts index edbe45fb6e..7b0a90a19b 100644 --- a/tests/property/candid_rpc/class_syntax/canister_methods/http_request_update/test/generate_tests.ts +++ b/tests/property/candid_rpc/class_api/canister_methods/http_request_update/test/generate_tests.ts @@ -1,8 +1,8 @@ import { HttpRequest, HttpResponse } from 'azle/experimental'; -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { HttpResponseAgentResponseValue } from 'azle/property_tests/arbitraries/http/response_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { HttpResponseAgentResponseValue } from 'azle/test/property/arbitraries/http/response_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; import { fletch } from './fletch'; diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/http_request_update/test/test.ts b/tests/property/candid_rpc/class_api/canister_methods/http_request_update/test/test.ts similarity index 76% rename from tests/property/candid_rpc/class_syntax/canister_methods/http_request_update/test/test.ts rename to tests/property/candid_rpc/class_api/canister_methods/http_request_update/test/test.ts index aa1c56984b..816cfcdf98 100644 --- a/tests/property/candid_rpc/class_syntax/canister_methods/http_request_update/test/test.ts +++ b/tests/property/candid_rpc/class_api/canister_methods/http_request_update/test/test.ts @@ -1,15 +1,15 @@ import { HttpRequest } from 'azle/experimental'; -import { runPropTests } from 'azle/property_tests'; -import { RecordArb } from 'azle/property_tests/arbitraries/candid/constructed/record_arb'; +import { runPropTests } from 'azle/test/property'; +import { RecordArb } from 'azle/test/property/arbitraries/candid/constructed/record_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethod } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { UpdateMethodArb } from 'azle/property_tests/arbitraries/canister_methods/update_method_arb'; -import { HttpRequestArb } from 'azle/property_tests/arbitraries/http/request_arb'; -import { HttpResponseArb } from 'azle/property_tests/arbitraries/http/response_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethod } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { UpdateMethodArb } from 'azle/test/property/arbitraries/canister_methods/update_method_arb'; +import { HttpRequestArb } from 'azle/test/property/arbitraries/http/request_arb'; +import { HttpResponseArb } from 'azle/test/property/arbitraries/http/response_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/http_request_update/tsconfig.json b/tests/property/candid_rpc/class_api/canister_methods/http_request_update/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/canister_methods/http_request_update/tsconfig.json rename to tests/property/candid_rpc/class_api/canister_methods/http_request_update/tsconfig.json diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/init/dfx.json b/tests/property/candid_rpc/class_api/canister_methods/init/dfx.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/canister_methods/init/dfx.json rename to tests/property/candid_rpc/class_api/canister_methods/init/dfx.json diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/init/package-lock.json b/tests/property/candid_rpc/class_api/canister_methods/init/package-lock.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/canister_methods/init/package-lock.json rename to tests/property/candid_rpc/class_api/canister_methods/init/package-lock.json diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/init/package.json b/tests/property/candid_rpc/class_api/canister_methods/init/package.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/canister_methods/init/package.json rename to tests/property/candid_rpc/class_api/canister_methods/init/package.json diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/init/test/generate_callable_method_body.ts b/tests/property/candid_rpc/class_api/canister_methods/init/test/generate_callable_method_body.ts similarity index 63% rename from tests/property/candid_rpc/class_syntax/canister_methods/init/test/generate_callable_method_body.ts rename to tests/property/candid_rpc/class_api/canister_methods/init/test/generate_callable_method_body.ts index 003da9e7d7..1003e5cc4a 100644 --- a/tests/property/candid_rpc/class_syntax/canister_methods/init/test/generate_callable_method_body.ts +++ b/tests/property/candid_rpc/class_api/canister_methods/init/test/generate_callable_method_body.ts @@ -1,6 +1,6 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { CorrespondingJSType } from 'azle/property_tests/arbitraries/candid/corresponding_js_type'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { CorrespondingJSType } from 'azle/test/property/arbitraries/candid/corresponding_js_type'; export function generateBody( namedParams: Named>[], diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/init/test/generate_init_body.ts b/tests/property/candid_rpc/class_api/canister_methods/init/test/generate_init_body.ts similarity index 56% rename from tests/property/candid_rpc/functional_syntax/canister_methods/init/test/generate_init_body.ts rename to tests/property/candid_rpc/class_api/canister_methods/init/test/generate_init_body.ts index d05ca5d40d..e9f182e773 100644 --- a/tests/property/candid_rpc/functional_syntax/canister_methods/init/test/generate_init_body.ts +++ b/tests/property/candid_rpc/class_api/canister_methods/init/test/generate_init_body.ts @@ -1,7 +1,7 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { CorrespondingJSType } from 'azle/property_tests/arbitraries/candid/corresponding_js_type'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { CorrespondingJSType } from 'azle/test/property/arbitraries/candid/corresponding_js_type'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParams: Named>[] diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/init/test/generate_tests.ts b/tests/property/candid_rpc/class_api/canister_methods/init/test/generate_tests.ts similarity index 65% rename from tests/property/candid_rpc/functional_syntax/canister_methods/init/test/generate_tests.ts rename to tests/property/candid_rpc/class_api/canister_methods/init/test/generate_tests.ts index 3d2c072716..7cc3865499 100644 --- a/tests/property/candid_rpc/functional_syntax/canister_methods/init/test/generate_tests.ts +++ b/tests/property/candid_rpc/class_api/canister_methods/init/test/generate_tests.ts @@ -1,7 +1,7 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { CorrespondingJSType } from 'azle/property_tests/arbitraries/candid/corresponding_js_type'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { CorrespondingJSType } from 'azle/test/property/arbitraries/candid/corresponding_js_type'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( _functionName: string, diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/init/test/test.ts b/tests/property/candid_rpc/class_api/canister_methods/init/test/test.ts similarity index 83% rename from tests/property/candid_rpc/class_syntax/canister_methods/init/test/test.ts rename to tests/property/candid_rpc/class_api/canister_methods/init/test/test.ts index 99110c525c..5af5c5bee4 100644 --- a/tests/property/candid_rpc/class_syntax/canister_methods/init/test/test.ts +++ b/tests/property/candid_rpc/class_api/canister_methods/init/test/test.ts @@ -1,18 +1,18 @@ -import { runPropTests } from 'azle/property_tests'; -import { CandidReturnTypeArb } from 'azle/property_tests/arbitraries/candid/candid_return_type_arb'; -import { CandidValueAndMetaArb } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { CorrespondingJSType } from 'azle/property_tests/arbitraries/candid/corresponding_js_type'; +import { runPropTests } from 'azle/test/property'; +import { CandidReturnTypeArb } from 'azle/test/property/arbitraries/candid/candid_return_type_arb'; +import { CandidValueAndMetaArb } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { CorrespondingJSType } from 'azle/test/property/arbitraries/candid/corresponding_js_type'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { InitMethodArb } from 'azle/property_tests/arbitraries/canister_methods/init_method_arb'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { InitMethodArb } from 'azle/test/property/arbitraries/canister_methods/init_method_arb'; import { QueryMethod, QueryMethodArb -} from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { UpdateMethodArb } from 'azle/property_tests/arbitraries/canister_methods/update_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { UpdateMethodArb } from 'azle/test/property/arbitraries/canister_methods/update_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody as callableMethodBodyGenerator } from './generate_callable_method_body'; diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/init/tsconfig.json b/tests/property/candid_rpc/class_api/canister_methods/init/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/canister_methods/init/tsconfig.json rename to tests/property/candid_rpc/class_api/canister_methods/init/tsconfig.json diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/inspect_message/dfx.json b/tests/property/candid_rpc/class_api/canister_methods/inspect_message/dfx.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/canister_methods/inspect_message/dfx.json rename to tests/property/candid_rpc/class_api/canister_methods/inspect_message/dfx.json diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/inspect_message/package-lock.json b/tests/property/candid_rpc/class_api/canister_methods/inspect_message/package-lock.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/canister_methods/inspect_message/package-lock.json rename to tests/property/candid_rpc/class_api/canister_methods/inspect_message/package-lock.json diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/inspect_message/package.json b/tests/property/candid_rpc/class_api/canister_methods/inspect_message/package.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/canister_methods/inspect_message/package.json rename to tests/property/candid_rpc/class_api/canister_methods/inspect_message/package.json diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/inspect_message/test/generate_tests.ts b/tests/property/candid_rpc/class_api/canister_methods/inspect_message/test/generate_tests.ts similarity index 83% rename from tests/property/candid_rpc/functional_syntax/canister_methods/inspect_message/test/generate_tests.ts rename to tests/property/candid_rpc/class_api/canister_methods/inspect_message/test/generate_tests.ts index aa93ddd6af..ddfeb1baf2 100644 --- a/tests/property/candid_rpc/functional_syntax/canister_methods/inspect_message/test/generate_tests.ts +++ b/tests/property/candid_rpc/class_api/canister_methods/inspect_message/test/generate_tests.ts @@ -1,9 +1,9 @@ import { Agent } from '@dfinity/agent'; -import { getActor, Named } from 'azle/property_tests'; -import { CandidReturnType } from 'azle/property_tests/arbitraries/candid/candid_return_type_arb'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { CorrespondingJSType } from 'azle/property_tests/arbitraries/candid/corresponding_js_type'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidReturnType } from 'azle/test/property/arbitraries/candid/candid_return_type_arb'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { CorrespondingJSType } from 'azle/test/property/arbitraries/candid/corresponding_js_type'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; import { InspectMessageBehavior } from './test'; diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/inspect_message/test/test.ts b/tests/property/candid_rpc/class_api/canister_methods/inspect_message/test/test.ts similarity index 81% rename from tests/property/candid_rpc/class_syntax/canister_methods/inspect_message/test/test.ts rename to tests/property/candid_rpc/class_api/canister_methods/inspect_message/test/test.ts index 38ba250c9a..877da039c9 100644 --- a/tests/property/candid_rpc/class_syntax/canister_methods/inspect_message/test/test.ts +++ b/tests/property/candid_rpc/class_api/canister_methods/inspect_message/test/test.ts @@ -1,16 +1,16 @@ import { Agent } from '@dfinity/agent'; import { createAuthenticatedAgentSync, getPrincipal } from 'azle/dfx'; -import { runPropTests } from 'azle/property_tests'; -import { CandidReturnTypeArb } from 'azle/property_tests/arbitraries/candid/candid_return_type_arb'; -import { CandidValueAndMetaArb } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { CorrespondingJSType } from 'azle/property_tests/arbitraries/candid/corresponding_js_type'; +import { runPropTests } from 'azle/test/property'; +import { CandidReturnTypeArb } from 'azle/test/property/arbitraries/candid/candid_return_type_arb'; +import { CandidValueAndMetaArb } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { CorrespondingJSType } from 'azle/test/property/arbitraries/candid/corresponding_js_type'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { InspectMessageMethodArb } from 'azle/property_tests/arbitraries/canister_methods/inspect_message_method_arb'; -import { UpdateMethodArb } from 'azle/property_tests/arbitraries/canister_methods/update_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { InspectMessageMethodArb } from 'azle/test/property/arbitraries/canister_methods/inspect_message_method_arb'; +import { UpdateMethodArb } from 'azle/test/property/arbitraries/canister_methods/update_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { v4 } from 'uuid'; diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/inspect_message/tsconfig.json b/tests/property/candid_rpc/class_api/canister_methods/inspect_message/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/canister_methods/inspect_message/tsconfig.json rename to tests/property/candid_rpc/class_api/canister_methods/inspect_message/tsconfig.json diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/post_upgrade/dfx.json b/tests/property/candid_rpc/class_api/canister_methods/post_upgrade/dfx.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/canister_methods/post_upgrade/dfx.json rename to tests/property/candid_rpc/class_api/canister_methods/post_upgrade/dfx.json diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/post_upgrade/package-lock.json b/tests/property/candid_rpc/class_api/canister_methods/post_upgrade/package-lock.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/canister_methods/post_upgrade/package-lock.json rename to tests/property/candid_rpc/class_api/canister_methods/post_upgrade/package-lock.json diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/post_upgrade/package.json b/tests/property/candid_rpc/class_api/canister_methods/post_upgrade/package.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/canister_methods/post_upgrade/package.json rename to tests/property/candid_rpc/class_api/canister_methods/post_upgrade/package.json diff --git a/tests/property/candid_rpc/class_api/canister_methods/post_upgrade/test/generate_callable_method_body.ts b/tests/property/candid_rpc/class_api/canister_methods/post_upgrade/test/generate_callable_method_body.ts new file mode 100644 index 0000000000..b789583aa7 --- /dev/null +++ b/tests/property/candid_rpc/class_api/canister_methods/post_upgrade/test/generate_callable_method_body.ts @@ -0,0 +1,10 @@ +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { CorrespondingJSType } from 'azle/test/property/arbitraries/candid/corresponding_js_type'; + +export function generateBody( + _namedParams: Named>[], + returnType: CandidValueAndMeta +): string { + return `return ${returnType.src.valueLiteral}`; +} diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/post_upgrade/test/generate_init_method_body.ts b/tests/property/candid_rpc/class_api/canister_methods/post_upgrade/test/generate_init_method_body.ts similarity index 59% rename from tests/property/candid_rpc/functional_syntax/canister_methods/post_upgrade/test/generate_init_method_body.ts rename to tests/property/candid_rpc/class_api/canister_methods/post_upgrade/test/generate_init_method_body.ts index 11ca50e9ac..4181f5b0d3 100644 --- a/tests/property/candid_rpc/functional_syntax/canister_methods/post_upgrade/test/generate_init_method_body.ts +++ b/tests/property/candid_rpc/class_api/canister_methods/post_upgrade/test/generate_init_method_body.ts @@ -1,7 +1,7 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { CorrespondingJSType } from 'azle/property_tests/arbitraries/candid/corresponding_js_type'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { CorrespondingJSType } from 'azle/test/property/arbitraries/candid/corresponding_js_type'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; import { globalInitVarName } from './global_var_name'; diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/post_upgrade/test/generate_init_tests.ts b/tests/property/candid_rpc/class_api/canister_methods/post_upgrade/test/generate_init_tests.ts similarity index 71% rename from tests/property/candid_rpc/functional_syntax/canister_methods/post_upgrade/test/generate_init_tests.ts rename to tests/property/candid_rpc/class_api/canister_methods/post_upgrade/test/generate_init_tests.ts index c6633d557b..b6c576d370 100644 --- a/tests/property/candid_rpc/functional_syntax/canister_methods/post_upgrade/test/generate_init_tests.ts +++ b/tests/property/candid_rpc/class_api/canister_methods/post_upgrade/test/generate_init_tests.ts @@ -1,7 +1,7 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { CorrespondingJSType } from 'azle/property_tests/arbitraries/candid/corresponding_js_type'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { CorrespondingJSType } from 'azle/test/property/arbitraries/candid/corresponding_js_type'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( _functionName: string, diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/post_upgrade/test/generate_post_upgrade_method_body.ts b/tests/property/candid_rpc/class_api/canister_methods/post_upgrade/test/generate_post_upgrade_method_body.ts similarity index 60% rename from tests/property/candid_rpc/class_syntax/canister_methods/post_upgrade/test/generate_post_upgrade_method_body.ts rename to tests/property/candid_rpc/class_api/canister_methods/post_upgrade/test/generate_post_upgrade_method_body.ts index 53e2b3d832..f9e4bd9456 100644 --- a/tests/property/candid_rpc/class_syntax/canister_methods/post_upgrade/test/generate_post_upgrade_method_body.ts +++ b/tests/property/candid_rpc/class_api/canister_methods/post_upgrade/test/generate_post_upgrade_method_body.ts @@ -1,7 +1,7 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { CorrespondingJSType } from 'azle/property_tests/arbitraries/candid/corresponding_js_type'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { CorrespondingJSType } from 'azle/test/property/arbitraries/candid/corresponding_js_type'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; import { globalPostUpgradeVarName } from './global_var_name'; diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/post_upgrade/test/generate_post_upgrade_tests.ts b/tests/property/candid_rpc/class_api/canister_methods/post_upgrade/test/generate_post_upgrade_tests.ts similarity index 73% rename from tests/property/candid_rpc/class_syntax/canister_methods/post_upgrade/test/generate_post_upgrade_tests.ts rename to tests/property/candid_rpc/class_api/canister_methods/post_upgrade/test/generate_post_upgrade_tests.ts index cafe9558b7..7d9e9ddba4 100644 --- a/tests/property/candid_rpc/class_syntax/canister_methods/post_upgrade/test/generate_post_upgrade_tests.ts +++ b/tests/property/candid_rpc/class_api/canister_methods/post_upgrade/test/generate_post_upgrade_tests.ts @@ -1,7 +1,7 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { CorrespondingJSType } from 'azle/property_tests/arbitraries/candid/corresponding_js_type'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { CorrespondingJSType } from 'azle/test/property/arbitraries/candid/corresponding_js_type'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( _functionName: string, diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/post_upgrade/test/global_var_name.ts b/tests/property/candid_rpc/class_api/canister_methods/post_upgrade/test/global_var_name.ts similarity index 100% rename from tests/property/candid_rpc/class_syntax/canister_methods/post_upgrade/test/global_var_name.ts rename to tests/property/candid_rpc/class_api/canister_methods/post_upgrade/test/global_var_name.ts diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/post_upgrade/test/test.ts b/tests/property/candid_rpc/class_api/canister_methods/post_upgrade/test/test.ts similarity index 88% rename from tests/property/candid_rpc/class_syntax/canister_methods/post_upgrade/test/test.ts rename to tests/property/candid_rpc/class_api/canister_methods/post_upgrade/test/test.ts index cb27790244..fde7399852 100644 --- a/tests/property/candid_rpc/class_syntax/canister_methods/post_upgrade/test/test.ts +++ b/tests/property/candid_rpc/class_api/canister_methods/post_upgrade/test/test.ts @@ -1,30 +1,30 @@ -import { runPropTests } from 'azle/property_tests'; -import { candidDefinitionArb } from 'azle/property_tests/arbitraries/candid/candid_definition_arb'; +import { runPropTests } from 'azle/test/property'; +import { candidDefinitionArb } from 'azle/test/property/arbitraries/candid/candid_definition_arb'; import { CandidDefinition, WithShapes -} from 'azle/property_tests/arbitraries/candid/candid_definition_arb/types'; -import { CandidReturnTypeArb } from 'azle/property_tests/arbitraries/candid/candid_return_type_arb'; +} from 'azle/test/property/arbitraries/candid/candid_definition_arb/types'; +import { CandidReturnTypeArb } from 'azle/test/property/arbitraries/candid/candid_return_type_arb'; import { CandidValueAndMeta, CandidValueAndMetaArb -} from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { definitionAndValueToValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb_generator'; -import { CandidValueArb } from 'azle/property_tests/arbitraries/candid/candid_values_arb'; -import { CorrespondingJSType } from 'azle/property_tests/arbitraries/candid/corresponding_js_type'; +} from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { definitionAndValueToValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb_generator'; +import { CandidValueArb } from 'azle/test/property/arbitraries/candid/candid_values_arb'; +import { CorrespondingJSType } from 'azle/test/property/arbitraries/candid/corresponding_js_type'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { InitMethodArb } from 'azle/property_tests/arbitraries/canister_methods/init_method_arb'; -import { PostUpgradeMethodArb } from 'azle/property_tests/arbitraries/canister_methods/post_upgrade_arb'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { InitMethodArb } from 'azle/test/property/arbitraries/canister_methods/init_method_arb'; +import { PostUpgradeMethodArb } from 'azle/test/property/arbitraries/canister_methods/post_upgrade_arb'; import { QueryMethod, QueryMethodArb -} from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { UpdateMethodArb } from 'azle/property_tests/arbitraries/canister_methods/update_method_arb'; -import { DEFAULT_VALUE_MAX_DEPTH } from 'azle/property_tests/arbitraries/config'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { UpdateMethodArb } from 'azle/test/property/arbitraries/canister_methods/update_method_arb'; +import { DEFAULT_VALUE_MAX_DEPTH } from 'azle/test/property/arbitraries/config'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody as callableMethodBodyGenerator } from './generate_callable_method_body'; diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/post_upgrade/tsconfig.json b/tests/property/candid_rpc/class_api/canister_methods/post_upgrade/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/canister_methods/post_upgrade/tsconfig.json rename to tests/property/candid_rpc/class_api/canister_methods/post_upgrade/tsconfig.json diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/pre_upgrade/dfx.json b/tests/property/candid_rpc/class_api/canister_methods/pre_upgrade/dfx.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/canister_methods/pre_upgrade/dfx.json rename to tests/property/candid_rpc/class_api/canister_methods/pre_upgrade/dfx.json diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/pre_upgrade/package-lock.json b/tests/property/candid_rpc/class_api/canister_methods/pre_upgrade/package-lock.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/canister_methods/pre_upgrade/package-lock.json rename to tests/property/candid_rpc/class_api/canister_methods/pre_upgrade/package-lock.json diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/pre_upgrade/package.json b/tests/property/candid_rpc/class_api/canister_methods/pre_upgrade/package.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/canister_methods/pre_upgrade/package.json rename to tests/property/candid_rpc/class_api/canister_methods/pre_upgrade/package.json diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/pre_upgrade/test/test.ts b/tests/property/candid_rpc/class_api/canister_methods/pre_upgrade/test/test.ts similarity index 80% rename from tests/property/candid_rpc/class_syntax/canister_methods/pre_upgrade/test/test.ts rename to tests/property/candid_rpc/class_api/canister_methods/pre_upgrade/test/test.ts index c31d495cef..34b901f0cc 100644 --- a/tests/property/candid_rpc/class_syntax/canister_methods/pre_upgrade/test/test.ts +++ b/tests/property/candid_rpc/class_api/canister_methods/pre_upgrade/test/test.ts @@ -1,19 +1,19 @@ -import { getActor, runPropTests } from 'azle/property_tests'; -import { CandidReturnTypeArb } from 'azle/property_tests/arbitraries/candid/candid_return_type_arb'; -import { CandidValueAndMetaArb } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { CorrespondingJSType } from 'azle/property_tests/arbitraries/candid/corresponding_js_type'; +import { getActor, runPropTests } from 'azle/test/property'; +import { CandidReturnTypeArb } from 'azle/test/property/arbitraries/candid/candid_return_type_arb'; +import { CandidValueAndMetaArb } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { CorrespondingJSType } from 'azle/test/property/arbitraries/candid/corresponding_js_type'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { PreUpgradeMethodArb } from 'azle/property_tests/arbitraries/canister_methods/pre_upgrade_method_arb'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { PreUpgradeMethodArb } from 'azle/test/property/arbitraries/canister_methods/pre_upgrade_method_arb'; import { QueryMethod, QueryMethodArb -} from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { UpdateMethodArb } from 'azle/property_tests/arbitraries/canister_methods/update_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; -import { AzleResult, testEquality } from 'azle/property_tests/test'; +} from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { UpdateMethodArb } from 'azle/test/property/arbitraries/canister_methods/update_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; +import { AzleResult, testEquality } from 'azle/test/property/test'; import fc from 'fast-check'; const api: Api = 'class'; diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/pre_upgrade/tsconfig.json b/tests/property/candid_rpc/class_api/canister_methods/pre_upgrade/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/canister_methods/pre_upgrade/tsconfig.json rename to tests/property/candid_rpc/class_api/canister_methods/pre_upgrade/tsconfig.json diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/query/dfx.json b/tests/property/candid_rpc/class_api/canister_methods/query/dfx.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/canister_methods/query/dfx.json rename to tests/property/candid_rpc/class_api/canister_methods/query/dfx.json diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/query/package-lock.json b/tests/property/candid_rpc/class_api/canister_methods/query/package-lock.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/canister_methods/query/package-lock.json rename to tests/property/candid_rpc/class_api/canister_methods/query/package-lock.json diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/query/package.json b/tests/property/candid_rpc/class_api/canister_methods/query/package.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/canister_methods/query/package.json rename to tests/property/candid_rpc/class_api/canister_methods/query/package.json diff --git a/tests/property/candid_rpc/class_api/canister_methods/query/test/generate_body.ts b/tests/property/candid_rpc/class_api/canister_methods/query/test/generate_body.ts new file mode 100644 index 0000000000..f1bc623693 --- /dev/null +++ b/tests/property/candid_rpc/class_api/canister_methods/query/test/generate_body.ts @@ -0,0 +1,18 @@ +import { Named } from 'azle/test/property'; +import { CandidReturnType } from 'azle/test/property/arbitraries/candid/candid_return_type_arb'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { CorrespondingJSType } from 'azle/test/property/arbitraries/candid/corresponding_js_type'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; + +export function generateBody( + namedParams: Named>[], + returnType: CandidValueAndMeta +): string { + const paramsAreCorrectlyOrdered = areParamsCorrectlyOrdered(namedParams); + + return ` + ${paramsAreCorrectlyOrdered} + + return ${returnType.src.valueLiteral} + `; +} diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/query/test/generate_tests.ts b/tests/property/candid_rpc/class_api/canister_methods/query/test/generate_tests.ts similarity index 63% rename from tests/property/candid_rpc/class_syntax/canister_methods/query/test/generate_tests.ts rename to tests/property/candid_rpc/class_api/canister_methods/query/test/generate_tests.ts index 3b11b5427c..3f03f5b327 100644 --- a/tests/property/candid_rpc/class_syntax/canister_methods/query/test/generate_tests.ts +++ b/tests/property/candid_rpc/class_api/canister_methods/query/test/generate_tests.ts @@ -1,8 +1,8 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidReturnType } from 'azle/property_tests/arbitraries/candid/candid_return_type_arb'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { CorrespondingJSType } from 'azle/property_tests/arbitraries/candid/corresponding_js_type'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidReturnType } from 'azle/test/property/arbitraries/candid/candid_return_type_arb'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { CorrespondingJSType } from 'azle/test/property/arbitraries/candid/corresponding_js_type'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/query/test/test.ts b/tests/property/candid_rpc/class_api/canister_methods/query/test/test.ts similarity index 61% rename from tests/property/candid_rpc/class_syntax/canister_methods/query/test/test.ts rename to tests/property/candid_rpc/class_api/canister_methods/query/test/test.ts index b7ca788f45..8601ae2e81 100644 --- a/tests/property/candid_rpc/class_syntax/canister_methods/query/test/test.ts +++ b/tests/property/candid_rpc/class_api/canister_methods/query/test/test.ts @@ -1,12 +1,12 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { CandidReturnTypeArb } from 'azle/property_tests/arbitraries/candid/candid_return_type_arb'; -import { CandidValueAndMetaArb } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { CandidReturnTypeArb } from 'azle/test/property/arbitraries/candid/candid_return_type_arb'; +import { CandidValueAndMetaArb } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/query/tsconfig.json b/tests/property/candid_rpc/class_api/canister_methods/query/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/canister_methods/query/tsconfig.json rename to tests/property/candid_rpc/class_api/canister_methods/query/tsconfig.json diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/update/dfx.json b/tests/property/candid_rpc/class_api/canister_methods/update/dfx.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/canister_methods/update/dfx.json rename to tests/property/candid_rpc/class_api/canister_methods/update/dfx.json diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/update/package-lock.json b/tests/property/candid_rpc/class_api/canister_methods/update/package-lock.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/canister_methods/update/package-lock.json rename to tests/property/candid_rpc/class_api/canister_methods/update/package-lock.json diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/update/package.json b/tests/property/candid_rpc/class_api/canister_methods/update/package.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/canister_methods/update/package.json rename to tests/property/candid_rpc/class_api/canister_methods/update/package.json diff --git a/tests/property/candid_rpc/class_api/canister_methods/update/test/generate_body.ts b/tests/property/candid_rpc/class_api/canister_methods/update/test/generate_body.ts new file mode 100644 index 0000000000..f1bc623693 --- /dev/null +++ b/tests/property/candid_rpc/class_api/canister_methods/update/test/generate_body.ts @@ -0,0 +1,18 @@ +import { Named } from 'azle/test/property'; +import { CandidReturnType } from 'azle/test/property/arbitraries/candid/candid_return_type_arb'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { CorrespondingJSType } from 'azle/test/property/arbitraries/candid/corresponding_js_type'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; + +export function generateBody( + namedParams: Named>[], + returnType: CandidValueAndMeta +): string { + const paramsAreCorrectlyOrdered = areParamsCorrectlyOrdered(namedParams); + + return ` + ${paramsAreCorrectlyOrdered} + + return ${returnType.src.valueLiteral} + `; +} diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/update/test/generate_tests.ts b/tests/property/candid_rpc/class_api/canister_methods/update/test/generate_tests.ts similarity index 63% rename from tests/property/candid_rpc/class_syntax/canister_methods/update/test/generate_tests.ts rename to tests/property/candid_rpc/class_api/canister_methods/update/test/generate_tests.ts index b922deb88a..f822f5fefe 100644 --- a/tests/property/candid_rpc/class_syntax/canister_methods/update/test/generate_tests.ts +++ b/tests/property/candid_rpc/class_api/canister_methods/update/test/generate_tests.ts @@ -1,8 +1,8 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidReturnType } from 'azle/property_tests/arbitraries/candid/candid_return_type_arb'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { CorrespondingJSType } from 'azle/property_tests/arbitraries/candid/corresponding_js_type'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidReturnType } from 'azle/test/property/arbitraries/candid/candid_return_type_arb'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { CorrespondingJSType } from 'azle/test/property/arbitraries/candid/corresponding_js_type'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/update/test/test.ts b/tests/property/candid_rpc/class_api/canister_methods/update/test/test.ts similarity index 59% rename from tests/property/candid_rpc/class_syntax/canister_methods/update/test/test.ts rename to tests/property/candid_rpc/class_api/canister_methods/update/test/test.ts index ff658cb7ed..ee08f2fd29 100644 --- a/tests/property/candid_rpc/class_syntax/canister_methods/update/test/test.ts +++ b/tests/property/candid_rpc/class_api/canister_methods/update/test/test.ts @@ -1,12 +1,12 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { CandidReturnTypeArb } from 'azle/property_tests/arbitraries/candid/candid_return_type_arb'; -import { CandidValueAndMetaArb } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { CandidReturnTypeArb } from 'azle/test/property/arbitraries/candid/candid_return_type_arb'; +import { CandidValueAndMetaArb } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { UpdateMethodArb } from 'azle/property_tests/arbitraries/canister_methods/update_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { UpdateMethodArb } from 'azle/test/property/arbitraries/canister_methods/update_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/update/tsconfig.json b/tests/property/candid_rpc/class_api/canister_methods/update/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/canister_methods/update/tsconfig.json rename to tests/property/candid_rpc/class_api/canister_methods/update/tsconfig.json diff --git a/tests/property/candid_rpc/class_syntax/float32/dfx.json b/tests/property/candid_rpc/class_api/float32/dfx.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/float32/dfx.json rename to tests/property/candid_rpc/class_api/float32/dfx.json diff --git a/tests/property/candid_rpc/class_syntax/float32/package-lock.json b/tests/property/candid_rpc/class_api/float32/package-lock.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/float32/package-lock.json rename to tests/property/candid_rpc/class_api/float32/package-lock.json diff --git a/tests/property/candid_rpc/class_syntax/float32/package.json b/tests/property/candid_rpc/class_api/float32/package.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/float32/package.json rename to tests/property/candid_rpc/class_api/float32/package.json diff --git a/tests/property/candid_rpc/functional_syntax/float32/test/generate_body.ts b/tests/property/candid_rpc/class_api/float32/test/generate_body.ts similarity index 75% rename from tests/property/candid_rpc/functional_syntax/float32/test/generate_body.ts rename to tests/property/candid_rpc/class_api/float32/test/generate_body.ts index be4f256104..40e429d11c 100644 --- a/tests/property/candid_rpc/functional_syntax/float32/test/generate_body.ts +++ b/tests/property/candid_rpc/class_api/float32/test/generate_body.ts @@ -1,6 +1,6 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParamFloat32s: Named>[], diff --git a/tests/property/candid_rpc/functional_syntax/float32/test/generate_tests.ts b/tests/property/candid_rpc/class_api/float32/test/generate_tests.ts similarity index 79% rename from tests/property/candid_rpc/functional_syntax/float32/test/generate_tests.ts rename to tests/property/candid_rpc/class_api/float32/test/generate_tests.ts index 44bbc97595..8d06ffb8c1 100644 --- a/tests/property/candid_rpc/functional_syntax/float32/test/generate_tests.ts +++ b/tests/property/candid_rpc/class_api/float32/test/generate_tests.ts @@ -1,6 +1,6 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/class_syntax/float32/test/test.ts b/tests/property/candid_rpc/class_api/float32/test/test.ts similarity index 64% rename from tests/property/candid_rpc/class_syntax/float32/test/test.ts rename to tests/property/candid_rpc/class_api/float32/test/test.ts index ffa2cee922..019c93ad3f 100644 --- a/tests/property/candid_rpc/class_syntax/float32/test/test.ts +++ b/tests/property/candid_rpc/class_api/float32/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { Float32Arb } from 'azle/property_tests/arbitraries/candid/primitive/floats/float32_arb'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { Float32Arb } from 'azle/test/property/arbitraries/candid/primitive/floats/float32_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/class_syntax/float32/tsconfig.json b/tests/property/candid_rpc/class_api/float32/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/float32/tsconfig.json rename to tests/property/candid_rpc/class_api/float32/tsconfig.json diff --git a/tests/property/candid_rpc/class_syntax/float64/dfx.json b/tests/property/candid_rpc/class_api/float64/dfx.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/float64/dfx.json rename to tests/property/candid_rpc/class_api/float64/dfx.json diff --git a/tests/property/candid_rpc/class_syntax/float64/package-lock.json b/tests/property/candid_rpc/class_api/float64/package-lock.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/float64/package-lock.json rename to tests/property/candid_rpc/class_api/float64/package-lock.json diff --git a/tests/property/candid_rpc/class_syntax/float64/package.json b/tests/property/candid_rpc/class_api/float64/package.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/float64/package.json rename to tests/property/candid_rpc/class_api/float64/package.json diff --git a/tests/property/candid_rpc/functional_syntax/float64/test/generate_body.ts b/tests/property/candid_rpc/class_api/float64/test/generate_body.ts similarity index 76% rename from tests/property/candid_rpc/functional_syntax/float64/test/generate_body.ts rename to tests/property/candid_rpc/class_api/float64/test/generate_body.ts index f3fc35fa4b..2bf26aa450 100644 --- a/tests/property/candid_rpc/functional_syntax/float64/test/generate_body.ts +++ b/tests/property/candid_rpc/class_api/float64/test/generate_body.ts @@ -1,6 +1,6 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParamFloat64s: Named>[], diff --git a/tests/property/candid_rpc/functional_syntax/float64/test/generate_tests.ts b/tests/property/candid_rpc/class_api/float64/test/generate_tests.ts similarity index 80% rename from tests/property/candid_rpc/functional_syntax/float64/test/generate_tests.ts rename to tests/property/candid_rpc/class_api/float64/test/generate_tests.ts index cd5d42f3fe..a1b96c9d69 100644 --- a/tests/property/candid_rpc/functional_syntax/float64/test/generate_tests.ts +++ b/tests/property/candid_rpc/class_api/float64/test/generate_tests.ts @@ -1,6 +1,6 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/class_syntax/float64/test/test.ts b/tests/property/candid_rpc/class_api/float64/test/test.ts similarity index 64% rename from tests/property/candid_rpc/class_syntax/float64/test/test.ts rename to tests/property/candid_rpc/class_api/float64/test/test.ts index df4a8cc0c0..bb57934e82 100644 --- a/tests/property/candid_rpc/class_syntax/float64/test/test.ts +++ b/tests/property/candid_rpc/class_api/float64/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { Float64Arb } from 'azle/property_tests/arbitraries/candid/primitive/floats/float64_arb'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { Float64Arb } from 'azle/test/property/arbitraries/candid/primitive/floats/float64_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/class_syntax/float64/tsconfig.json b/tests/property/candid_rpc/class_api/float64/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/float64/tsconfig.json rename to tests/property/candid_rpc/class_api/float64/tsconfig.json diff --git a/tests/property/candid_rpc/class_syntax/func/dfx.json b/tests/property/candid_rpc/class_api/func/dfx.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/func/dfx.json rename to tests/property/candid_rpc/class_api/func/dfx.json diff --git a/tests/property/candid_rpc/class_syntax/func/package-lock.json b/tests/property/candid_rpc/class_api/func/package-lock.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/func/package-lock.json rename to tests/property/candid_rpc/class_api/func/package-lock.json diff --git a/tests/property/candid_rpc/class_syntax/func/package.json b/tests/property/candid_rpc/class_api/func/package.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/func/package.json rename to tests/property/candid_rpc/class_api/func/package.json diff --git a/tests/property/candid_rpc/functional_syntax/func/test/generate_body.ts b/tests/property/candid_rpc/class_api/func/test/generate_body.ts similarity index 77% rename from tests/property/candid_rpc/functional_syntax/func/test/generate_body.ts rename to tests/property/candid_rpc/class_api/func/test/generate_body.ts index 9311c41d89..13b2df4ee3 100644 --- a/tests/property/candid_rpc/functional_syntax/func/test/generate_body.ts +++ b/tests/property/candid_rpc/class_api/func/test/generate_body.ts @@ -1,7 +1,7 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { Func } from 'azle/property_tests/arbitraries/candid/reference/func_arb'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { Func } from 'azle/test/property/arbitraries/candid/reference/func_arb'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParamFuncs: Named>[], diff --git a/tests/property/candid_rpc/class_syntax/func/test/generate_tests.ts b/tests/property/candid_rpc/class_api/func/test/generate_tests.ts similarity index 71% rename from tests/property/candid_rpc/class_syntax/func/test/generate_tests.ts rename to tests/property/candid_rpc/class_api/func/test/generate_tests.ts index 76a9739ccb..6f43b31d48 100644 --- a/tests/property/candid_rpc/class_syntax/func/test/generate_tests.ts +++ b/tests/property/candid_rpc/class_api/func/test/generate_tests.ts @@ -1,7 +1,7 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { Func } from 'azle/property_tests/arbitraries/candid/reference/func_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { Func } from 'azle/test/property/arbitraries/candid/reference/func_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/class_syntax/func/test/test.ts b/tests/property/candid_rpc/class_api/func/test/test.ts similarity index 66% rename from tests/property/candid_rpc/class_syntax/func/test/test.ts rename to tests/property/candid_rpc/class_api/func/test/test.ts index 0d9e8c9f64..9c6e8a2032 100644 --- a/tests/property/candid_rpc/class_syntax/func/test/test.ts +++ b/tests/property/candid_rpc/class_api/func/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { FuncArb } from 'azle/property_tests/arbitraries/candid/reference/func_arb'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { FuncArb } from 'azle/test/property/arbitraries/candid/reference/func_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/class_syntax/func/tsconfig.json b/tests/property/candid_rpc/class_api/func/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/func/tsconfig.json rename to tests/property/candid_rpc/class_api/func/tsconfig.json diff --git a/tests/property/candid_rpc/class_syntax/int/dfx.json b/tests/property/candid_rpc/class_api/int/dfx.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/int/dfx.json rename to tests/property/candid_rpc/class_api/int/dfx.json diff --git a/tests/property/candid_rpc/class_syntax/int/package-lock.json b/tests/property/candid_rpc/class_api/int/package-lock.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/int/package-lock.json rename to tests/property/candid_rpc/class_api/int/package-lock.json diff --git a/tests/property/candid_rpc/class_syntax/int/package.json b/tests/property/candid_rpc/class_api/int/package.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/int/package.json rename to tests/property/candid_rpc/class_api/int/package.json diff --git a/tests/property/candid_rpc/functional_syntax/int/test/generate_body.ts b/tests/property/candid_rpc/class_api/int/test/generate_body.ts similarity index 73% rename from tests/property/candid_rpc/functional_syntax/int/test/generate_body.ts rename to tests/property/candid_rpc/class_api/int/test/generate_body.ts index 213bb0ae99..20f5dfb198 100644 --- a/tests/property/candid_rpc/functional_syntax/int/test/generate_body.ts +++ b/tests/property/candid_rpc/class_api/int/test/generate_body.ts @@ -1,6 +1,6 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParamInts: Named>[], diff --git a/tests/property/candid_rpc/class_syntax/int/test/generate_tests.ts b/tests/property/candid_rpc/class_api/int/test/generate_tests.ts similarity index 78% rename from tests/property/candid_rpc/class_syntax/int/test/generate_tests.ts rename to tests/property/candid_rpc/class_api/int/test/generate_tests.ts index 4e58696822..d371cab3d8 100644 --- a/tests/property/candid_rpc/class_syntax/int/test/generate_tests.ts +++ b/tests/property/candid_rpc/class_api/int/test/generate_tests.ts @@ -1,6 +1,6 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/class_syntax/int/test/test.ts b/tests/property/candid_rpc/class_api/int/test/test.ts similarity index 64% rename from tests/property/candid_rpc/class_syntax/int/test/test.ts rename to tests/property/candid_rpc/class_api/int/test/test.ts index b6cb25c126..bf2eb81a9b 100644 --- a/tests/property/candid_rpc/class_syntax/int/test/test.ts +++ b/tests/property/candid_rpc/class_api/int/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { IntArb } from 'azle/property_tests/arbitraries/candid/primitive/ints/int_arb'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { IntArb } from 'azle/test/property/arbitraries/candid/primitive/ints/int_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/class_syntax/int/tsconfig.json b/tests/property/candid_rpc/class_api/int/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/int/tsconfig.json rename to tests/property/candid_rpc/class_api/int/tsconfig.json diff --git a/tests/property/candid_rpc/class_syntax/int16/dfx.json b/tests/property/candid_rpc/class_api/int16/dfx.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/int16/dfx.json rename to tests/property/candid_rpc/class_api/int16/dfx.json diff --git a/tests/property/candid_rpc/class_syntax/int16/package-lock.json b/tests/property/candid_rpc/class_api/int16/package-lock.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/int16/package-lock.json rename to tests/property/candid_rpc/class_api/int16/package-lock.json diff --git a/tests/property/candid_rpc/class_syntax/int16/package.json b/tests/property/candid_rpc/class_api/int16/package.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/int16/package.json rename to tests/property/candid_rpc/class_api/int16/package.json diff --git a/tests/property/candid_rpc/class_syntax/int16/test/generate_body.ts b/tests/property/candid_rpc/class_api/int16/test/generate_body.ts similarity index 76% rename from tests/property/candid_rpc/class_syntax/int16/test/generate_body.ts rename to tests/property/candid_rpc/class_api/int16/test/generate_body.ts index 0f26a55321..bf8eb93e4e 100644 --- a/tests/property/candid_rpc/class_syntax/int16/test/generate_body.ts +++ b/tests/property/candid_rpc/class_api/int16/test/generate_body.ts @@ -1,6 +1,6 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParamInt16s: Named>[], diff --git a/tests/property/candid_rpc/class_syntax/int16/test/generate_tests.ts b/tests/property/candid_rpc/class_api/int16/test/generate_tests.ts similarity index 80% rename from tests/property/candid_rpc/class_syntax/int16/test/generate_tests.ts rename to tests/property/candid_rpc/class_api/int16/test/generate_tests.ts index a541579499..ca7736f384 100644 --- a/tests/property/candid_rpc/class_syntax/int16/test/generate_tests.ts +++ b/tests/property/candid_rpc/class_api/int16/test/generate_tests.ts @@ -1,6 +1,6 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/class_syntax/int16/test/test.ts b/tests/property/candid_rpc/class_api/int16/test/test.ts similarity index 64% rename from tests/property/candid_rpc/class_syntax/int16/test/test.ts rename to tests/property/candid_rpc/class_api/int16/test/test.ts index 0d443cd5e2..5c50de5579 100644 --- a/tests/property/candid_rpc/class_syntax/int16/test/test.ts +++ b/tests/property/candid_rpc/class_api/int16/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { Int16Arb } from 'azle/property_tests/arbitraries/candid/primitive/ints/int16_arb'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { Int16Arb } from 'azle/test/property/arbitraries/candid/primitive/ints/int16_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/class_syntax/int16/tsconfig.json b/tests/property/candid_rpc/class_api/int16/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/int16/tsconfig.json rename to tests/property/candid_rpc/class_api/int16/tsconfig.json diff --git a/tests/property/candid_rpc/class_syntax/int32/dfx.json b/tests/property/candid_rpc/class_api/int32/dfx.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/int32/dfx.json rename to tests/property/candid_rpc/class_api/int32/dfx.json diff --git a/tests/property/candid_rpc/class_syntax/int32/package-lock.json b/tests/property/candid_rpc/class_api/int32/package-lock.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/int32/package-lock.json rename to tests/property/candid_rpc/class_api/int32/package-lock.json diff --git a/tests/property/candid_rpc/class_syntax/int32/package.json b/tests/property/candid_rpc/class_api/int32/package.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/int32/package.json rename to tests/property/candid_rpc/class_api/int32/package.json diff --git a/tests/property/candid_rpc/class_syntax/int32/test/generate_body.ts b/tests/property/candid_rpc/class_api/int32/test/generate_body.ts similarity index 76% rename from tests/property/candid_rpc/class_syntax/int32/test/generate_body.ts rename to tests/property/candid_rpc/class_api/int32/test/generate_body.ts index fcac9922a5..66c38aae59 100644 --- a/tests/property/candid_rpc/class_syntax/int32/test/generate_body.ts +++ b/tests/property/candid_rpc/class_api/int32/test/generate_body.ts @@ -1,6 +1,6 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParamInt32s: Named>[], diff --git a/tests/property/candid_rpc/class_syntax/int32/test/generate_tests.ts b/tests/property/candid_rpc/class_api/int32/test/generate_tests.ts similarity index 80% rename from tests/property/candid_rpc/class_syntax/int32/test/generate_tests.ts rename to tests/property/candid_rpc/class_api/int32/test/generate_tests.ts index 7e273b9729..aca24d4e9e 100644 --- a/tests/property/candid_rpc/class_syntax/int32/test/generate_tests.ts +++ b/tests/property/candid_rpc/class_api/int32/test/generate_tests.ts @@ -1,6 +1,6 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/class_syntax/int32/test/test.ts b/tests/property/candid_rpc/class_api/int32/test/test.ts similarity index 64% rename from tests/property/candid_rpc/class_syntax/int32/test/test.ts rename to tests/property/candid_rpc/class_api/int32/test/test.ts index a0e8b4a300..7f09e816e4 100644 --- a/tests/property/candid_rpc/class_syntax/int32/test/test.ts +++ b/tests/property/candid_rpc/class_api/int32/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { Int32Arb } from 'azle/property_tests/arbitraries/candid/primitive/ints/int32_arb'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { Int32Arb } from 'azle/test/property/arbitraries/candid/primitive/ints/int32_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/class_syntax/int32/tsconfig.json b/tests/property/candid_rpc/class_api/int32/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/int32/tsconfig.json rename to tests/property/candid_rpc/class_api/int32/tsconfig.json diff --git a/tests/property/candid_rpc/class_syntax/int64/dfx.json b/tests/property/candid_rpc/class_api/int64/dfx.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/int64/dfx.json rename to tests/property/candid_rpc/class_api/int64/dfx.json diff --git a/tests/property/candid_rpc/class_syntax/int64/package-lock.json b/tests/property/candid_rpc/class_api/int64/package-lock.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/int64/package-lock.json rename to tests/property/candid_rpc/class_api/int64/package-lock.json diff --git a/tests/property/candid_rpc/class_syntax/int64/package.json b/tests/property/candid_rpc/class_api/int64/package.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/int64/package.json rename to tests/property/candid_rpc/class_api/int64/package.json diff --git a/tests/property/candid_rpc/functional_syntax/int64/test/generate_body.ts b/tests/property/candid_rpc/class_api/int64/test/generate_body.ts similarity index 76% rename from tests/property/candid_rpc/functional_syntax/int64/test/generate_body.ts rename to tests/property/candid_rpc/class_api/int64/test/generate_body.ts index a176e72b06..756f0c0432 100644 --- a/tests/property/candid_rpc/functional_syntax/int64/test/generate_body.ts +++ b/tests/property/candid_rpc/class_api/int64/test/generate_body.ts @@ -1,6 +1,6 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParamInt64s: Named>[], diff --git a/tests/property/candid_rpc/functional_syntax/int64/test/generate_tests.ts b/tests/property/candid_rpc/class_api/int64/test/generate_tests.ts similarity index 80% rename from tests/property/candid_rpc/functional_syntax/int64/test/generate_tests.ts rename to tests/property/candid_rpc/class_api/int64/test/generate_tests.ts index 636992ed67..d4c9ee1e05 100644 --- a/tests/property/candid_rpc/functional_syntax/int64/test/generate_tests.ts +++ b/tests/property/candid_rpc/class_api/int64/test/generate_tests.ts @@ -1,6 +1,6 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/class_syntax/int64/test/test.ts b/tests/property/candid_rpc/class_api/int64/test/test.ts similarity index 64% rename from tests/property/candid_rpc/class_syntax/int64/test/test.ts rename to tests/property/candid_rpc/class_api/int64/test/test.ts index 351f26d778..24adfbc734 100644 --- a/tests/property/candid_rpc/class_syntax/int64/test/test.ts +++ b/tests/property/candid_rpc/class_api/int64/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { Int64Arb } from 'azle/property_tests/arbitraries/candid/primitive/ints/int64_arb'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { Int64Arb } from 'azle/test/property/arbitraries/candid/primitive/ints/int64_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/class_syntax/int64/tsconfig.json b/tests/property/candid_rpc/class_api/int64/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/int64/tsconfig.json rename to tests/property/candid_rpc/class_api/int64/tsconfig.json diff --git a/tests/property/candid_rpc/class_syntax/int8/dfx.json b/tests/property/candid_rpc/class_api/int8/dfx.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/int8/dfx.json rename to tests/property/candid_rpc/class_api/int8/dfx.json diff --git a/tests/property/candid_rpc/class_syntax/int8/package-lock.json b/tests/property/candid_rpc/class_api/int8/package-lock.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/int8/package-lock.json rename to tests/property/candid_rpc/class_api/int8/package-lock.json diff --git a/tests/property/candid_rpc/class_syntax/int8/package.json b/tests/property/candid_rpc/class_api/int8/package.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/int8/package.json rename to tests/property/candid_rpc/class_api/int8/package.json diff --git a/tests/property/candid_rpc/class_syntax/int8/test/generate_body.ts b/tests/property/candid_rpc/class_api/int8/test/generate_body.ts similarity index 76% rename from tests/property/candid_rpc/class_syntax/int8/test/generate_body.ts rename to tests/property/candid_rpc/class_api/int8/test/generate_body.ts index 030c06a9bc..44d2a1f3af 100644 --- a/tests/property/candid_rpc/class_syntax/int8/test/generate_body.ts +++ b/tests/property/candid_rpc/class_api/int8/test/generate_body.ts @@ -1,6 +1,6 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParamInt8s: Named>[], diff --git a/tests/property/candid_rpc/functional_syntax/int8/test/generate_tests.ts b/tests/property/candid_rpc/class_api/int8/test/generate_tests.ts similarity index 80% rename from tests/property/candid_rpc/functional_syntax/int8/test/generate_tests.ts rename to tests/property/candid_rpc/class_api/int8/test/generate_tests.ts index 947d939c1d..2895ddb7b8 100644 --- a/tests/property/candid_rpc/functional_syntax/int8/test/generate_tests.ts +++ b/tests/property/candid_rpc/class_api/int8/test/generate_tests.ts @@ -1,6 +1,6 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/class_syntax/int8/test/test.ts b/tests/property/candid_rpc/class_api/int8/test/test.ts similarity index 64% rename from tests/property/candid_rpc/class_syntax/int8/test/test.ts rename to tests/property/candid_rpc/class_api/int8/test/test.ts index 446c60a991..0baee42510 100644 --- a/tests/property/candid_rpc/class_syntax/int8/test/test.ts +++ b/tests/property/candid_rpc/class_api/int8/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { Int8Arb } from 'azle/property_tests/arbitraries/candid/primitive/ints/int8_arb'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { Int8Arb } from 'azle/test/property/arbitraries/candid/primitive/ints/int8_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/class_syntax/int8/tsconfig.json b/tests/property/candid_rpc/class_api/int8/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/int8/tsconfig.json rename to tests/property/candid_rpc/class_api/int8/tsconfig.json diff --git a/tests/property/candid_rpc/class_syntax/nat/dfx.json b/tests/property/candid_rpc/class_api/nat/dfx.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/nat/dfx.json rename to tests/property/candid_rpc/class_api/nat/dfx.json diff --git a/tests/property/candid_rpc/class_syntax/nat/package-lock.json b/tests/property/candid_rpc/class_api/nat/package-lock.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/nat/package-lock.json rename to tests/property/candid_rpc/class_api/nat/package-lock.json diff --git a/tests/property/candid_rpc/class_syntax/nat/package.json b/tests/property/candid_rpc/class_api/nat/package.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/nat/package.json rename to tests/property/candid_rpc/class_api/nat/package.json diff --git a/tests/property/candid_rpc/functional_syntax/nat/test/generate_body.ts b/tests/property/candid_rpc/class_api/nat/test/generate_body.ts similarity index 73% rename from tests/property/candid_rpc/functional_syntax/nat/test/generate_body.ts rename to tests/property/candid_rpc/class_api/nat/test/generate_body.ts index ba2e63496a..433fae1de6 100644 --- a/tests/property/candid_rpc/functional_syntax/nat/test/generate_body.ts +++ b/tests/property/candid_rpc/class_api/nat/test/generate_body.ts @@ -1,6 +1,6 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParamNats: Named>[], diff --git a/tests/property/candid_rpc/functional_syntax/nat/test/generate_tests.ts b/tests/property/candid_rpc/class_api/nat/test/generate_tests.ts similarity index 78% rename from tests/property/candid_rpc/functional_syntax/nat/test/generate_tests.ts rename to tests/property/candid_rpc/class_api/nat/test/generate_tests.ts index 7cd446f07d..88de4ee05b 100644 --- a/tests/property/candid_rpc/functional_syntax/nat/test/generate_tests.ts +++ b/tests/property/candid_rpc/class_api/nat/test/generate_tests.ts @@ -1,6 +1,6 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/class_syntax/nat/test/test.ts b/tests/property/candid_rpc/class_api/nat/test/test.ts similarity index 64% rename from tests/property/candid_rpc/class_syntax/nat/test/test.ts rename to tests/property/candid_rpc/class_api/nat/test/test.ts index 13a35fcf72..cd2a282714 100644 --- a/tests/property/candid_rpc/class_syntax/nat/test/test.ts +++ b/tests/property/candid_rpc/class_api/nat/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { NatArb } from 'azle/property_tests/arbitraries/candid/primitive/nats/nat_arb'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { NatArb } from 'azle/test/property/arbitraries/candid/primitive/nats/nat_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/class_syntax/nat/tsconfig.json b/tests/property/candid_rpc/class_api/nat/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/nat/tsconfig.json rename to tests/property/candid_rpc/class_api/nat/tsconfig.json diff --git a/tests/property/candid_rpc/class_syntax/nat16/dfx.json b/tests/property/candid_rpc/class_api/nat16/dfx.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/nat16/dfx.json rename to tests/property/candid_rpc/class_api/nat16/dfx.json diff --git a/tests/property/candid_rpc/class_syntax/nat16/package-lock.json b/tests/property/candid_rpc/class_api/nat16/package-lock.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/nat16/package-lock.json rename to tests/property/candid_rpc/class_api/nat16/package-lock.json diff --git a/tests/property/candid_rpc/class_syntax/nat16/package.json b/tests/property/candid_rpc/class_api/nat16/package.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/nat16/package.json rename to tests/property/candid_rpc/class_api/nat16/package.json diff --git a/tests/property/candid_rpc/functional_syntax/nat16/test/generate_body.ts b/tests/property/candid_rpc/class_api/nat16/test/generate_body.ts similarity index 76% rename from tests/property/candid_rpc/functional_syntax/nat16/test/generate_body.ts rename to tests/property/candid_rpc/class_api/nat16/test/generate_body.ts index 36c5809b54..556e2bee55 100644 --- a/tests/property/candid_rpc/functional_syntax/nat16/test/generate_body.ts +++ b/tests/property/candid_rpc/class_api/nat16/test/generate_body.ts @@ -1,6 +1,6 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParamNat16s: Named>[], diff --git a/tests/property/candid_rpc/functional_syntax/nat16/test/generate_tests.ts b/tests/property/candid_rpc/class_api/nat16/test/generate_tests.ts similarity index 80% rename from tests/property/candid_rpc/functional_syntax/nat16/test/generate_tests.ts rename to tests/property/candid_rpc/class_api/nat16/test/generate_tests.ts index 712cfd11df..8830422ece 100644 --- a/tests/property/candid_rpc/functional_syntax/nat16/test/generate_tests.ts +++ b/tests/property/candid_rpc/class_api/nat16/test/generate_tests.ts @@ -1,6 +1,6 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/class_syntax/nat16/test/test.ts b/tests/property/candid_rpc/class_api/nat16/test/test.ts similarity index 64% rename from tests/property/candid_rpc/class_syntax/nat16/test/test.ts rename to tests/property/candid_rpc/class_api/nat16/test/test.ts index 292741ca49..979e156323 100644 --- a/tests/property/candid_rpc/class_syntax/nat16/test/test.ts +++ b/tests/property/candid_rpc/class_api/nat16/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { Nat16Arb } from 'azle/property_tests/arbitraries/candid/primitive/nats/nat16_arb'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { Nat16Arb } from 'azle/test/property/arbitraries/candid/primitive/nats/nat16_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/class_syntax/nat16/tsconfig.json b/tests/property/candid_rpc/class_api/nat16/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/nat16/tsconfig.json rename to tests/property/candid_rpc/class_api/nat16/tsconfig.json diff --git a/tests/property/candid_rpc/class_syntax/nat32/dfx.json b/tests/property/candid_rpc/class_api/nat32/dfx.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/nat32/dfx.json rename to tests/property/candid_rpc/class_api/nat32/dfx.json diff --git a/tests/property/candid_rpc/class_syntax/nat32/package-lock.json b/tests/property/candid_rpc/class_api/nat32/package-lock.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/nat32/package-lock.json rename to tests/property/candid_rpc/class_api/nat32/package-lock.json diff --git a/tests/property/candid_rpc/class_syntax/nat32/package.json b/tests/property/candid_rpc/class_api/nat32/package.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/nat32/package.json rename to tests/property/candid_rpc/class_api/nat32/package.json diff --git a/tests/property/candid_rpc/class_syntax/nat32/test/generate_body.ts b/tests/property/candid_rpc/class_api/nat32/test/generate_body.ts similarity index 76% rename from tests/property/candid_rpc/class_syntax/nat32/test/generate_body.ts rename to tests/property/candid_rpc/class_api/nat32/test/generate_body.ts index 3ead7aca94..946047b3ee 100644 --- a/tests/property/candid_rpc/class_syntax/nat32/test/generate_body.ts +++ b/tests/property/candid_rpc/class_api/nat32/test/generate_body.ts @@ -1,6 +1,6 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParamNat32s: Named>[], diff --git a/tests/property/candid_rpc/class_syntax/nat32/test/generate_tests.ts b/tests/property/candid_rpc/class_api/nat32/test/generate_tests.ts similarity index 80% rename from tests/property/candid_rpc/class_syntax/nat32/test/generate_tests.ts rename to tests/property/candid_rpc/class_api/nat32/test/generate_tests.ts index 9b67e1291b..cb3c408713 100644 --- a/tests/property/candid_rpc/class_syntax/nat32/test/generate_tests.ts +++ b/tests/property/candid_rpc/class_api/nat32/test/generate_tests.ts @@ -1,6 +1,6 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/class_syntax/nat32/test/test.ts b/tests/property/candid_rpc/class_api/nat32/test/test.ts similarity index 64% rename from tests/property/candid_rpc/class_syntax/nat32/test/test.ts rename to tests/property/candid_rpc/class_api/nat32/test/test.ts index d0d0c48da1..a593e256d8 100644 --- a/tests/property/candid_rpc/class_syntax/nat32/test/test.ts +++ b/tests/property/candid_rpc/class_api/nat32/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { Nat32Arb } from 'azle/property_tests/arbitraries/candid/primitive/nats/nat32_arb'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { Nat32Arb } from 'azle/test/property/arbitraries/candid/primitive/nats/nat32_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/class_syntax/nat32/tsconfig.json b/tests/property/candid_rpc/class_api/nat32/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/nat32/tsconfig.json rename to tests/property/candid_rpc/class_api/nat32/tsconfig.json diff --git a/tests/property/candid_rpc/class_syntax/nat64/dfx.json b/tests/property/candid_rpc/class_api/nat64/dfx.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/nat64/dfx.json rename to tests/property/candid_rpc/class_api/nat64/dfx.json diff --git a/tests/property/candid_rpc/class_syntax/nat64/package-lock.json b/tests/property/candid_rpc/class_api/nat64/package-lock.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/nat64/package-lock.json rename to tests/property/candid_rpc/class_api/nat64/package-lock.json diff --git a/tests/property/candid_rpc/class_syntax/nat64/package.json b/tests/property/candid_rpc/class_api/nat64/package.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/nat64/package.json rename to tests/property/candid_rpc/class_api/nat64/package.json diff --git a/tests/property/candid_rpc/class_syntax/nat64/test/generate_body.ts b/tests/property/candid_rpc/class_api/nat64/test/generate_body.ts similarity index 76% rename from tests/property/candid_rpc/class_syntax/nat64/test/generate_body.ts rename to tests/property/candid_rpc/class_api/nat64/test/generate_body.ts index 423f9a0013..b14079001d 100644 --- a/tests/property/candid_rpc/class_syntax/nat64/test/generate_body.ts +++ b/tests/property/candid_rpc/class_api/nat64/test/generate_body.ts @@ -1,6 +1,6 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParamNat64s: Named>[], diff --git a/tests/property/candid_rpc/class_syntax/nat64/test/generate_tests.ts b/tests/property/candid_rpc/class_api/nat64/test/generate_tests.ts similarity index 80% rename from tests/property/candid_rpc/class_syntax/nat64/test/generate_tests.ts rename to tests/property/candid_rpc/class_api/nat64/test/generate_tests.ts index 1bf97bf853..0c1b787e13 100644 --- a/tests/property/candid_rpc/class_syntax/nat64/test/generate_tests.ts +++ b/tests/property/candid_rpc/class_api/nat64/test/generate_tests.ts @@ -1,6 +1,6 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/class_syntax/nat64/test/test.ts b/tests/property/candid_rpc/class_api/nat64/test/test.ts similarity index 64% rename from tests/property/candid_rpc/class_syntax/nat64/test/test.ts rename to tests/property/candid_rpc/class_api/nat64/test/test.ts index 229b907ebd..29e0be1b7a 100644 --- a/tests/property/candid_rpc/class_syntax/nat64/test/test.ts +++ b/tests/property/candid_rpc/class_api/nat64/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { Nat64Arb } from 'azle/property_tests/arbitraries/candid/primitive/nats/nat64_arb'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { Nat64Arb } from 'azle/test/property/arbitraries/candid/primitive/nats/nat64_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/class_syntax/nat64/tsconfig.json b/tests/property/candid_rpc/class_api/nat64/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/nat64/tsconfig.json rename to tests/property/candid_rpc/class_api/nat64/tsconfig.json diff --git a/tests/property/candid_rpc/class_syntax/nat8/dfx.json b/tests/property/candid_rpc/class_api/nat8/dfx.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/nat8/dfx.json rename to tests/property/candid_rpc/class_api/nat8/dfx.json diff --git a/tests/property/candid_rpc/class_syntax/nat8/package-lock.json b/tests/property/candid_rpc/class_api/nat8/package-lock.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/nat8/package-lock.json rename to tests/property/candid_rpc/class_api/nat8/package-lock.json diff --git a/tests/property/candid_rpc/class_syntax/nat8/package.json b/tests/property/candid_rpc/class_api/nat8/package.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/nat8/package.json rename to tests/property/candid_rpc/class_api/nat8/package.json diff --git a/tests/property/candid_rpc/class_syntax/nat8/test/generate_body.ts b/tests/property/candid_rpc/class_api/nat8/test/generate_body.ts similarity index 76% rename from tests/property/candid_rpc/class_syntax/nat8/test/generate_body.ts rename to tests/property/candid_rpc/class_api/nat8/test/generate_body.ts index 1a06f4ec48..0c91a382d6 100644 --- a/tests/property/candid_rpc/class_syntax/nat8/test/generate_body.ts +++ b/tests/property/candid_rpc/class_api/nat8/test/generate_body.ts @@ -1,6 +1,6 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParamNat8s: Named>[], diff --git a/tests/property/candid_rpc/class_syntax/nat8/test/generate_tests.ts b/tests/property/candid_rpc/class_api/nat8/test/generate_tests.ts similarity index 80% rename from tests/property/candid_rpc/class_syntax/nat8/test/generate_tests.ts rename to tests/property/candid_rpc/class_api/nat8/test/generate_tests.ts index 10e8bc18a4..00b271b245 100644 --- a/tests/property/candid_rpc/class_syntax/nat8/test/generate_tests.ts +++ b/tests/property/candid_rpc/class_api/nat8/test/generate_tests.ts @@ -1,6 +1,6 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/class_syntax/nat8/test/test.ts b/tests/property/candid_rpc/class_api/nat8/test/test.ts similarity index 64% rename from tests/property/candid_rpc/class_syntax/nat8/test/test.ts rename to tests/property/candid_rpc/class_api/nat8/test/test.ts index b8d3c9c41f..211f93a82a 100644 --- a/tests/property/candid_rpc/class_syntax/nat8/test/test.ts +++ b/tests/property/candid_rpc/class_api/nat8/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { Nat8Arb } from 'azle/property_tests/arbitraries/candid/primitive/nats/nat8_arb'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { Nat8Arb } from 'azle/test/property/arbitraries/candid/primitive/nats/nat8_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/class_syntax/nat8/tsconfig.json b/tests/property/candid_rpc/class_api/nat8/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/nat8/tsconfig.json rename to tests/property/candid_rpc/class_api/nat8/tsconfig.json diff --git a/tests/property/candid_rpc/class_syntax/null/dfx.json b/tests/property/candid_rpc/class_api/null/dfx.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/null/dfx.json rename to tests/property/candid_rpc/class_api/null/dfx.json diff --git a/tests/property/candid_rpc/class_syntax/null/package-lock.json b/tests/property/candid_rpc/class_api/null/package-lock.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/null/package-lock.json rename to tests/property/candid_rpc/class_api/null/package-lock.json diff --git a/tests/property/candid_rpc/class_syntax/null/package.json b/tests/property/candid_rpc/class_api/null/package.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/null/package.json rename to tests/property/candid_rpc/class_api/null/package.json diff --git a/tests/property/candid_rpc/functional_syntax/null/test/generate_body.ts b/tests/property/candid_rpc/class_api/null/test/generate_body.ts similarity index 75% rename from tests/property/candid_rpc/functional_syntax/null/test/generate_body.ts rename to tests/property/candid_rpc/class_api/null/test/generate_body.ts index 407c964407..4f492c6131 100644 --- a/tests/property/candid_rpc/functional_syntax/null/test/generate_body.ts +++ b/tests/property/candid_rpc/class_api/null/test/generate_body.ts @@ -1,5 +1,5 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; export function generateBody( namedParamNulls: Named>[], diff --git a/tests/property/candid_rpc/functional_syntax/null/test/generate_tests.ts b/tests/property/candid_rpc/class_api/null/test/generate_tests.ts similarity index 75% rename from tests/property/candid_rpc/functional_syntax/null/test/generate_tests.ts rename to tests/property/candid_rpc/class_api/null/test/generate_tests.ts index ab971a20d4..b768bdc13a 100644 --- a/tests/property/candid_rpc/functional_syntax/null/test/generate_tests.ts +++ b/tests/property/candid_rpc/class_api/null/test/generate_tests.ts @@ -1,6 +1,6 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/class_syntax/null/test/test.ts b/tests/property/candid_rpc/class_api/null/test/test.ts similarity index 64% rename from tests/property/candid_rpc/class_syntax/null/test/test.ts rename to tests/property/candid_rpc/class_api/null/test/test.ts index 24b1bc64ee..b58b6e9233 100644 --- a/tests/property/candid_rpc/class_syntax/null/test/test.ts +++ b/tests/property/candid_rpc/class_api/null/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { NullArb } from 'azle/property_tests/arbitraries/candid/primitive/null'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { NullArb } from 'azle/test/property/arbitraries/candid/primitive/null'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/class_syntax/null/tsconfig.json b/tests/property/candid_rpc/class_api/null/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/null/tsconfig.json rename to tests/property/candid_rpc/class_api/null/tsconfig.json diff --git a/tests/property/candid_rpc/class_syntax/opt/dfx.json b/tests/property/candid_rpc/class_api/opt/dfx.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/opt/dfx.json rename to tests/property/candid_rpc/class_api/opt/dfx.json diff --git a/tests/property/candid_rpc/class_syntax/opt/package-lock.json b/tests/property/candid_rpc/class_api/opt/package-lock.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/opt/package-lock.json rename to tests/property/candid_rpc/class_api/opt/package-lock.json diff --git a/tests/property/candid_rpc/class_syntax/opt/package.json b/tests/property/candid_rpc/class_api/opt/package.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/opt/package.json rename to tests/property/candid_rpc/class_api/opt/package.json diff --git a/tests/property/candid_rpc/class_syntax/opt/test/generate_body.ts b/tests/property/candid_rpc/class_api/opt/test/generate_body.ts similarity index 70% rename from tests/property/candid_rpc/class_syntax/opt/test/generate_body.ts rename to tests/property/candid_rpc/class_api/opt/test/generate_body.ts index 94d8eb245d..28ee636af1 100644 --- a/tests/property/candid_rpc/class_syntax/opt/test/generate_body.ts +++ b/tests/property/candid_rpc/class_api/opt/test/generate_body.ts @@ -1,7 +1,7 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { Opt } from 'azle/property_tests/arbitraries/candid/constructed/opt_arb'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { Opt } from 'azle/test/property/arbitraries/candid/constructed/opt_arb'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParamOpts: Named>[], diff --git a/tests/property/candid_rpc/functional_syntax/opt/test/generate_tests.ts b/tests/property/candid_rpc/class_api/opt/test/generate_tests.ts similarity index 70% rename from tests/property/candid_rpc/functional_syntax/opt/test/generate_tests.ts rename to tests/property/candid_rpc/class_api/opt/test/generate_tests.ts index 1c6ce71905..8061de7166 100644 --- a/tests/property/candid_rpc/functional_syntax/opt/test/generate_tests.ts +++ b/tests/property/candid_rpc/class_api/opt/test/generate_tests.ts @@ -1,7 +1,7 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { Opt } from 'azle/property_tests/arbitraries/candid/constructed/opt_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { Opt } from 'azle/test/property/arbitraries/candid/constructed/opt_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/class_syntax/opt/test/test.ts b/tests/property/candid_rpc/class_api/opt/test/test.ts similarity index 64% rename from tests/property/candid_rpc/class_syntax/opt/test/test.ts rename to tests/property/candid_rpc/class_api/opt/test/test.ts index 2c511bd385..cc92f2fc12 100644 --- a/tests/property/candid_rpc/class_syntax/opt/test/test.ts +++ b/tests/property/candid_rpc/class_api/opt/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { OptArb } from 'azle/property_tests/arbitraries/candid/constructed/opt_arb'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { OptArb } from 'azle/test/property/arbitraries/candid/constructed/opt_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/class_syntax/opt/tsconfig.json b/tests/property/candid_rpc/class_api/opt/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/opt/tsconfig.json rename to tests/property/candid_rpc/class_api/opt/tsconfig.json diff --git a/tests/property/candid_rpc/class_syntax/principal/dfx.json b/tests/property/candid_rpc/class_api/principal/dfx.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/principal/dfx.json rename to tests/property/candid_rpc/class_api/principal/dfx.json diff --git a/tests/property/candid_rpc/class_syntax/principal/package-lock.json b/tests/property/candid_rpc/class_api/principal/package-lock.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/principal/package-lock.json rename to tests/property/candid_rpc/class_api/principal/package-lock.json diff --git a/tests/property/candid_rpc/class_syntax/principal/package.json b/tests/property/candid_rpc/class_api/principal/package.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/principal/package.json rename to tests/property/candid_rpc/class_api/principal/package.json diff --git a/tests/property/candid_rpc/class_syntax/principal/test/generate_body.ts b/tests/property/candid_rpc/class_api/principal/test/generate_body.ts similarity index 77% rename from tests/property/candid_rpc/class_syntax/principal/test/generate_body.ts rename to tests/property/candid_rpc/class_api/principal/test/generate_body.ts index 69dc896e1a..a43d5e00c2 100644 --- a/tests/property/candid_rpc/class_syntax/principal/test/generate_body.ts +++ b/tests/property/candid_rpc/class_api/principal/test/generate_body.ts @@ -1,7 +1,7 @@ import { Principal } from '@dfinity/principal'; -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParamPrincipals: Named>[], diff --git a/tests/property/candid_rpc/class_syntax/principal/test/generate_tests.ts b/tests/property/candid_rpc/class_api/principal/test/generate_tests.ts similarity index 80% rename from tests/property/candid_rpc/class_syntax/principal/test/generate_tests.ts rename to tests/property/candid_rpc/class_api/principal/test/generate_tests.ts index 05f59dc620..fad105f8fb 100644 --- a/tests/property/candid_rpc/class_syntax/principal/test/generate_tests.ts +++ b/tests/property/candid_rpc/class_api/principal/test/generate_tests.ts @@ -1,7 +1,7 @@ import { Principal } from '@dfinity/principal'; -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/class_syntax/principal/test/test.ts b/tests/property/candid_rpc/class_api/principal/test/test.ts similarity index 64% rename from tests/property/candid_rpc/class_syntax/principal/test/test.ts rename to tests/property/candid_rpc/class_api/principal/test/test.ts index 24b9b5bf1b..751d198104 100644 --- a/tests/property/candid_rpc/class_syntax/principal/test/test.ts +++ b/tests/property/candid_rpc/class_api/principal/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { PrincipalArb } from 'azle/property_tests/arbitraries/candid/reference/principal_arb'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { PrincipalArb } from 'azle/test/property/arbitraries/candid/reference/principal_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/class_syntax/principal/tsconfig.json b/tests/property/candid_rpc/class_api/principal/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/principal/tsconfig.json rename to tests/property/candid_rpc/class_api/principal/tsconfig.json diff --git a/tests/property/candid_rpc/class_syntax/record/dfx.json b/tests/property/candid_rpc/class_api/record/dfx.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/record/dfx.json rename to tests/property/candid_rpc/class_api/record/dfx.json diff --git a/tests/property/candid_rpc/class_syntax/record/package-lock.json b/tests/property/candid_rpc/class_api/record/package-lock.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/record/package-lock.json rename to tests/property/candid_rpc/class_api/record/package-lock.json diff --git a/tests/property/candid_rpc/class_syntax/record/package.json b/tests/property/candid_rpc/class_api/record/package.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/record/package.json rename to tests/property/candid_rpc/class_api/record/package.json diff --git a/tests/property/candid_rpc/functional_syntax/record/test/generate_body.ts b/tests/property/candid_rpc/class_api/record/test/generate_body.ts similarity index 75% rename from tests/property/candid_rpc/functional_syntax/record/test/generate_body.ts rename to tests/property/candid_rpc/class_api/record/test/generate_body.ts index 56d5b4a55f..503fb61421 100644 --- a/tests/property/candid_rpc/functional_syntax/record/test/generate_body.ts +++ b/tests/property/candid_rpc/class_api/record/test/generate_body.ts @@ -1,7 +1,7 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { Record } from 'azle/property_tests/arbitraries/candid/constructed/record_arb'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { Record } from 'azle/test/property/arbitraries/candid/constructed/record_arb'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParamRecords: Named>[], diff --git a/tests/property/candid_rpc/functional_syntax/record/test/generate_tests.ts b/tests/property/candid_rpc/class_api/record/test/generate_tests.ts similarity index 71% rename from tests/property/candid_rpc/functional_syntax/record/test/generate_tests.ts rename to tests/property/candid_rpc/class_api/record/test/generate_tests.ts index e23fd20329..dbcbc2348a 100644 --- a/tests/property/candid_rpc/functional_syntax/record/test/generate_tests.ts +++ b/tests/property/candid_rpc/class_api/record/test/generate_tests.ts @@ -1,7 +1,7 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { Record } from 'azle/property_tests/arbitraries/candid/constructed/record_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { Record } from 'azle/test/property/arbitraries/candid/constructed/record_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/class_syntax/record/test/test.ts b/tests/property/candid_rpc/class_api/record/test/test.ts similarity index 64% rename from tests/property/candid_rpc/class_syntax/record/test/test.ts rename to tests/property/candid_rpc/class_api/record/test/test.ts index a0b172aa24..df2622b6c9 100644 --- a/tests/property/candid_rpc/class_syntax/record/test/test.ts +++ b/tests/property/candid_rpc/class_api/record/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { RecordArb } from 'azle/property_tests/arbitraries/candid/constructed/record_arb'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { RecordArb } from 'azle/test/property/arbitraries/candid/constructed/record_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/class_syntax/record/tsconfig.json b/tests/property/candid_rpc/class_api/record/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/record/tsconfig.json rename to tests/property/candid_rpc/class_api/record/tsconfig.json diff --git a/tests/property/candid_rpc/class_syntax/recursive/dfx.json b/tests/property/candid_rpc/class_api/recursive/dfx.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/recursive/dfx.json rename to tests/property/candid_rpc/class_api/recursive/dfx.json diff --git a/tests/property/candid_rpc/class_syntax/recursive/package-lock.json b/tests/property/candid_rpc/class_api/recursive/package-lock.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/recursive/package-lock.json rename to tests/property/candid_rpc/class_api/recursive/package-lock.json diff --git a/tests/property/candid_rpc/class_syntax/recursive/package.json b/tests/property/candid_rpc/class_api/recursive/package.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/recursive/package.json rename to tests/property/candid_rpc/class_api/recursive/package.json diff --git a/tests/property/candid_rpc/class_syntax/recursive/test/generate_body.ts b/tests/property/candid_rpc/class_api/recursive/test/generate_body.ts similarity index 55% rename from tests/property/candid_rpc/class_syntax/recursive/test/generate_body.ts rename to tests/property/candid_rpc/class_api/recursive/test/generate_body.ts index 6488fdc42b..fc82049805 100644 --- a/tests/property/candid_rpc/class_syntax/recursive/test/generate_body.ts +++ b/tests/property/candid_rpc/class_api/recursive/test/generate_body.ts @@ -1,7 +1,7 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { Recursive } from 'azle/property_tests/arbitraries/candid/recursive'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { Recursive } from 'azle/test/property/arbitraries/candid/recursive'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParamRecursive: Named>[], diff --git a/tests/property/candid_rpc/functional_syntax/recursive/test/generate_tests.ts b/tests/property/candid_rpc/class_api/recursive/test/generate_tests.ts similarity index 72% rename from tests/property/candid_rpc/functional_syntax/recursive/test/generate_tests.ts rename to tests/property/candid_rpc/class_api/recursive/test/generate_tests.ts index d6459ffb9e..f051ae2125 100644 --- a/tests/property/candid_rpc/functional_syntax/recursive/test/generate_tests.ts +++ b/tests/property/candid_rpc/class_api/recursive/test/generate_tests.ts @@ -1,7 +1,7 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { Recursive } from 'azle/property_tests/arbitraries/candid/recursive'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { Recursive } from 'azle/test/property/arbitraries/candid/recursive'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/class_syntax/recursive/test/test.ts b/tests/property/candid_rpc/class_api/recursive/test/test.ts similarity index 67% rename from tests/property/candid_rpc/class_syntax/recursive/test/test.ts rename to tests/property/candid_rpc/class_api/recursive/test/test.ts index 3ba19a50dd..53aecbe8ab 100644 --- a/tests/property/candid_rpc/class_syntax/recursive/test/test.ts +++ b/tests/property/candid_rpc/class_api/recursive/test/test.ts @@ -1,12 +1,12 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { RecursiveArb } from 'azle/property_tests/arbitraries/candid/recursive'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { RecursiveArb } from 'azle/test/property/arbitraries/candid/recursive'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { UpdateMethodArb } from 'azle/property_tests/arbitraries/canister_methods/update_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { UpdateMethodArb } from 'azle/test/property/arbitraries/canister_methods/update_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/class_syntax/recursive/tsconfig.json b/tests/property/candid_rpc/class_api/recursive/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/recursive/tsconfig.json rename to tests/property/candid_rpc/class_api/recursive/tsconfig.json diff --git a/tests/property/candid_rpc/class_syntax/service/dfx.json b/tests/property/candid_rpc/class_api/service/dfx.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/service/dfx.json rename to tests/property/candid_rpc/class_api/service/dfx.json diff --git a/tests/property/candid_rpc/class_syntax/service/package-lock.json b/tests/property/candid_rpc/class_api/service/package-lock.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/service/package-lock.json rename to tests/property/candid_rpc/class_api/service/package-lock.json diff --git a/tests/property/candid_rpc/class_syntax/service/package.json b/tests/property/candid_rpc/class_api/service/package.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/service/package.json rename to tests/property/candid_rpc/class_api/service/package.json diff --git a/tests/property/candid_rpc/class_syntax/service/test/generate_body.ts b/tests/property/candid_rpc/class_api/service/test/generate_body.ts similarity index 83% rename from tests/property/candid_rpc/class_syntax/service/test/generate_body.ts rename to tests/property/candid_rpc/class_api/service/test/generate_body.ts index b112d22eab..756cbbde24 100644 --- a/tests/property/candid_rpc/class_syntax/service/test/generate_body.ts +++ b/tests/property/candid_rpc/class_api/service/test/generate_body.ts @@ -1,6 +1,6 @@ import { Principal } from '@dfinity/principal'; -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; export function generateBody( namedParamServices: Named>[], diff --git a/tests/property/candid_rpc/functional_syntax/service/test/generate_tests.ts b/tests/property/candid_rpc/class_api/service/test/generate_tests.ts similarity index 86% rename from tests/property/candid_rpc/functional_syntax/service/test/generate_tests.ts rename to tests/property/candid_rpc/class_api/service/test/generate_tests.ts index 0f28d07c9c..f1e003ce6e 100644 --- a/tests/property/candid_rpc/functional_syntax/service/test/generate_tests.ts +++ b/tests/property/candid_rpc/class_api/service/test/generate_tests.ts @@ -1,7 +1,7 @@ import { Principal } from '@dfinity/principal'; -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; import { execSync } from 'child_process'; export function generateTests( diff --git a/tests/property/candid_rpc/class_syntax/service/test/test.ts b/tests/property/candid_rpc/class_api/service/test/test.ts similarity index 70% rename from tests/property/candid_rpc/class_syntax/service/test/test.ts rename to tests/property/candid_rpc/class_api/service/test/test.ts index 119da2aa8d..1814abc192 100644 --- a/tests/property/candid_rpc/class_syntax/service/test/test.ts +++ b/tests/property/candid_rpc/class_api/service/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { ServiceArb } from 'azle/property_tests/arbitraries/candid/reference/service_arb'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { ServiceArb } from 'azle/test/property/arbitraries/candid/reference/service_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/class_syntax/service/tsconfig.json b/tests/property/candid_rpc/class_api/service/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/service/tsconfig.json rename to tests/property/candid_rpc/class_api/service/tsconfig.json diff --git a/tests/property/candid_rpc/class_syntax/stable_b_tree_map/dfx.json b/tests/property/candid_rpc/class_api/stable_b_tree_map/dfx.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/stable_b_tree_map/dfx.json rename to tests/property/candid_rpc/class_api/stable_b_tree_map/dfx.json diff --git a/tests/property/candid_rpc/class_syntax/stable_b_tree_map/package-lock.json b/tests/property/candid_rpc/class_api/stable_b_tree_map/package-lock.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/stable_b_tree_map/package-lock.json rename to tests/property/candid_rpc/class_api/stable_b_tree_map/package-lock.json diff --git a/tests/property/candid_rpc/class_syntax/stable_b_tree_map/package.json b/tests/property/candid_rpc/class_api/stable_b_tree_map/package.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/stable_b_tree_map/package.json rename to tests/property/candid_rpc/class_api/stable_b_tree_map/package.json diff --git a/tests/property/candid_rpc/class_syntax/stable_b_tree_map/test/contains_key.ts b/tests/property/candid_rpc/class_api/stable_b_tree_map/test/contains_key.ts similarity index 89% rename from tests/property/candid_rpc/class_syntax/stable_b_tree_map/test/contains_key.ts rename to tests/property/candid_rpc/class_api/stable_b_tree_map/test/contains_key.ts index bf2e9ce3b1..4d221fc4c0 100644 --- a/tests/property/candid_rpc/class_syntax/stable_b_tree_map/test/contains_key.ts +++ b/tests/property/candid_rpc/class_api/stable_b_tree_map/test/contains_key.ts @@ -1,8 +1,8 @@ -import { getActor } from 'azle/property_tests'; -import { QueryMethod } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { StableBTreeMap } from 'azle/property_tests/arbitraries/stable_b_tree_map_arb'; -import { UniqueIdentifierArb } from 'azle/property_tests/arbitraries/unique_identifier_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor } from 'azle/test/property'; +import { QueryMethod } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { StableBTreeMap } from 'azle/test/property/arbitraries/stable_b_tree_map_arb'; +import { UniqueIdentifierArb } from 'azle/test/property/arbitraries/unique_identifier_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; import fc from 'fast-check'; export function ContainsKeyTestArb( diff --git a/tests/property/candid_rpc/class_syntax/stable_b_tree_map/test/get.ts b/tests/property/candid_rpc/class_api/stable_b_tree_map/test/get.ts similarity index 90% rename from tests/property/candid_rpc/class_syntax/stable_b_tree_map/test/get.ts rename to tests/property/candid_rpc/class_api/stable_b_tree_map/test/get.ts index 75a75a42b9..b7613e01a2 100644 --- a/tests/property/candid_rpc/class_syntax/stable_b_tree_map/test/get.ts +++ b/tests/property/candid_rpc/class_api/stable_b_tree_map/test/get.ts @@ -1,8 +1,8 @@ -import { getActor } from 'azle/property_tests'; -import { QueryMethod } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { StableBTreeMap } from 'azle/property_tests/arbitraries/stable_b_tree_map_arb'; -import { UniqueIdentifierArb } from 'azle/property_tests/arbitraries/unique_identifier_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor } from 'azle/test/property'; +import { QueryMethod } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { StableBTreeMap } from 'azle/test/property/arbitraries/stable_b_tree_map_arb'; +import { UniqueIdentifierArb } from 'azle/test/property/arbitraries/unique_identifier_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; import fc from 'fast-check'; export function GetTestArb( diff --git a/tests/property/candid_rpc/class_syntax/stable_b_tree_map/test/insert.ts b/tests/property/candid_rpc/class_api/stable_b_tree_map/test/insert.ts similarity index 86% rename from tests/property/candid_rpc/class_syntax/stable_b_tree_map/test/insert.ts rename to tests/property/candid_rpc/class_api/stable_b_tree_map/test/insert.ts index 6aee258dc3..8adf201b01 100644 --- a/tests/property/candid_rpc/class_syntax/stable_b_tree_map/test/insert.ts +++ b/tests/property/candid_rpc/class_api/stable_b_tree_map/test/insert.ts @@ -1,8 +1,8 @@ -import { getActor } from 'azle/property_tests'; -import { QueryMethod } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { StableBTreeMap } from 'azle/property_tests/arbitraries/stable_b_tree_map_arb'; -import { UniqueIdentifierArb } from 'azle/property_tests/arbitraries/unique_identifier_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor } from 'azle/test/property'; +import { QueryMethod } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { StableBTreeMap } from 'azle/test/property/arbitraries/stable_b_tree_map_arb'; +import { UniqueIdentifierArb } from 'azle/test/property/arbitraries/unique_identifier_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; import fc from 'fast-check'; export function InsertTestArb( diff --git a/tests/property/candid_rpc/class_syntax/stable_b_tree_map/test/is_empty.ts b/tests/property/candid_rpc/class_api/stable_b_tree_map/test/is_empty.ts similarity index 83% rename from tests/property/candid_rpc/class_syntax/stable_b_tree_map/test/is_empty.ts rename to tests/property/candid_rpc/class_api/stable_b_tree_map/test/is_empty.ts index bfe53519ac..ecd8b33e32 100644 --- a/tests/property/candid_rpc/class_syntax/stable_b_tree_map/test/is_empty.ts +++ b/tests/property/candid_rpc/class_api/stable_b_tree_map/test/is_empty.ts @@ -1,8 +1,8 @@ -import { getActor } from 'azle/property_tests'; -import { QueryMethod } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { StableBTreeMap } from 'azle/property_tests/arbitraries/stable_b_tree_map_arb'; -import { UniqueIdentifierArb } from 'azle/property_tests/arbitraries/unique_identifier_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor } from 'azle/test/property'; +import { QueryMethod } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { StableBTreeMap } from 'azle/test/property/arbitraries/stable_b_tree_map_arb'; +import { UniqueIdentifierArb } from 'azle/test/property/arbitraries/unique_identifier_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; import fc from 'fast-check'; export function IsEmptyTestArb( diff --git a/tests/property/candid_rpc/class_syntax/stable_b_tree_map/test/items.ts b/tests/property/candid_rpc/class_api/stable_b_tree_map/test/items.ts similarity index 88% rename from tests/property/candid_rpc/class_syntax/stable_b_tree_map/test/items.ts rename to tests/property/candid_rpc/class_api/stable_b_tree_map/test/items.ts index 74f262fbce..02d8d82f9a 100644 --- a/tests/property/candid_rpc/class_syntax/stable_b_tree_map/test/items.ts +++ b/tests/property/candid_rpc/class_api/stable_b_tree_map/test/items.ts @@ -1,8 +1,8 @@ -import { getActor } from 'azle/property_tests'; -import { QueryMethod } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { StableBTreeMap } from 'azle/property_tests/arbitraries/stable_b_tree_map_arb'; -import { UniqueIdentifierArb } from 'azle/property_tests/arbitraries/unique_identifier_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor } from 'azle/test/property'; +import { QueryMethod } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { StableBTreeMap } from 'azle/test/property/arbitraries/stable_b_tree_map_arb'; +import { UniqueIdentifierArb } from 'azle/test/property/arbitraries/unique_identifier_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; import fc from 'fast-check'; export function ItemsTestArb( diff --git a/tests/property/candid_rpc/class_syntax/stable_b_tree_map/test/keys.ts b/tests/property/candid_rpc/class_api/stable_b_tree_map/test/keys.ts similarity index 90% rename from tests/property/candid_rpc/class_syntax/stable_b_tree_map/test/keys.ts rename to tests/property/candid_rpc/class_api/stable_b_tree_map/test/keys.ts index 29f184d24b..f3a09dc853 100644 --- a/tests/property/candid_rpc/class_syntax/stable_b_tree_map/test/keys.ts +++ b/tests/property/candid_rpc/class_api/stable_b_tree_map/test/keys.ts @@ -1,8 +1,8 @@ -import { getActor } from 'azle/property_tests'; -import { QueryMethod } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { StableBTreeMap } from 'azle/property_tests/arbitraries/stable_b_tree_map_arb'; -import { UniqueIdentifierArb } from 'azle/property_tests/arbitraries/unique_identifier_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor } from 'azle/test/property'; +import { QueryMethod } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { StableBTreeMap } from 'azle/test/property/arbitraries/stable_b_tree_map_arb'; +import { UniqueIdentifierArb } from 'azle/test/property/arbitraries/unique_identifier_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; import fc from 'fast-check'; import { diff --git a/tests/property/candid_rpc/class_syntax/stable_b_tree_map/test/len.ts b/tests/property/candid_rpc/class_api/stable_b_tree_map/test/len.ts similarity index 84% rename from tests/property/candid_rpc/class_syntax/stable_b_tree_map/test/len.ts rename to tests/property/candid_rpc/class_api/stable_b_tree_map/test/len.ts index 40f42d2553..4deaa182b0 100644 --- a/tests/property/candid_rpc/class_syntax/stable_b_tree_map/test/len.ts +++ b/tests/property/candid_rpc/class_api/stable_b_tree_map/test/len.ts @@ -1,8 +1,8 @@ -import { getActor } from 'azle/property_tests'; -import { QueryMethod } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { StableBTreeMap } from 'azle/property_tests/arbitraries/stable_b_tree_map_arb'; -import { UniqueIdentifierArb } from 'azle/property_tests/arbitraries/unique_identifier_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor } from 'azle/test/property'; +import { QueryMethod } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { StableBTreeMap } from 'azle/test/property/arbitraries/stable_b_tree_map_arb'; +import { UniqueIdentifierArb } from 'azle/test/property/arbitraries/unique_identifier_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; import fc from 'fast-check'; export function LenTestArb( diff --git a/tests/property/candid_rpc/class_syntax/stable_b_tree_map/test/remove.ts b/tests/property/candid_rpc/class_api/stable_b_tree_map/test/remove.ts similarity index 87% rename from tests/property/candid_rpc/class_syntax/stable_b_tree_map/test/remove.ts rename to tests/property/candid_rpc/class_api/stable_b_tree_map/test/remove.ts index 3de59b3bd6..78958f8cba 100644 --- a/tests/property/candid_rpc/class_syntax/stable_b_tree_map/test/remove.ts +++ b/tests/property/candid_rpc/class_api/stable_b_tree_map/test/remove.ts @@ -1,8 +1,8 @@ -import { getActor } from 'azle/property_tests'; -import { QueryMethod } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { StableBTreeMap } from 'azle/property_tests/arbitraries/stable_b_tree_map_arb'; -import { UniqueIdentifierArb } from 'azle/property_tests/arbitraries/unique_identifier_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor } from 'azle/test/property'; +import { QueryMethod } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { StableBTreeMap } from 'azle/test/property/arbitraries/stable_b_tree_map_arb'; +import { UniqueIdentifierArb } from 'azle/test/property/arbitraries/unique_identifier_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; import fc from 'fast-check'; export function RemoveTestArb( diff --git a/tests/property/candid_rpc/class_syntax/stable_b_tree_map/test/test.ts b/tests/property/candid_rpc/class_api/stable_b_tree_map/test/test.ts similarity index 92% rename from tests/property/candid_rpc/class_syntax/stable_b_tree_map/test/test.ts rename to tests/property/candid_rpc/class_api/stable_b_tree_map/test/test.ts index 7a7ead2c18..3298793d8d 100644 --- a/tests/property/candid_rpc/class_syntax/stable_b_tree_map/test/test.ts +++ b/tests/property/candid_rpc/class_api/stable_b_tree_map/test/test.ts @@ -1,7 +1,7 @@ -import { runPropTests } from 'azle/property_tests'; -import { CanisterArb } from 'azle/property_tests/arbitraries/canister_arb'; -import { StableBTreeMapArb } from 'azle/property_tests/arbitraries/stable_b_tree_map_arb'; -import { Context } from 'azle/property_tests/arbitraries/types'; +import { runPropTests } from 'azle/test/property'; +import { CanisterArb } from 'azle/test/property/arbitraries/canister_arb'; +import { StableBTreeMapArb } from 'azle/test/property/arbitraries/stable_b_tree_map_arb'; +import { Context } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { ContainsKeyTestArb } from './contains_key'; diff --git a/tests/property/candid_rpc/class_syntax/stable_b_tree_map/test/utils.ts b/tests/property/candid_rpc/class_api/stable_b_tree_map/test/utils.ts similarity index 100% rename from tests/property/candid_rpc/class_syntax/stable_b_tree_map/test/utils.ts rename to tests/property/candid_rpc/class_api/stable_b_tree_map/test/utils.ts diff --git a/tests/property/candid_rpc/class_syntax/stable_b_tree_map/test/values.ts b/tests/property/candid_rpc/class_api/stable_b_tree_map/test/values.ts similarity index 90% rename from tests/property/candid_rpc/class_syntax/stable_b_tree_map/test/values.ts rename to tests/property/candid_rpc/class_api/stable_b_tree_map/test/values.ts index 8b74a3d797..ebdf3d3ab5 100644 --- a/tests/property/candid_rpc/class_syntax/stable_b_tree_map/test/values.ts +++ b/tests/property/candid_rpc/class_api/stable_b_tree_map/test/values.ts @@ -1,8 +1,8 @@ -import { getActor } from 'azle/property_tests'; -import { QueryMethod } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { StableBTreeMap } from 'azle/property_tests/arbitraries/stable_b_tree_map_arb'; -import { UniqueIdentifierArb } from 'azle/property_tests/arbitraries/unique_identifier_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor } from 'azle/test/property'; +import { QueryMethod } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { StableBTreeMap } from 'azle/test/property/arbitraries/stable_b_tree_map_arb'; +import { UniqueIdentifierArb } from 'azle/test/property/arbitraries/unique_identifier_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; import fc from 'fast-check'; import { diff --git a/tests/property/candid_rpc/class_syntax/stable_b_tree_map/tsconfig.json b/tests/property/candid_rpc/class_api/stable_b_tree_map/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/stable_b_tree_map/tsconfig.json rename to tests/property/candid_rpc/class_api/stable_b_tree_map/tsconfig.json diff --git a/tests/property/candid_rpc/class_syntax/text/dfx.json b/tests/property/candid_rpc/class_api/text/dfx.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/text/dfx.json rename to tests/property/candid_rpc/class_api/text/dfx.json diff --git a/tests/property/candid_rpc/class_syntax/text/package-lock.json b/tests/property/candid_rpc/class_api/text/package-lock.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/text/package-lock.json rename to tests/property/candid_rpc/class_api/text/package-lock.json diff --git a/tests/property/candid_rpc/class_syntax/text/package.json b/tests/property/candid_rpc/class_api/text/package.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/text/package.json rename to tests/property/candid_rpc/class_api/text/package.json diff --git a/tests/property/candid_rpc/class_syntax/text/test/generate_body.ts b/tests/property/candid_rpc/class_api/text/test/generate_body.ts similarity index 74% rename from tests/property/candid_rpc/class_syntax/text/test/generate_body.ts rename to tests/property/candid_rpc/class_api/text/test/generate_body.ts index 0e2091277f..12eb7385e2 100644 --- a/tests/property/candid_rpc/class_syntax/text/test/generate_body.ts +++ b/tests/property/candid_rpc/class_api/text/test/generate_body.ts @@ -1,6 +1,6 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParamTexts: Named>[], diff --git a/tests/property/candid_rpc/functional_syntax/text/test/generate_tests.ts b/tests/property/candid_rpc/class_api/text/test/generate_tests.ts similarity index 78% rename from tests/property/candid_rpc/functional_syntax/text/test/generate_tests.ts rename to tests/property/candid_rpc/class_api/text/test/generate_tests.ts index 370e30d251..864fad0251 100644 --- a/tests/property/candid_rpc/functional_syntax/text/test/generate_tests.ts +++ b/tests/property/candid_rpc/class_api/text/test/generate_tests.ts @@ -1,6 +1,6 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/class_syntax/text/test/test.ts b/tests/property/candid_rpc/class_api/text/test/test.ts similarity index 64% rename from tests/property/candid_rpc/class_syntax/text/test/test.ts rename to tests/property/candid_rpc/class_api/text/test/test.ts index aa02ef4197..bb99b4b6cf 100644 --- a/tests/property/candid_rpc/class_syntax/text/test/test.ts +++ b/tests/property/candid_rpc/class_api/text/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { TextArb } from 'azle/property_tests/arbitraries/candid/primitive/text'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { TextArb } from 'azle/test/property/arbitraries/candid/primitive/text'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/class_syntax/text/tsconfig.json b/tests/property/candid_rpc/class_api/text/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/text/tsconfig.json rename to tests/property/candid_rpc/class_api/text/tsconfig.json diff --git a/tests/property/candid_rpc/class_syntax/tuple/dfx.json b/tests/property/candid_rpc/class_api/tuple/dfx.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/tuple/dfx.json rename to tests/property/candid_rpc/class_api/tuple/dfx.json diff --git a/tests/property/candid_rpc/class_syntax/tuple/package-lock.json b/tests/property/candid_rpc/class_api/tuple/package-lock.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/tuple/package-lock.json rename to tests/property/candid_rpc/class_api/tuple/package-lock.json diff --git a/tests/property/candid_rpc/class_syntax/tuple/package.json b/tests/property/candid_rpc/class_api/tuple/package.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/tuple/package.json rename to tests/property/candid_rpc/class_api/tuple/package.json diff --git a/tests/property/candid_rpc/class_syntax/tuple/test/generate_body.ts b/tests/property/candid_rpc/class_api/tuple/test/generate_body.ts similarity index 75% rename from tests/property/candid_rpc/class_syntax/tuple/test/generate_body.ts rename to tests/property/candid_rpc/class_api/tuple/test/generate_body.ts index 9db56b18d1..9d15797453 100644 --- a/tests/property/candid_rpc/class_syntax/tuple/test/generate_body.ts +++ b/tests/property/candid_rpc/class_api/tuple/test/generate_body.ts @@ -1,10 +1,10 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; import { ReturnTuple, Tuple -} from 'azle/property_tests/arbitraries/candid/constructed/tuple_arb'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +} from 'azle/test/property/arbitraries/candid/constructed/tuple_arb'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParamTuples: Named>[], diff --git a/tests/property/candid_rpc/class_syntax/tuple/test/generate_tests.ts b/tests/property/candid_rpc/class_api/tuple/test/generate_tests.ts similarity index 73% rename from tests/property/candid_rpc/class_syntax/tuple/test/generate_tests.ts rename to tests/property/candid_rpc/class_api/tuple/test/generate_tests.ts index c35eedb756..387be4ae21 100644 --- a/tests/property/candid_rpc/class_syntax/tuple/test/generate_tests.ts +++ b/tests/property/candid_rpc/class_api/tuple/test/generate_tests.ts @@ -1,10 +1,10 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; import { ReturnTuple, Tuple -} from 'azle/property_tests/arbitraries/candid/constructed/tuple_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +} from 'azle/test/property/arbitraries/candid/constructed/tuple_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/class_syntax/tuple/test/test.ts b/tests/property/candid_rpc/class_api/tuple/test/test.ts similarity index 66% rename from tests/property/candid_rpc/class_syntax/tuple/test/test.ts rename to tests/property/candid_rpc/class_api/tuple/test/test.ts index e138ddbe15..869f16edc7 100644 --- a/tests/property/candid_rpc/class_syntax/tuple/test/test.ts +++ b/tests/property/candid_rpc/class_api/tuple/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { TupleArb } from 'azle/property_tests/arbitraries/candid/constructed/tuple_arb'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { TupleArb } from 'azle/test/property/arbitraries/candid/constructed/tuple_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/class_syntax/tuple/tsconfig.json b/tests/property/candid_rpc/class_api/tuple/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/tuple/tsconfig.json rename to tests/property/candid_rpc/class_api/tuple/tsconfig.json diff --git a/tests/property/candid_rpc/class_syntax/variant/dfx.json b/tests/property/candid_rpc/class_api/variant/dfx.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/variant/dfx.json rename to tests/property/candid_rpc/class_api/variant/dfx.json diff --git a/tests/property/candid_rpc/class_syntax/variant/package-lock.json b/tests/property/candid_rpc/class_api/variant/package-lock.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/variant/package-lock.json rename to tests/property/candid_rpc/class_api/variant/package-lock.json diff --git a/tests/property/candid_rpc/class_syntax/variant/package.json b/tests/property/candid_rpc/class_api/variant/package.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/variant/package.json rename to tests/property/candid_rpc/class_api/variant/package.json diff --git a/tests/property/candid_rpc/functional_syntax/variant/test/generate_body.ts b/tests/property/candid_rpc/class_api/variant/test/generate_body.ts similarity index 67% rename from tests/property/candid_rpc/functional_syntax/variant/test/generate_body.ts rename to tests/property/candid_rpc/class_api/variant/test/generate_body.ts index 30e7aea51d..74c5ff75b8 100644 --- a/tests/property/candid_rpc/functional_syntax/variant/test/generate_body.ts +++ b/tests/property/candid_rpc/class_api/variant/test/generate_body.ts @@ -1,7 +1,7 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { Variant } from 'azle/property_tests/arbitraries/candid/constructed/variant_arb'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { Variant } from 'azle/test/property/arbitraries/candid/constructed/variant_arb'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParamVariants: Named>[], diff --git a/tests/property/candid_rpc/class_syntax/variant/test/generate_tests.ts b/tests/property/candid_rpc/class_api/variant/test/generate_tests.ts similarity index 71% rename from tests/property/candid_rpc/class_syntax/variant/test/generate_tests.ts rename to tests/property/candid_rpc/class_api/variant/test/generate_tests.ts index d9e46079d2..540ee8ead8 100644 --- a/tests/property/candid_rpc/class_syntax/variant/test/generate_tests.ts +++ b/tests/property/candid_rpc/class_api/variant/test/generate_tests.ts @@ -1,7 +1,7 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { Variant } from 'azle/property_tests/arbitraries/candid/constructed/variant_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { Variant } from 'azle/test/property/arbitraries/candid/constructed/variant_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/class_syntax/variant/test/test.ts b/tests/property/candid_rpc/class_api/variant/test/test.ts similarity index 66% rename from tests/property/candid_rpc/class_syntax/variant/test/test.ts rename to tests/property/candid_rpc/class_api/variant/test/test.ts index 21020967f8..672e9328dc 100644 --- a/tests/property/candid_rpc/class_syntax/variant/test/test.ts +++ b/tests/property/candid_rpc/class_api/variant/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { VariantArb } from 'azle/property_tests/arbitraries/candid/constructed/variant_arb'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { VariantArb } from 'azle/test/property/arbitraries/candid/constructed/variant_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/class_syntax/variant/tsconfig.json b/tests/property/candid_rpc/class_api/variant/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/variant/tsconfig.json rename to tests/property/candid_rpc/class_api/variant/tsconfig.json diff --git a/tests/property/candid_rpc/class_syntax/vec/dfx.json b/tests/property/candid_rpc/class_api/vec/dfx.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/vec/dfx.json rename to tests/property/candid_rpc/class_api/vec/dfx.json diff --git a/tests/property/candid_rpc/class_syntax/vec/package-lock.json b/tests/property/candid_rpc/class_api/vec/package-lock.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/vec/package-lock.json rename to tests/property/candid_rpc/class_api/vec/package-lock.json diff --git a/tests/property/candid_rpc/class_syntax/vec/package.json b/tests/property/candid_rpc/class_api/vec/package.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/vec/package.json rename to tests/property/candid_rpc/class_api/vec/package.json diff --git a/tests/property/candid_rpc/functional_syntax/vec/test/generate_body.ts b/tests/property/candid_rpc/class_api/vec/test/generate_body.ts similarity index 72% rename from tests/property/candid_rpc/functional_syntax/vec/test/generate_body.ts rename to tests/property/candid_rpc/class_api/vec/test/generate_body.ts index e209ee6cd3..512c4d1b63 100644 --- a/tests/property/candid_rpc/functional_syntax/vec/test/generate_body.ts +++ b/tests/property/candid_rpc/class_api/vec/test/generate_body.ts @@ -1,6 +1,6 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParamVecs: Named>[], diff --git a/tests/property/candid_rpc/class_syntax/vec/test/generate_tests.ts b/tests/property/candid_rpc/class_api/vec/test/generate_tests.ts similarity index 76% rename from tests/property/candid_rpc/class_syntax/vec/test/generate_tests.ts rename to tests/property/candid_rpc/class_api/vec/test/generate_tests.ts index f668d981b1..682face3fd 100644 --- a/tests/property/candid_rpc/class_syntax/vec/test/generate_tests.ts +++ b/tests/property/candid_rpc/class_api/vec/test/generate_tests.ts @@ -1,6 +1,6 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/class_syntax/vec/test/test.ts b/tests/property/candid_rpc/class_api/vec/test/test.ts similarity index 64% rename from tests/property/candid_rpc/class_syntax/vec/test/test.ts rename to tests/property/candid_rpc/class_api/vec/test/test.ts index 14338a4ab9..c009e285b7 100644 --- a/tests/property/candid_rpc/class_syntax/vec/test/test.ts +++ b/tests/property/candid_rpc/class_api/vec/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { VecArb } from 'azle/property_tests/arbitraries/candid/constructed/vec_arb'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { VecArb } from 'azle/test/property/arbitraries/candid/constructed/vec_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/class_syntax/vec/tsconfig.json b/tests/property/candid_rpc/class_api/vec/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/class_syntax/vec/tsconfig.json rename to tests/property/candid_rpc/class_api/vec/tsconfig.json diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/post_upgrade/test/generate_callable_method_body.ts b/tests/property/candid_rpc/class_syntax/canister_methods/post_upgrade/test/generate_callable_method_body.ts deleted file mode 100644 index d52e92001a..0000000000 --- a/tests/property/candid_rpc/class_syntax/canister_methods/post_upgrade/test/generate_callable_method_body.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { CorrespondingJSType } from 'azle/property_tests/arbitraries/candid/corresponding_js_type'; - -export function generateBody( - _namedParams: Named>[], - returnType: CandidValueAndMeta -): string { - return `return ${returnType.src.valueLiteral}`; -} diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/query/test/generate_body.ts b/tests/property/candid_rpc/class_syntax/canister_methods/query/test/generate_body.ts deleted file mode 100644 index 0a78fed29d..0000000000 --- a/tests/property/candid_rpc/class_syntax/canister_methods/query/test/generate_body.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { Named } from 'azle/property_tests'; -import { CandidReturnType } from 'azle/property_tests/arbitraries/candid/candid_return_type_arb'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { CorrespondingJSType } from 'azle/property_tests/arbitraries/candid/corresponding_js_type'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; - -export function generateBody( - namedParams: Named>[], - returnType: CandidValueAndMeta -): string { - const paramsAreCorrectlyOrdered = areParamsCorrectlyOrdered(namedParams); - - return ` - ${paramsAreCorrectlyOrdered} - - return ${returnType.src.valueLiteral} - `; -} diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/update/test/generate_body.ts b/tests/property/candid_rpc/class_syntax/canister_methods/update/test/generate_body.ts deleted file mode 100644 index 0a78fed29d..0000000000 --- a/tests/property/candid_rpc/class_syntax/canister_methods/update/test/generate_body.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { Named } from 'azle/property_tests'; -import { CandidReturnType } from 'azle/property_tests/arbitraries/candid/candid_return_type_arb'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { CorrespondingJSType } from 'azle/property_tests/arbitraries/candid/corresponding_js_type'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; - -export function generateBody( - namedParams: Named>[], - returnType: CandidValueAndMeta -): string { - const paramsAreCorrectlyOrdered = areParamsCorrectlyOrdered(namedParams); - - return ` - ${paramsAreCorrectlyOrdered} - - return ${returnType.src.valueLiteral} - `; -} diff --git a/tests/property/candid_rpc/functional_syntax/blob/dfx.json b/tests/property/candid_rpc/functional_api/blob/dfx.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/blob/dfx.json rename to tests/property/candid_rpc/functional_api/blob/dfx.json diff --git a/tests/property/candid_rpc/functional_syntax/blob/package-lock.json b/tests/property/candid_rpc/functional_api/blob/package-lock.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/blob/package-lock.json rename to tests/property/candid_rpc/functional_api/blob/package-lock.json diff --git a/tests/property/candid_rpc/functional_syntax/blob/package.json b/tests/property/candid_rpc/functional_api/blob/package.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/blob/package.json rename to tests/property/candid_rpc/functional_api/blob/package.json diff --git a/tests/property/candid_rpc/class_syntax/blob/test/generate_body.ts b/tests/property/candid_rpc/functional_api/blob/test/generate_body.ts similarity index 79% rename from tests/property/candid_rpc/class_syntax/blob/test/generate_body.ts rename to tests/property/candid_rpc/functional_api/blob/test/generate_body.ts index a4b13c01e7..d42cc53f6d 100644 --- a/tests/property/candid_rpc/class_syntax/blob/test/generate_body.ts +++ b/tests/property/candid_rpc/functional_api/blob/test/generate_body.ts @@ -1,6 +1,6 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParamBlobs: Named>[], diff --git a/tests/property/candid_rpc/class_syntax/blob/test/generate_tests.ts b/tests/property/candid_rpc/functional_api/blob/test/generate_tests.ts similarity index 81% rename from tests/property/candid_rpc/class_syntax/blob/test/generate_tests.ts rename to tests/property/candid_rpc/functional_api/blob/test/generate_tests.ts index 7a40235d34..486dfabddd 100644 --- a/tests/property/candid_rpc/class_syntax/blob/test/generate_tests.ts +++ b/tests/property/candid_rpc/functional_api/blob/test/generate_tests.ts @@ -1,6 +1,6 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/functional_syntax/blob/test/test.ts b/tests/property/candid_rpc/functional_api/blob/test/test.ts similarity index 64% rename from tests/property/candid_rpc/functional_syntax/blob/test/test.ts rename to tests/property/candid_rpc/functional_api/blob/test/test.ts index 720eb648ec..e0c8e89bd1 100644 --- a/tests/property/candid_rpc/functional_syntax/blob/test/test.ts +++ b/tests/property/candid_rpc/functional_api/blob/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { BlobArb } from 'azle/property_tests/arbitraries/candid/constructed/blob_arb'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { BlobArb } from 'azle/test/property/arbitraries/candid/constructed/blob_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/functional_syntax/blob/tsconfig.json b/tests/property/candid_rpc/functional_api/blob/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/blob/tsconfig.json rename to tests/property/candid_rpc/functional_api/blob/tsconfig.json diff --git a/tests/property/candid_rpc/functional_syntax/bool/dfx.json b/tests/property/candid_rpc/functional_api/bool/dfx.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/bool/dfx.json rename to tests/property/candid_rpc/functional_api/bool/dfx.json diff --git a/tests/property/candid_rpc/functional_syntax/bool/package-lock.json b/tests/property/candid_rpc/functional_api/bool/package-lock.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/bool/package-lock.json rename to tests/property/candid_rpc/functional_api/bool/package-lock.json diff --git a/tests/property/candid_rpc/functional_syntax/bool/package.json b/tests/property/candid_rpc/functional_api/bool/package.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/bool/package.json rename to tests/property/candid_rpc/functional_api/bool/package.json diff --git a/tests/property/candid_rpc/functional_syntax/bool/test/generate_body.ts b/tests/property/candid_rpc/functional_api/bool/test/generate_body.ts similarity index 79% rename from tests/property/candid_rpc/functional_syntax/bool/test/generate_body.ts rename to tests/property/candid_rpc/functional_api/bool/test/generate_body.ts index 563aed3275..994df55128 100644 --- a/tests/property/candid_rpc/functional_syntax/bool/test/generate_body.ts +++ b/tests/property/candid_rpc/functional_api/bool/test/generate_body.ts @@ -1,6 +1,6 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParamBools: Named>[], diff --git a/tests/property/candid_rpc/class_syntax/bool/test/generate_tests.ts b/tests/property/candid_rpc/functional_api/bool/test/generate_tests.ts similarity index 78% rename from tests/property/candid_rpc/class_syntax/bool/test/generate_tests.ts rename to tests/property/candid_rpc/functional_api/bool/test/generate_tests.ts index a91e7cc3b6..f502a7d3d1 100644 --- a/tests/property/candid_rpc/class_syntax/bool/test/generate_tests.ts +++ b/tests/property/candid_rpc/functional_api/bool/test/generate_tests.ts @@ -1,6 +1,6 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/functional_syntax/bool/test/test.ts b/tests/property/candid_rpc/functional_api/bool/test/test.ts similarity index 64% rename from tests/property/candid_rpc/functional_syntax/bool/test/test.ts rename to tests/property/candid_rpc/functional_api/bool/test/test.ts index 65795b567e..8cfab58e96 100644 --- a/tests/property/candid_rpc/functional_syntax/bool/test/test.ts +++ b/tests/property/candid_rpc/functional_api/bool/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { BoolArb } from 'azle/property_tests/arbitraries/candid/primitive/bool'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { BoolArb } from 'azle/test/property/arbitraries/candid/primitive/bool'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/functional_syntax/bool/tsconfig.json b/tests/property/candid_rpc/functional_api/bool/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/bool/tsconfig.json rename to tests/property/candid_rpc/functional_api/bool/tsconfig.json diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/http_request/dfx.json b/tests/property/candid_rpc/functional_api/canister_methods/http_request/dfx.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/canister_methods/http_request/dfx.json rename to tests/property/candid_rpc/functional_api/canister_methods/http_request/dfx.json diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/http_request/package-lock.json b/tests/property/candid_rpc/functional_api/canister_methods/http_request/package-lock.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/canister_methods/http_request/package-lock.json rename to tests/property/candid_rpc/functional_api/canister_methods/http_request/package-lock.json diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/http_request/package.json b/tests/property/candid_rpc/functional_api/canister_methods/http_request/package.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/canister_methods/http_request/package.json rename to tests/property/candid_rpc/functional_api/canister_methods/http_request/package.json diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/http_request/test/fletch.ts b/tests/property/candid_rpc/functional_api/canister_methods/http_request/test/fletch.ts similarity index 100% rename from tests/property/candid_rpc/functional_syntax/canister_methods/http_request/test/fletch.ts rename to tests/property/candid_rpc/functional_api/canister_methods/http_request/test/fletch.ts diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/http_request/test/generate_body.ts b/tests/property/candid_rpc/functional_api/canister_methods/http_request/test/generate_body.ts similarity index 94% rename from tests/property/candid_rpc/functional_syntax/canister_methods/http_request/test/generate_body.ts rename to tests/property/candid_rpc/functional_api/canister_methods/http_request/test/generate_body.ts index b18e3df773..f5e9178348 100644 --- a/tests/property/candid_rpc/functional_syntax/canister_methods/http_request/test/generate_body.ts +++ b/tests/property/candid_rpc/functional_api/canister_methods/http_request/test/generate_body.ts @@ -1,7 +1,7 @@ import { HttpRequest } from 'azle/experimental'; -import { Named } from 'azle/property_tests'; -import { CandidReturnType } from 'azle/property_tests/arbitraries/candid/candid_return_type_arb'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; +import { Named } from 'azle/test/property'; +import { CandidReturnType } from 'azle/test/property/arbitraries/candid/candid_return_type_arb'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; export function generateBody( namedParams: Named>[], diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/http_request/test/generate_tests.ts b/tests/property/candid_rpc/functional_api/canister_methods/http_request/test/generate_tests.ts similarity index 84% rename from tests/property/candid_rpc/functional_syntax/canister_methods/http_request/test/generate_tests.ts rename to tests/property/candid_rpc/functional_api/canister_methods/http_request/test/generate_tests.ts index cc66fcf5ca..28b9df4f00 100644 --- a/tests/property/candid_rpc/functional_syntax/canister_methods/http_request/test/generate_tests.ts +++ b/tests/property/candid_rpc/functional_api/canister_methods/http_request/test/generate_tests.ts @@ -1,8 +1,8 @@ import { HttpRequest, HttpResponse } from 'azle/experimental'; -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { HttpResponseAgentResponseValue } from 'azle/property_tests/arbitraries/http/response_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { HttpResponseAgentResponseValue } from 'azle/test/property/arbitraries/http/response_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; import { fletch } from './fletch'; diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/http_request/test/test.ts b/tests/property/candid_rpc/functional_api/canister_methods/http_request/test/test.ts similarity index 65% rename from tests/property/candid_rpc/functional_syntax/canister_methods/http_request/test/test.ts rename to tests/property/candid_rpc/functional_api/canister_methods/http_request/test/test.ts index 385747c724..c3144c2255 100644 --- a/tests/property/candid_rpc/functional_syntax/canister_methods/http_request/test/test.ts +++ b/tests/property/candid_rpc/functional_api/canister_methods/http_request/test/test.ts @@ -1,14 +1,14 @@ import { HttpRequest } from 'azle/experimental'; -import { runPropTests } from 'azle/property_tests'; -import { RecordArb } from 'azle/property_tests/arbitraries/candid/constructed/record_arb'; +import { runPropTests } from 'azle/test/property'; +import { RecordArb } from 'azle/test/property/arbitraries/candid/constructed/record_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { HttpRequestArb } from 'azle/property_tests/arbitraries/http/request_arb'; -import { HttpResponseArb } from 'azle/property_tests/arbitraries/http/response_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { HttpRequestArb } from 'azle/test/property/arbitraries/http/request_arb'; +import { HttpResponseArb } from 'azle/test/property/arbitraries/http/response_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/http_request/tsconfig.json b/tests/property/candid_rpc/functional_api/canister_methods/http_request/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/canister_methods/http_request/tsconfig.json rename to tests/property/candid_rpc/functional_api/canister_methods/http_request/tsconfig.json diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/http_request_update/dfx.json b/tests/property/candid_rpc/functional_api/canister_methods/http_request_update/dfx.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/canister_methods/http_request_update/dfx.json rename to tests/property/candid_rpc/functional_api/canister_methods/http_request_update/dfx.json diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/http_request_update/package-lock.json b/tests/property/candid_rpc/functional_api/canister_methods/http_request_update/package-lock.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/canister_methods/http_request_update/package-lock.json rename to tests/property/candid_rpc/functional_api/canister_methods/http_request_update/package-lock.json diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/http_request_update/package.json b/tests/property/candid_rpc/functional_api/canister_methods/http_request_update/package.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/canister_methods/http_request_update/package.json rename to tests/property/candid_rpc/functional_api/canister_methods/http_request_update/package.json diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/http_request_update/test/fletch.ts b/tests/property/candid_rpc/functional_api/canister_methods/http_request_update/test/fletch.ts similarity index 100% rename from tests/property/candid_rpc/functional_syntax/canister_methods/http_request_update/test/fletch.ts rename to tests/property/candid_rpc/functional_api/canister_methods/http_request_update/test/fletch.ts diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/http_request_update/test/generate_body.ts b/tests/property/candid_rpc/functional_api/canister_methods/http_request_update/test/generate_body.ts similarity index 94% rename from tests/property/candid_rpc/functional_syntax/canister_methods/http_request_update/test/generate_body.ts rename to tests/property/candid_rpc/functional_api/canister_methods/http_request_update/test/generate_body.ts index 9eb54a1e56..3696c1c196 100644 --- a/tests/property/candid_rpc/functional_syntax/canister_methods/http_request_update/test/generate_body.ts +++ b/tests/property/candid_rpc/functional_api/canister_methods/http_request_update/test/generate_body.ts @@ -1,7 +1,7 @@ import { HttpRequest } from 'azle/experimental'; -import { Named } from 'azle/property_tests'; -import { CandidReturnType } from 'azle/property_tests/arbitraries/candid/candid_return_type_arb'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; +import { Named } from 'azle/test/property'; +import { CandidReturnType } from 'azle/test/property/arbitraries/candid/candid_return_type_arb'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; export function generateBody( namedParams: Named>[], diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/http_request_update/test/generate_tests.ts b/tests/property/candid_rpc/functional_api/canister_methods/http_request_update/test/generate_tests.ts similarity index 87% rename from tests/property/candid_rpc/functional_syntax/canister_methods/http_request_update/test/generate_tests.ts rename to tests/property/candid_rpc/functional_api/canister_methods/http_request_update/test/generate_tests.ts index edbe45fb6e..7b0a90a19b 100644 --- a/tests/property/candid_rpc/functional_syntax/canister_methods/http_request_update/test/generate_tests.ts +++ b/tests/property/candid_rpc/functional_api/canister_methods/http_request_update/test/generate_tests.ts @@ -1,8 +1,8 @@ import { HttpRequest, HttpResponse } from 'azle/experimental'; -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { HttpResponseAgentResponseValue } from 'azle/property_tests/arbitraries/http/response_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { HttpResponseAgentResponseValue } from 'azle/test/property/arbitraries/http/response_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; import { fletch } from './fletch'; diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/http_request_update/test/test.ts b/tests/property/candid_rpc/functional_api/canister_methods/http_request_update/test/test.ts similarity index 76% rename from tests/property/candid_rpc/functional_syntax/canister_methods/http_request_update/test/test.ts rename to tests/property/candid_rpc/functional_api/canister_methods/http_request_update/test/test.ts index 13997ef264..e91cc281c6 100644 --- a/tests/property/candid_rpc/functional_syntax/canister_methods/http_request_update/test/test.ts +++ b/tests/property/candid_rpc/functional_api/canister_methods/http_request_update/test/test.ts @@ -1,15 +1,15 @@ import { HttpRequest } from 'azle/experimental'; -import { runPropTests } from 'azle/property_tests'; -import { RecordArb } from 'azle/property_tests/arbitraries/candid/constructed/record_arb'; +import { runPropTests } from 'azle/test/property'; +import { RecordArb } from 'azle/test/property/arbitraries/candid/constructed/record_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethod } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { UpdateMethodArb } from 'azle/property_tests/arbitraries/canister_methods/update_method_arb'; -import { HttpRequestArb } from 'azle/property_tests/arbitraries/http/request_arb'; -import { HttpResponseArb } from 'azle/property_tests/arbitraries/http/response_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethod } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { UpdateMethodArb } from 'azle/test/property/arbitraries/canister_methods/update_method_arb'; +import { HttpRequestArb } from 'azle/test/property/arbitraries/http/request_arb'; +import { HttpResponseArb } from 'azle/test/property/arbitraries/http/response_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/http_request_update/tsconfig.json b/tests/property/candid_rpc/functional_api/canister_methods/http_request_update/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/canister_methods/http_request_update/tsconfig.json rename to tests/property/candid_rpc/functional_api/canister_methods/http_request_update/tsconfig.json diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/init/dfx.json b/tests/property/candid_rpc/functional_api/canister_methods/init/dfx.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/canister_methods/init/dfx.json rename to tests/property/candid_rpc/functional_api/canister_methods/init/dfx.json diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/init/package-lock.json b/tests/property/candid_rpc/functional_api/canister_methods/init/package-lock.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/canister_methods/init/package-lock.json rename to tests/property/candid_rpc/functional_api/canister_methods/init/package-lock.json diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/init/package.json b/tests/property/candid_rpc/functional_api/canister_methods/init/package.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/canister_methods/init/package.json rename to tests/property/candid_rpc/functional_api/canister_methods/init/package.json diff --git a/tests/property/candid_rpc/functional_api/canister_methods/init/test/generate_callable_method_body.ts b/tests/property/candid_rpc/functional_api/canister_methods/init/test/generate_callable_method_body.ts new file mode 100644 index 0000000000..b789583aa7 --- /dev/null +++ b/tests/property/candid_rpc/functional_api/canister_methods/init/test/generate_callable_method_body.ts @@ -0,0 +1,10 @@ +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { CorrespondingJSType } from 'azle/test/property/arbitraries/candid/corresponding_js_type'; + +export function generateBody( + _namedParams: Named>[], + returnType: CandidValueAndMeta +): string { + return `return ${returnType.src.valueLiteral}`; +} diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/init/test/generate_init_body.ts b/tests/property/candid_rpc/functional_api/canister_methods/init/test/generate_init_body.ts similarity index 56% rename from tests/property/candid_rpc/class_syntax/canister_methods/init/test/generate_init_body.ts rename to tests/property/candid_rpc/functional_api/canister_methods/init/test/generate_init_body.ts index d05ca5d40d..e9f182e773 100644 --- a/tests/property/candid_rpc/class_syntax/canister_methods/init/test/generate_init_body.ts +++ b/tests/property/candid_rpc/functional_api/canister_methods/init/test/generate_init_body.ts @@ -1,7 +1,7 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { CorrespondingJSType } from 'azle/property_tests/arbitraries/candid/corresponding_js_type'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { CorrespondingJSType } from 'azle/test/property/arbitraries/candid/corresponding_js_type'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParams: Named>[] diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/init/test/generate_tests.ts b/tests/property/candid_rpc/functional_api/canister_methods/init/test/generate_tests.ts similarity index 65% rename from tests/property/candid_rpc/class_syntax/canister_methods/init/test/generate_tests.ts rename to tests/property/candid_rpc/functional_api/canister_methods/init/test/generate_tests.ts index 3d2c072716..7cc3865499 100644 --- a/tests/property/candid_rpc/class_syntax/canister_methods/init/test/generate_tests.ts +++ b/tests/property/candid_rpc/functional_api/canister_methods/init/test/generate_tests.ts @@ -1,7 +1,7 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { CorrespondingJSType } from 'azle/property_tests/arbitraries/candid/corresponding_js_type'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { CorrespondingJSType } from 'azle/test/property/arbitraries/candid/corresponding_js_type'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( _functionName: string, diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/init/test/test.ts b/tests/property/candid_rpc/functional_api/canister_methods/init/test/test.ts similarity index 82% rename from tests/property/candid_rpc/functional_syntax/canister_methods/init/test/test.ts rename to tests/property/candid_rpc/functional_api/canister_methods/init/test/test.ts index f27a917ea3..a64d7d5c75 100644 --- a/tests/property/candid_rpc/functional_syntax/canister_methods/init/test/test.ts +++ b/tests/property/candid_rpc/functional_api/canister_methods/init/test/test.ts @@ -1,18 +1,18 @@ -import { runPropTests } from 'azle/property_tests'; -import { CandidReturnTypeArb } from 'azle/property_tests/arbitraries/candid/candid_return_type_arb'; -import { CandidValueAndMetaArb } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { CorrespondingJSType } from 'azle/property_tests/arbitraries/candid/corresponding_js_type'; +import { runPropTests } from 'azle/test/property'; +import { CandidReturnTypeArb } from 'azle/test/property/arbitraries/candid/candid_return_type_arb'; +import { CandidValueAndMetaArb } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { CorrespondingJSType } from 'azle/test/property/arbitraries/candid/corresponding_js_type'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { InitMethodArb } from 'azle/property_tests/arbitraries/canister_methods/init_method_arb'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { InitMethodArb } from 'azle/test/property/arbitraries/canister_methods/init_method_arb'; import { QueryMethod, QueryMethodArb -} from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { UpdateMethodArb } from 'azle/property_tests/arbitraries/canister_methods/update_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { UpdateMethodArb } from 'azle/test/property/arbitraries/canister_methods/update_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody as callableMethodBodyGenerator } from './generate_callable_method_body'; diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/init/tsconfig.json b/tests/property/candid_rpc/functional_api/canister_methods/init/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/canister_methods/init/tsconfig.json rename to tests/property/candid_rpc/functional_api/canister_methods/init/tsconfig.json diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/inspect_message/dfx.json b/tests/property/candid_rpc/functional_api/canister_methods/inspect_message/dfx.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/canister_methods/inspect_message/dfx.json rename to tests/property/candid_rpc/functional_api/canister_methods/inspect_message/dfx.json diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/inspect_message/package-lock.json b/tests/property/candid_rpc/functional_api/canister_methods/inspect_message/package-lock.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/canister_methods/inspect_message/package-lock.json rename to tests/property/candid_rpc/functional_api/canister_methods/inspect_message/package-lock.json diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/inspect_message/package.json b/tests/property/candid_rpc/functional_api/canister_methods/inspect_message/package.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/canister_methods/inspect_message/package.json rename to tests/property/candid_rpc/functional_api/canister_methods/inspect_message/package.json diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/inspect_message/test/generate_tests.ts b/tests/property/candid_rpc/functional_api/canister_methods/inspect_message/test/generate_tests.ts similarity index 83% rename from tests/property/candid_rpc/class_syntax/canister_methods/inspect_message/test/generate_tests.ts rename to tests/property/candid_rpc/functional_api/canister_methods/inspect_message/test/generate_tests.ts index aa93ddd6af..ddfeb1baf2 100644 --- a/tests/property/candid_rpc/class_syntax/canister_methods/inspect_message/test/generate_tests.ts +++ b/tests/property/candid_rpc/functional_api/canister_methods/inspect_message/test/generate_tests.ts @@ -1,9 +1,9 @@ import { Agent } from '@dfinity/agent'; -import { getActor, Named } from 'azle/property_tests'; -import { CandidReturnType } from 'azle/property_tests/arbitraries/candid/candid_return_type_arb'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { CorrespondingJSType } from 'azle/property_tests/arbitraries/candid/corresponding_js_type'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidReturnType } from 'azle/test/property/arbitraries/candid/candid_return_type_arb'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { CorrespondingJSType } from 'azle/test/property/arbitraries/candid/corresponding_js_type'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; import { InspectMessageBehavior } from './test'; diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/inspect_message/test/test.ts b/tests/property/candid_rpc/functional_api/canister_methods/inspect_message/test/test.ts similarity index 81% rename from tests/property/candid_rpc/functional_syntax/canister_methods/inspect_message/test/test.ts rename to tests/property/candid_rpc/functional_api/canister_methods/inspect_message/test/test.ts index 2279cda06b..9b9acd38ea 100644 --- a/tests/property/candid_rpc/functional_syntax/canister_methods/inspect_message/test/test.ts +++ b/tests/property/candid_rpc/functional_api/canister_methods/inspect_message/test/test.ts @@ -1,16 +1,16 @@ import { Agent } from '@dfinity/agent'; import { createAuthenticatedAgentSync, getPrincipal } from 'azle/dfx'; -import { runPropTests } from 'azle/property_tests'; -import { CandidReturnTypeArb } from 'azle/property_tests/arbitraries/candid/candid_return_type_arb'; -import { CandidValueAndMetaArb } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { CorrespondingJSType } from 'azle/property_tests/arbitraries/candid/corresponding_js_type'; +import { runPropTests } from 'azle/test/property'; +import { CandidReturnTypeArb } from 'azle/test/property/arbitraries/candid/candid_return_type_arb'; +import { CandidValueAndMetaArb } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { CorrespondingJSType } from 'azle/test/property/arbitraries/candid/corresponding_js_type'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { InspectMessageMethodArb } from 'azle/property_tests/arbitraries/canister_methods/inspect_message_method_arb'; -import { UpdateMethodArb } from 'azle/property_tests/arbitraries/canister_methods/update_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { InspectMessageMethodArb } from 'azle/test/property/arbitraries/canister_methods/inspect_message_method_arb'; +import { UpdateMethodArb } from 'azle/test/property/arbitraries/canister_methods/update_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { v4 } from 'uuid'; diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/inspect_message/tsconfig.json b/tests/property/candid_rpc/functional_api/canister_methods/inspect_message/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/canister_methods/inspect_message/tsconfig.json rename to tests/property/candid_rpc/functional_api/canister_methods/inspect_message/tsconfig.json diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/post_upgrade/dfx.json b/tests/property/candid_rpc/functional_api/canister_methods/post_upgrade/dfx.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/canister_methods/post_upgrade/dfx.json rename to tests/property/candid_rpc/functional_api/canister_methods/post_upgrade/dfx.json diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/post_upgrade/package-lock.json b/tests/property/candid_rpc/functional_api/canister_methods/post_upgrade/package-lock.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/canister_methods/post_upgrade/package-lock.json rename to tests/property/candid_rpc/functional_api/canister_methods/post_upgrade/package-lock.json diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/post_upgrade/package.json b/tests/property/candid_rpc/functional_api/canister_methods/post_upgrade/package.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/canister_methods/post_upgrade/package.json rename to tests/property/candid_rpc/functional_api/canister_methods/post_upgrade/package.json diff --git a/tests/property/candid_rpc/functional_api/canister_methods/post_upgrade/test/generate_callable_method_body.ts b/tests/property/candid_rpc/functional_api/canister_methods/post_upgrade/test/generate_callable_method_body.ts new file mode 100644 index 0000000000..b789583aa7 --- /dev/null +++ b/tests/property/candid_rpc/functional_api/canister_methods/post_upgrade/test/generate_callable_method_body.ts @@ -0,0 +1,10 @@ +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { CorrespondingJSType } from 'azle/test/property/arbitraries/candid/corresponding_js_type'; + +export function generateBody( + _namedParams: Named>[], + returnType: CandidValueAndMeta +): string { + return `return ${returnType.src.valueLiteral}`; +} diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/post_upgrade/test/generate_init_method_body.ts b/tests/property/candid_rpc/functional_api/canister_methods/post_upgrade/test/generate_init_method_body.ts similarity index 59% rename from tests/property/candid_rpc/class_syntax/canister_methods/post_upgrade/test/generate_init_method_body.ts rename to tests/property/candid_rpc/functional_api/canister_methods/post_upgrade/test/generate_init_method_body.ts index 11ca50e9ac..4181f5b0d3 100644 --- a/tests/property/candid_rpc/class_syntax/canister_methods/post_upgrade/test/generate_init_method_body.ts +++ b/tests/property/candid_rpc/functional_api/canister_methods/post_upgrade/test/generate_init_method_body.ts @@ -1,7 +1,7 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { CorrespondingJSType } from 'azle/property_tests/arbitraries/candid/corresponding_js_type'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { CorrespondingJSType } from 'azle/test/property/arbitraries/candid/corresponding_js_type'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; import { globalInitVarName } from './global_var_name'; diff --git a/tests/property/candid_rpc/class_syntax/canister_methods/post_upgrade/test/generate_init_tests.ts b/tests/property/candid_rpc/functional_api/canister_methods/post_upgrade/test/generate_init_tests.ts similarity index 71% rename from tests/property/candid_rpc/class_syntax/canister_methods/post_upgrade/test/generate_init_tests.ts rename to tests/property/candid_rpc/functional_api/canister_methods/post_upgrade/test/generate_init_tests.ts index c6633d557b..b6c576d370 100644 --- a/tests/property/candid_rpc/class_syntax/canister_methods/post_upgrade/test/generate_init_tests.ts +++ b/tests/property/candid_rpc/functional_api/canister_methods/post_upgrade/test/generate_init_tests.ts @@ -1,7 +1,7 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { CorrespondingJSType } from 'azle/property_tests/arbitraries/candid/corresponding_js_type'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { CorrespondingJSType } from 'azle/test/property/arbitraries/candid/corresponding_js_type'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( _functionName: string, diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/post_upgrade/test/generate_post_upgrade_method_body.ts b/tests/property/candid_rpc/functional_api/canister_methods/post_upgrade/test/generate_post_upgrade_method_body.ts similarity index 60% rename from tests/property/candid_rpc/functional_syntax/canister_methods/post_upgrade/test/generate_post_upgrade_method_body.ts rename to tests/property/candid_rpc/functional_api/canister_methods/post_upgrade/test/generate_post_upgrade_method_body.ts index 53e2b3d832..f9e4bd9456 100644 --- a/tests/property/candid_rpc/functional_syntax/canister_methods/post_upgrade/test/generate_post_upgrade_method_body.ts +++ b/tests/property/candid_rpc/functional_api/canister_methods/post_upgrade/test/generate_post_upgrade_method_body.ts @@ -1,7 +1,7 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { CorrespondingJSType } from 'azle/property_tests/arbitraries/candid/corresponding_js_type'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { CorrespondingJSType } from 'azle/test/property/arbitraries/candid/corresponding_js_type'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; import { globalPostUpgradeVarName } from './global_var_name'; diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/post_upgrade/test/generate_post_upgrade_tests.ts b/tests/property/candid_rpc/functional_api/canister_methods/post_upgrade/test/generate_post_upgrade_tests.ts similarity index 73% rename from tests/property/candid_rpc/functional_syntax/canister_methods/post_upgrade/test/generate_post_upgrade_tests.ts rename to tests/property/candid_rpc/functional_api/canister_methods/post_upgrade/test/generate_post_upgrade_tests.ts index cafe9558b7..7d9e9ddba4 100644 --- a/tests/property/candid_rpc/functional_syntax/canister_methods/post_upgrade/test/generate_post_upgrade_tests.ts +++ b/tests/property/candid_rpc/functional_api/canister_methods/post_upgrade/test/generate_post_upgrade_tests.ts @@ -1,7 +1,7 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { CorrespondingJSType } from 'azle/property_tests/arbitraries/candid/corresponding_js_type'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { CorrespondingJSType } from 'azle/test/property/arbitraries/candid/corresponding_js_type'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( _functionName: string, diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/post_upgrade/test/global_var_name.ts b/tests/property/candid_rpc/functional_api/canister_methods/post_upgrade/test/global_var_name.ts similarity index 100% rename from tests/property/candid_rpc/functional_syntax/canister_methods/post_upgrade/test/global_var_name.ts rename to tests/property/candid_rpc/functional_api/canister_methods/post_upgrade/test/global_var_name.ts diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/post_upgrade/test/test.ts b/tests/property/candid_rpc/functional_api/canister_methods/post_upgrade/test/test.ts similarity index 88% rename from tests/property/candid_rpc/functional_syntax/canister_methods/post_upgrade/test/test.ts rename to tests/property/candid_rpc/functional_api/canister_methods/post_upgrade/test/test.ts index e7d57053c8..7994de0dce 100644 --- a/tests/property/candid_rpc/functional_syntax/canister_methods/post_upgrade/test/test.ts +++ b/tests/property/candid_rpc/functional_api/canister_methods/post_upgrade/test/test.ts @@ -1,30 +1,30 @@ -import { runPropTests } from 'azle/property_tests'; -import { candidDefinitionArb } from 'azle/property_tests/arbitraries/candid/candid_definition_arb'; +import { runPropTests } from 'azle/test/property'; +import { candidDefinitionArb } from 'azle/test/property/arbitraries/candid/candid_definition_arb'; import { CandidDefinition, WithShapes -} from 'azle/property_tests/arbitraries/candid/candid_definition_arb/types'; -import { CandidReturnTypeArb } from 'azle/property_tests/arbitraries/candid/candid_return_type_arb'; +} from 'azle/test/property/arbitraries/candid/candid_definition_arb/types'; +import { CandidReturnTypeArb } from 'azle/test/property/arbitraries/candid/candid_return_type_arb'; import { CandidValueAndMeta, CandidValueAndMetaArb -} from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { definitionAndValueToValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb_generator'; -import { CandidValueArb } from 'azle/property_tests/arbitraries/candid/candid_values_arb'; -import { CorrespondingJSType } from 'azle/property_tests/arbitraries/candid/corresponding_js_type'; +} from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { definitionAndValueToValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb_generator'; +import { CandidValueArb } from 'azle/test/property/arbitraries/candid/candid_values_arb'; +import { CorrespondingJSType } from 'azle/test/property/arbitraries/candid/corresponding_js_type'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { InitMethodArb } from 'azle/property_tests/arbitraries/canister_methods/init_method_arb'; -import { PostUpgradeMethodArb } from 'azle/property_tests/arbitraries/canister_methods/post_upgrade_arb'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { InitMethodArb } from 'azle/test/property/arbitraries/canister_methods/init_method_arb'; +import { PostUpgradeMethodArb } from 'azle/test/property/arbitraries/canister_methods/post_upgrade_arb'; import { QueryMethod, QueryMethodArb -} from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { UpdateMethodArb } from 'azle/property_tests/arbitraries/canister_methods/update_method_arb'; -import { DEFAULT_VALUE_MAX_DEPTH } from 'azle/property_tests/arbitraries/config'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { UpdateMethodArb } from 'azle/test/property/arbitraries/canister_methods/update_method_arb'; +import { DEFAULT_VALUE_MAX_DEPTH } from 'azle/test/property/arbitraries/config'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody as callableMethodBodyGenerator } from './generate_callable_method_body'; diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/post_upgrade/tsconfig.json b/tests/property/candid_rpc/functional_api/canister_methods/post_upgrade/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/canister_methods/post_upgrade/tsconfig.json rename to tests/property/candid_rpc/functional_api/canister_methods/post_upgrade/tsconfig.json diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/pre_upgrade/dfx.json b/tests/property/candid_rpc/functional_api/canister_methods/pre_upgrade/dfx.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/canister_methods/pre_upgrade/dfx.json rename to tests/property/candid_rpc/functional_api/canister_methods/pre_upgrade/dfx.json diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/pre_upgrade/package-lock.json b/tests/property/candid_rpc/functional_api/canister_methods/pre_upgrade/package-lock.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/canister_methods/pre_upgrade/package-lock.json rename to tests/property/candid_rpc/functional_api/canister_methods/pre_upgrade/package-lock.json diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/pre_upgrade/package.json b/tests/property/candid_rpc/functional_api/canister_methods/pre_upgrade/package.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/canister_methods/pre_upgrade/package.json rename to tests/property/candid_rpc/functional_api/canister_methods/pre_upgrade/package.json diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/pre_upgrade/test/test.ts b/tests/property/candid_rpc/functional_api/canister_methods/pre_upgrade/test/test.ts similarity index 81% rename from tests/property/candid_rpc/functional_syntax/canister_methods/pre_upgrade/test/test.ts rename to tests/property/candid_rpc/functional_api/canister_methods/pre_upgrade/test/test.ts index 8b17e7b564..11c82720cd 100644 --- a/tests/property/candid_rpc/functional_syntax/canister_methods/pre_upgrade/test/test.ts +++ b/tests/property/candid_rpc/functional_api/canister_methods/pre_upgrade/test/test.ts @@ -1,19 +1,19 @@ -import { getActor, runPropTests } from 'azle/property_tests'; -import { CandidReturnTypeArb } from 'azle/property_tests/arbitraries/candid/candid_return_type_arb'; -import { CandidValueAndMetaArb } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { CorrespondingJSType } from 'azle/property_tests/arbitraries/candid/corresponding_js_type'; +import { getActor, runPropTests } from 'azle/test/property'; +import { CandidReturnTypeArb } from 'azle/test/property/arbitraries/candid/candid_return_type_arb'; +import { CandidValueAndMetaArb } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { CorrespondingJSType } from 'azle/test/property/arbitraries/candid/corresponding_js_type'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { PreUpgradeMethodArb } from 'azle/property_tests/arbitraries/canister_methods/pre_upgrade_method_arb'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { PreUpgradeMethodArb } from 'azle/test/property/arbitraries/canister_methods/pre_upgrade_method_arb'; import { QueryMethod, QueryMethodArb -} from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { UpdateMethodArb } from 'azle/property_tests/arbitraries/canister_methods/update_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; -import { AzleResult, testEquality } from 'azle/property_tests/test'; +} from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { UpdateMethodArb } from 'azle/test/property/arbitraries/canister_methods/update_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; +import { AzleResult, testEquality } from 'azle/test/property/test'; import fc from 'fast-check'; const api: Api = 'functional'; diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/pre_upgrade/tsconfig.json b/tests/property/candid_rpc/functional_api/canister_methods/pre_upgrade/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/canister_methods/pre_upgrade/tsconfig.json rename to tests/property/candid_rpc/functional_api/canister_methods/pre_upgrade/tsconfig.json diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/query/dfx.json b/tests/property/candid_rpc/functional_api/canister_methods/query/dfx.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/canister_methods/query/dfx.json rename to tests/property/candid_rpc/functional_api/canister_methods/query/dfx.json diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/query/package-lock.json b/tests/property/candid_rpc/functional_api/canister_methods/query/package-lock.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/canister_methods/query/package-lock.json rename to tests/property/candid_rpc/functional_api/canister_methods/query/package-lock.json diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/query/package.json b/tests/property/candid_rpc/functional_api/canister_methods/query/package.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/canister_methods/query/package.json rename to tests/property/candid_rpc/functional_api/canister_methods/query/package.json diff --git a/tests/property/candid_rpc/functional_api/canister_methods/query/test/generate_body.ts b/tests/property/candid_rpc/functional_api/canister_methods/query/test/generate_body.ts new file mode 100644 index 0000000000..f1bc623693 --- /dev/null +++ b/tests/property/candid_rpc/functional_api/canister_methods/query/test/generate_body.ts @@ -0,0 +1,18 @@ +import { Named } from 'azle/test/property'; +import { CandidReturnType } from 'azle/test/property/arbitraries/candid/candid_return_type_arb'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { CorrespondingJSType } from 'azle/test/property/arbitraries/candid/corresponding_js_type'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; + +export function generateBody( + namedParams: Named>[], + returnType: CandidValueAndMeta +): string { + const paramsAreCorrectlyOrdered = areParamsCorrectlyOrdered(namedParams); + + return ` + ${paramsAreCorrectlyOrdered} + + return ${returnType.src.valueLiteral} + `; +} diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/query/test/generate_tests.ts b/tests/property/candid_rpc/functional_api/canister_methods/query/test/generate_tests.ts similarity index 63% rename from tests/property/candid_rpc/functional_syntax/canister_methods/query/test/generate_tests.ts rename to tests/property/candid_rpc/functional_api/canister_methods/query/test/generate_tests.ts index 3b11b5427c..3f03f5b327 100644 --- a/tests/property/candid_rpc/functional_syntax/canister_methods/query/test/generate_tests.ts +++ b/tests/property/candid_rpc/functional_api/canister_methods/query/test/generate_tests.ts @@ -1,8 +1,8 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidReturnType } from 'azle/property_tests/arbitraries/candid/candid_return_type_arb'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { CorrespondingJSType } from 'azle/property_tests/arbitraries/candid/corresponding_js_type'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidReturnType } from 'azle/test/property/arbitraries/candid/candid_return_type_arb'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { CorrespondingJSType } from 'azle/test/property/arbitraries/candid/corresponding_js_type'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/query/test/test.ts b/tests/property/candid_rpc/functional_api/canister_methods/query/test/test.ts similarity index 61% rename from tests/property/candid_rpc/functional_syntax/canister_methods/query/test/test.ts rename to tests/property/candid_rpc/functional_api/canister_methods/query/test/test.ts index c06e429ec2..22ba45cda9 100644 --- a/tests/property/candid_rpc/functional_syntax/canister_methods/query/test/test.ts +++ b/tests/property/candid_rpc/functional_api/canister_methods/query/test/test.ts @@ -1,12 +1,12 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { CandidReturnTypeArb } from 'azle/property_tests/arbitraries/candid/candid_return_type_arb'; -import { CandidValueAndMetaArb } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { CandidReturnTypeArb } from 'azle/test/property/arbitraries/candid/candid_return_type_arb'; +import { CandidValueAndMetaArb } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/query/tsconfig.json b/tests/property/candid_rpc/functional_api/canister_methods/query/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/canister_methods/query/tsconfig.json rename to tests/property/candid_rpc/functional_api/canister_methods/query/tsconfig.json diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/update/dfx.json b/tests/property/candid_rpc/functional_api/canister_methods/update/dfx.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/canister_methods/update/dfx.json rename to tests/property/candid_rpc/functional_api/canister_methods/update/dfx.json diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/update/package-lock.json b/tests/property/candid_rpc/functional_api/canister_methods/update/package-lock.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/canister_methods/update/package-lock.json rename to tests/property/candid_rpc/functional_api/canister_methods/update/package-lock.json diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/update/package.json b/tests/property/candid_rpc/functional_api/canister_methods/update/package.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/canister_methods/update/package.json rename to tests/property/candid_rpc/functional_api/canister_methods/update/package.json diff --git a/tests/property/candid_rpc/functional_api/canister_methods/update/test/generate_body.ts b/tests/property/candid_rpc/functional_api/canister_methods/update/test/generate_body.ts new file mode 100644 index 0000000000..f1bc623693 --- /dev/null +++ b/tests/property/candid_rpc/functional_api/canister_methods/update/test/generate_body.ts @@ -0,0 +1,18 @@ +import { Named } from 'azle/test/property'; +import { CandidReturnType } from 'azle/test/property/arbitraries/candid/candid_return_type_arb'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { CorrespondingJSType } from 'azle/test/property/arbitraries/candid/corresponding_js_type'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; + +export function generateBody( + namedParams: Named>[], + returnType: CandidValueAndMeta +): string { + const paramsAreCorrectlyOrdered = areParamsCorrectlyOrdered(namedParams); + + return ` + ${paramsAreCorrectlyOrdered} + + return ${returnType.src.valueLiteral} + `; +} diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/update/test/generate_tests.ts b/tests/property/candid_rpc/functional_api/canister_methods/update/test/generate_tests.ts similarity index 63% rename from tests/property/candid_rpc/functional_syntax/canister_methods/update/test/generate_tests.ts rename to tests/property/candid_rpc/functional_api/canister_methods/update/test/generate_tests.ts index b922deb88a..f822f5fefe 100644 --- a/tests/property/candid_rpc/functional_syntax/canister_methods/update/test/generate_tests.ts +++ b/tests/property/candid_rpc/functional_api/canister_methods/update/test/generate_tests.ts @@ -1,8 +1,8 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidReturnType } from 'azle/property_tests/arbitraries/candid/candid_return_type_arb'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { CorrespondingJSType } from 'azle/property_tests/arbitraries/candid/corresponding_js_type'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidReturnType } from 'azle/test/property/arbitraries/candid/candid_return_type_arb'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { CorrespondingJSType } from 'azle/test/property/arbitraries/candid/corresponding_js_type'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/update/test/test.ts b/tests/property/candid_rpc/functional_api/canister_methods/update/test/test.ts similarity index 59% rename from tests/property/candid_rpc/functional_syntax/canister_methods/update/test/test.ts rename to tests/property/candid_rpc/functional_api/canister_methods/update/test/test.ts index b0dec1a1f8..2fdb797746 100644 --- a/tests/property/candid_rpc/functional_syntax/canister_methods/update/test/test.ts +++ b/tests/property/candid_rpc/functional_api/canister_methods/update/test/test.ts @@ -1,12 +1,12 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { CandidReturnTypeArb } from 'azle/property_tests/arbitraries/candid/candid_return_type_arb'; -import { CandidValueAndMetaArb } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { CandidReturnTypeArb } from 'azle/test/property/arbitraries/candid/candid_return_type_arb'; +import { CandidValueAndMetaArb } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { UpdateMethodArb } from 'azle/property_tests/arbitraries/canister_methods/update_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { UpdateMethodArb } from 'azle/test/property/arbitraries/canister_methods/update_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/update/tsconfig.json b/tests/property/candid_rpc/functional_api/canister_methods/update/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/canister_methods/update/tsconfig.json rename to tests/property/candid_rpc/functional_api/canister_methods/update/tsconfig.json diff --git a/tests/property/candid_rpc/functional_syntax/float32/dfx.json b/tests/property/candid_rpc/functional_api/float32/dfx.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/float32/dfx.json rename to tests/property/candid_rpc/functional_api/float32/dfx.json diff --git a/tests/property/candid_rpc/functional_syntax/float32/package-lock.json b/tests/property/candid_rpc/functional_api/float32/package-lock.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/float32/package-lock.json rename to tests/property/candid_rpc/functional_api/float32/package-lock.json diff --git a/tests/property/candid_rpc/functional_syntax/float32/package.json b/tests/property/candid_rpc/functional_api/float32/package.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/float32/package.json rename to tests/property/candid_rpc/functional_api/float32/package.json diff --git a/tests/property/candid_rpc/class_syntax/float32/test/generate_body.ts b/tests/property/candid_rpc/functional_api/float32/test/generate_body.ts similarity index 75% rename from tests/property/candid_rpc/class_syntax/float32/test/generate_body.ts rename to tests/property/candid_rpc/functional_api/float32/test/generate_body.ts index be4f256104..40e429d11c 100644 --- a/tests/property/candid_rpc/class_syntax/float32/test/generate_body.ts +++ b/tests/property/candid_rpc/functional_api/float32/test/generate_body.ts @@ -1,6 +1,6 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParamFloat32s: Named>[], diff --git a/tests/property/candid_rpc/class_syntax/float32/test/generate_tests.ts b/tests/property/candid_rpc/functional_api/float32/test/generate_tests.ts similarity index 79% rename from tests/property/candid_rpc/class_syntax/float32/test/generate_tests.ts rename to tests/property/candid_rpc/functional_api/float32/test/generate_tests.ts index 44bbc97595..8d06ffb8c1 100644 --- a/tests/property/candid_rpc/class_syntax/float32/test/generate_tests.ts +++ b/tests/property/candid_rpc/functional_api/float32/test/generate_tests.ts @@ -1,6 +1,6 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/functional_syntax/float32/test/test.ts b/tests/property/candid_rpc/functional_api/float32/test/test.ts similarity index 64% rename from tests/property/candid_rpc/functional_syntax/float32/test/test.ts rename to tests/property/candid_rpc/functional_api/float32/test/test.ts index 92ea855d21..38f2c17788 100644 --- a/tests/property/candid_rpc/functional_syntax/float32/test/test.ts +++ b/tests/property/candid_rpc/functional_api/float32/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { Float32Arb } from 'azle/property_tests/arbitraries/candid/primitive/floats/float32_arb'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { Float32Arb } from 'azle/test/property/arbitraries/candid/primitive/floats/float32_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/functional_syntax/float32/tsconfig.json b/tests/property/candid_rpc/functional_api/float32/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/float32/tsconfig.json rename to tests/property/candid_rpc/functional_api/float32/tsconfig.json diff --git a/tests/property/candid_rpc/functional_syntax/float64/dfx.json b/tests/property/candid_rpc/functional_api/float64/dfx.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/float64/dfx.json rename to tests/property/candid_rpc/functional_api/float64/dfx.json diff --git a/tests/property/candid_rpc/functional_syntax/float64/package-lock.json b/tests/property/candid_rpc/functional_api/float64/package-lock.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/float64/package-lock.json rename to tests/property/candid_rpc/functional_api/float64/package-lock.json diff --git a/tests/property/candid_rpc/functional_syntax/float64/package.json b/tests/property/candid_rpc/functional_api/float64/package.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/float64/package.json rename to tests/property/candid_rpc/functional_api/float64/package.json diff --git a/tests/property/candid_rpc/class_syntax/float64/test/generate_body.ts b/tests/property/candid_rpc/functional_api/float64/test/generate_body.ts similarity index 76% rename from tests/property/candid_rpc/class_syntax/float64/test/generate_body.ts rename to tests/property/candid_rpc/functional_api/float64/test/generate_body.ts index f3fc35fa4b..2bf26aa450 100644 --- a/tests/property/candid_rpc/class_syntax/float64/test/generate_body.ts +++ b/tests/property/candid_rpc/functional_api/float64/test/generate_body.ts @@ -1,6 +1,6 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParamFloat64s: Named>[], diff --git a/tests/property/candid_rpc/class_syntax/float64/test/generate_tests.ts b/tests/property/candid_rpc/functional_api/float64/test/generate_tests.ts similarity index 80% rename from tests/property/candid_rpc/class_syntax/float64/test/generate_tests.ts rename to tests/property/candid_rpc/functional_api/float64/test/generate_tests.ts index cd5d42f3fe..a1b96c9d69 100644 --- a/tests/property/candid_rpc/class_syntax/float64/test/generate_tests.ts +++ b/tests/property/candid_rpc/functional_api/float64/test/generate_tests.ts @@ -1,6 +1,6 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/functional_syntax/float64/test/test.ts b/tests/property/candid_rpc/functional_api/float64/test/test.ts similarity index 64% rename from tests/property/candid_rpc/functional_syntax/float64/test/test.ts rename to tests/property/candid_rpc/functional_api/float64/test/test.ts index d8748be7da..b18cf826f4 100644 --- a/tests/property/candid_rpc/functional_syntax/float64/test/test.ts +++ b/tests/property/candid_rpc/functional_api/float64/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { Float64Arb } from 'azle/property_tests/arbitraries/candid/primitive/floats/float64_arb'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { Float64Arb } from 'azle/test/property/arbitraries/candid/primitive/floats/float64_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/functional_syntax/float64/tsconfig.json b/tests/property/candid_rpc/functional_api/float64/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/float64/tsconfig.json rename to tests/property/candid_rpc/functional_api/float64/tsconfig.json diff --git a/tests/property/candid_rpc/functional_syntax/func/dfx.json b/tests/property/candid_rpc/functional_api/func/dfx.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/func/dfx.json rename to tests/property/candid_rpc/functional_api/func/dfx.json diff --git a/tests/property/candid_rpc/functional_syntax/func/package-lock.json b/tests/property/candid_rpc/functional_api/func/package-lock.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/func/package-lock.json rename to tests/property/candid_rpc/functional_api/func/package-lock.json diff --git a/tests/property/candid_rpc/functional_syntax/func/package.json b/tests/property/candid_rpc/functional_api/func/package.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/func/package.json rename to tests/property/candid_rpc/functional_api/func/package.json diff --git a/tests/property/candid_rpc/class_syntax/func/test/generate_body.ts b/tests/property/candid_rpc/functional_api/func/test/generate_body.ts similarity index 77% rename from tests/property/candid_rpc/class_syntax/func/test/generate_body.ts rename to tests/property/candid_rpc/functional_api/func/test/generate_body.ts index 9311c41d89..13b2df4ee3 100644 --- a/tests/property/candid_rpc/class_syntax/func/test/generate_body.ts +++ b/tests/property/candid_rpc/functional_api/func/test/generate_body.ts @@ -1,7 +1,7 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { Func } from 'azle/property_tests/arbitraries/candid/reference/func_arb'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { Func } from 'azle/test/property/arbitraries/candid/reference/func_arb'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParamFuncs: Named>[], diff --git a/tests/property/candid_rpc/functional_syntax/func/test/generate_tests.ts b/tests/property/candid_rpc/functional_api/func/test/generate_tests.ts similarity index 71% rename from tests/property/candid_rpc/functional_syntax/func/test/generate_tests.ts rename to tests/property/candid_rpc/functional_api/func/test/generate_tests.ts index 76a9739ccb..6f43b31d48 100644 --- a/tests/property/candid_rpc/functional_syntax/func/test/generate_tests.ts +++ b/tests/property/candid_rpc/functional_api/func/test/generate_tests.ts @@ -1,7 +1,7 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { Func } from 'azle/property_tests/arbitraries/candid/reference/func_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { Func } from 'azle/test/property/arbitraries/candid/reference/func_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/functional_syntax/func/test/test.ts b/tests/property/candid_rpc/functional_api/func/test/test.ts similarity index 66% rename from tests/property/candid_rpc/functional_syntax/func/test/test.ts rename to tests/property/candid_rpc/functional_api/func/test/test.ts index 58d71c3ebf..7e8596a816 100644 --- a/tests/property/candid_rpc/functional_syntax/func/test/test.ts +++ b/tests/property/candid_rpc/functional_api/func/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { FuncArb } from 'azle/property_tests/arbitraries/candid/reference/func_arb'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { FuncArb } from 'azle/test/property/arbitraries/candid/reference/func_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/functional_syntax/func/tsconfig.json b/tests/property/candid_rpc/functional_api/func/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/func/tsconfig.json rename to tests/property/candid_rpc/functional_api/func/tsconfig.json diff --git a/tests/property/candid_rpc/functional_syntax/int/dfx.json b/tests/property/candid_rpc/functional_api/int/dfx.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/int/dfx.json rename to tests/property/candid_rpc/functional_api/int/dfx.json diff --git a/tests/property/candid_rpc/functional_syntax/int/package-lock.json b/tests/property/candid_rpc/functional_api/int/package-lock.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/int/package-lock.json rename to tests/property/candid_rpc/functional_api/int/package-lock.json diff --git a/tests/property/candid_rpc/functional_syntax/int/package.json b/tests/property/candid_rpc/functional_api/int/package.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/int/package.json rename to tests/property/candid_rpc/functional_api/int/package.json diff --git a/tests/property/candid_rpc/class_syntax/int/test/generate_body.ts b/tests/property/candid_rpc/functional_api/int/test/generate_body.ts similarity index 73% rename from tests/property/candid_rpc/class_syntax/int/test/generate_body.ts rename to tests/property/candid_rpc/functional_api/int/test/generate_body.ts index 213bb0ae99..20f5dfb198 100644 --- a/tests/property/candid_rpc/class_syntax/int/test/generate_body.ts +++ b/tests/property/candid_rpc/functional_api/int/test/generate_body.ts @@ -1,6 +1,6 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParamInts: Named>[], diff --git a/tests/property/candid_rpc/functional_syntax/int/test/generate_tests.ts b/tests/property/candid_rpc/functional_api/int/test/generate_tests.ts similarity index 78% rename from tests/property/candid_rpc/functional_syntax/int/test/generate_tests.ts rename to tests/property/candid_rpc/functional_api/int/test/generate_tests.ts index 4e58696822..d371cab3d8 100644 --- a/tests/property/candid_rpc/functional_syntax/int/test/generate_tests.ts +++ b/tests/property/candid_rpc/functional_api/int/test/generate_tests.ts @@ -1,6 +1,6 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/functional_syntax/int/test/test.ts b/tests/property/candid_rpc/functional_api/int/test/test.ts similarity index 64% rename from tests/property/candid_rpc/functional_syntax/int/test/test.ts rename to tests/property/candid_rpc/functional_api/int/test/test.ts index abc133cf7f..43cc3913e6 100644 --- a/tests/property/candid_rpc/functional_syntax/int/test/test.ts +++ b/tests/property/candid_rpc/functional_api/int/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { IntArb } from 'azle/property_tests/arbitraries/candid/primitive/ints/int_arb'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { IntArb } from 'azle/test/property/arbitraries/candid/primitive/ints/int_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/functional_syntax/int/tsconfig.json b/tests/property/candid_rpc/functional_api/int/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/int/tsconfig.json rename to tests/property/candid_rpc/functional_api/int/tsconfig.json diff --git a/tests/property/candid_rpc/functional_syntax/int16/dfx.json b/tests/property/candid_rpc/functional_api/int16/dfx.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/int16/dfx.json rename to tests/property/candid_rpc/functional_api/int16/dfx.json diff --git a/tests/property/candid_rpc/functional_syntax/int16/package-lock.json b/tests/property/candid_rpc/functional_api/int16/package-lock.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/int16/package-lock.json rename to tests/property/candid_rpc/functional_api/int16/package-lock.json diff --git a/tests/property/candid_rpc/functional_syntax/int16/package.json b/tests/property/candid_rpc/functional_api/int16/package.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/int16/package.json rename to tests/property/candid_rpc/functional_api/int16/package.json diff --git a/tests/property/candid_rpc/functional_syntax/int16/test/generate_body.ts b/tests/property/candid_rpc/functional_api/int16/test/generate_body.ts similarity index 76% rename from tests/property/candid_rpc/functional_syntax/int16/test/generate_body.ts rename to tests/property/candid_rpc/functional_api/int16/test/generate_body.ts index 0f26a55321..bf8eb93e4e 100644 --- a/tests/property/candid_rpc/functional_syntax/int16/test/generate_body.ts +++ b/tests/property/candid_rpc/functional_api/int16/test/generate_body.ts @@ -1,6 +1,6 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParamInt16s: Named>[], diff --git a/tests/property/candid_rpc/functional_syntax/int16/test/generate_tests.ts b/tests/property/candid_rpc/functional_api/int16/test/generate_tests.ts similarity index 80% rename from tests/property/candid_rpc/functional_syntax/int16/test/generate_tests.ts rename to tests/property/candid_rpc/functional_api/int16/test/generate_tests.ts index a541579499..ca7736f384 100644 --- a/tests/property/candid_rpc/functional_syntax/int16/test/generate_tests.ts +++ b/tests/property/candid_rpc/functional_api/int16/test/generate_tests.ts @@ -1,6 +1,6 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/functional_syntax/int16/test/test.ts b/tests/property/candid_rpc/functional_api/int16/test/test.ts similarity index 64% rename from tests/property/candid_rpc/functional_syntax/int16/test/test.ts rename to tests/property/candid_rpc/functional_api/int16/test/test.ts index b7ad0e11c6..c467206bfc 100644 --- a/tests/property/candid_rpc/functional_syntax/int16/test/test.ts +++ b/tests/property/candid_rpc/functional_api/int16/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { Int16Arb } from 'azle/property_tests/arbitraries/candid/primitive/ints/int16_arb'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { Int16Arb } from 'azle/test/property/arbitraries/candid/primitive/ints/int16_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/functional_syntax/int16/tsconfig.json b/tests/property/candid_rpc/functional_api/int16/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/int16/tsconfig.json rename to tests/property/candid_rpc/functional_api/int16/tsconfig.json diff --git a/tests/property/candid_rpc/functional_syntax/int32/dfx.json b/tests/property/candid_rpc/functional_api/int32/dfx.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/int32/dfx.json rename to tests/property/candid_rpc/functional_api/int32/dfx.json diff --git a/tests/property/candid_rpc/functional_syntax/int32/package-lock.json b/tests/property/candid_rpc/functional_api/int32/package-lock.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/int32/package-lock.json rename to tests/property/candid_rpc/functional_api/int32/package-lock.json diff --git a/tests/property/candid_rpc/functional_syntax/int32/package.json b/tests/property/candid_rpc/functional_api/int32/package.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/int32/package.json rename to tests/property/candid_rpc/functional_api/int32/package.json diff --git a/tests/property/candid_rpc/functional_syntax/int32/test/generate_body.ts b/tests/property/candid_rpc/functional_api/int32/test/generate_body.ts similarity index 76% rename from tests/property/candid_rpc/functional_syntax/int32/test/generate_body.ts rename to tests/property/candid_rpc/functional_api/int32/test/generate_body.ts index fcac9922a5..66c38aae59 100644 --- a/tests/property/candid_rpc/functional_syntax/int32/test/generate_body.ts +++ b/tests/property/candid_rpc/functional_api/int32/test/generate_body.ts @@ -1,6 +1,6 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParamInt32s: Named>[], diff --git a/tests/property/candid_rpc/functional_syntax/int32/test/generate_tests.ts b/tests/property/candid_rpc/functional_api/int32/test/generate_tests.ts similarity index 80% rename from tests/property/candid_rpc/functional_syntax/int32/test/generate_tests.ts rename to tests/property/candid_rpc/functional_api/int32/test/generate_tests.ts index 7e273b9729..aca24d4e9e 100644 --- a/tests/property/candid_rpc/functional_syntax/int32/test/generate_tests.ts +++ b/tests/property/candid_rpc/functional_api/int32/test/generate_tests.ts @@ -1,6 +1,6 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/functional_syntax/int32/test/test.ts b/tests/property/candid_rpc/functional_api/int32/test/test.ts similarity index 64% rename from tests/property/candid_rpc/functional_syntax/int32/test/test.ts rename to tests/property/candid_rpc/functional_api/int32/test/test.ts index a4d9ea85ee..360c0e7ce6 100644 --- a/tests/property/candid_rpc/functional_syntax/int32/test/test.ts +++ b/tests/property/candid_rpc/functional_api/int32/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { Int32Arb } from 'azle/property_tests/arbitraries/candid/primitive/ints/int32_arb'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { Int32Arb } from 'azle/test/property/arbitraries/candid/primitive/ints/int32_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/functional_syntax/int32/tsconfig.json b/tests/property/candid_rpc/functional_api/int32/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/int32/tsconfig.json rename to tests/property/candid_rpc/functional_api/int32/tsconfig.json diff --git a/tests/property/candid_rpc/functional_syntax/int64/dfx.json b/tests/property/candid_rpc/functional_api/int64/dfx.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/int64/dfx.json rename to tests/property/candid_rpc/functional_api/int64/dfx.json diff --git a/tests/property/candid_rpc/functional_syntax/int64/package-lock.json b/tests/property/candid_rpc/functional_api/int64/package-lock.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/int64/package-lock.json rename to tests/property/candid_rpc/functional_api/int64/package-lock.json diff --git a/tests/property/candid_rpc/functional_syntax/int64/package.json b/tests/property/candid_rpc/functional_api/int64/package.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/int64/package.json rename to tests/property/candid_rpc/functional_api/int64/package.json diff --git a/tests/property/candid_rpc/class_syntax/int64/test/generate_body.ts b/tests/property/candid_rpc/functional_api/int64/test/generate_body.ts similarity index 76% rename from tests/property/candid_rpc/class_syntax/int64/test/generate_body.ts rename to tests/property/candid_rpc/functional_api/int64/test/generate_body.ts index a176e72b06..756f0c0432 100644 --- a/tests/property/candid_rpc/class_syntax/int64/test/generate_body.ts +++ b/tests/property/candid_rpc/functional_api/int64/test/generate_body.ts @@ -1,6 +1,6 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParamInt64s: Named>[], diff --git a/tests/property/candid_rpc/class_syntax/int64/test/generate_tests.ts b/tests/property/candid_rpc/functional_api/int64/test/generate_tests.ts similarity index 80% rename from tests/property/candid_rpc/class_syntax/int64/test/generate_tests.ts rename to tests/property/candid_rpc/functional_api/int64/test/generate_tests.ts index 636992ed67..d4c9ee1e05 100644 --- a/tests/property/candid_rpc/class_syntax/int64/test/generate_tests.ts +++ b/tests/property/candid_rpc/functional_api/int64/test/generate_tests.ts @@ -1,6 +1,6 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/functional_syntax/int64/test/test.ts b/tests/property/candid_rpc/functional_api/int64/test/test.ts similarity index 64% rename from tests/property/candid_rpc/functional_syntax/int64/test/test.ts rename to tests/property/candid_rpc/functional_api/int64/test/test.ts index d34a090319..d6f2dd5183 100644 --- a/tests/property/candid_rpc/functional_syntax/int64/test/test.ts +++ b/tests/property/candid_rpc/functional_api/int64/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { Int64Arb } from 'azle/property_tests/arbitraries/candid/primitive/ints/int64_arb'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { Int64Arb } from 'azle/test/property/arbitraries/candid/primitive/ints/int64_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/functional_syntax/int64/tsconfig.json b/tests/property/candid_rpc/functional_api/int64/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/int64/tsconfig.json rename to tests/property/candid_rpc/functional_api/int64/tsconfig.json diff --git a/tests/property/candid_rpc/functional_syntax/int8/dfx.json b/tests/property/candid_rpc/functional_api/int8/dfx.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/int8/dfx.json rename to tests/property/candid_rpc/functional_api/int8/dfx.json diff --git a/tests/property/candid_rpc/functional_syntax/int8/package-lock.json b/tests/property/candid_rpc/functional_api/int8/package-lock.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/int8/package-lock.json rename to tests/property/candid_rpc/functional_api/int8/package-lock.json diff --git a/tests/property/candid_rpc/functional_syntax/int8/package.json b/tests/property/candid_rpc/functional_api/int8/package.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/int8/package.json rename to tests/property/candid_rpc/functional_api/int8/package.json diff --git a/tests/property/candid_rpc/functional_syntax/int8/test/generate_body.ts b/tests/property/candid_rpc/functional_api/int8/test/generate_body.ts similarity index 76% rename from tests/property/candid_rpc/functional_syntax/int8/test/generate_body.ts rename to tests/property/candid_rpc/functional_api/int8/test/generate_body.ts index 030c06a9bc..44d2a1f3af 100644 --- a/tests/property/candid_rpc/functional_syntax/int8/test/generate_body.ts +++ b/tests/property/candid_rpc/functional_api/int8/test/generate_body.ts @@ -1,6 +1,6 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParamInt8s: Named>[], diff --git a/tests/property/candid_rpc/class_syntax/int8/test/generate_tests.ts b/tests/property/candid_rpc/functional_api/int8/test/generate_tests.ts similarity index 80% rename from tests/property/candid_rpc/class_syntax/int8/test/generate_tests.ts rename to tests/property/candid_rpc/functional_api/int8/test/generate_tests.ts index 947d939c1d..2895ddb7b8 100644 --- a/tests/property/candid_rpc/class_syntax/int8/test/generate_tests.ts +++ b/tests/property/candid_rpc/functional_api/int8/test/generate_tests.ts @@ -1,6 +1,6 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/functional_syntax/int8/test/test.ts b/tests/property/candid_rpc/functional_api/int8/test/test.ts similarity index 64% rename from tests/property/candid_rpc/functional_syntax/int8/test/test.ts rename to tests/property/candid_rpc/functional_api/int8/test/test.ts index 1c445d87d6..88aede3395 100644 --- a/tests/property/candid_rpc/functional_syntax/int8/test/test.ts +++ b/tests/property/candid_rpc/functional_api/int8/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { Int8Arb } from 'azle/property_tests/arbitraries/candid/primitive/ints/int8_arb'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { Int8Arb } from 'azle/test/property/arbitraries/candid/primitive/ints/int8_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/functional_syntax/int8/tsconfig.json b/tests/property/candid_rpc/functional_api/int8/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/int8/tsconfig.json rename to tests/property/candid_rpc/functional_api/int8/tsconfig.json diff --git a/tests/property/candid_rpc/functional_syntax/nat/dfx.json b/tests/property/candid_rpc/functional_api/nat/dfx.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/nat/dfx.json rename to tests/property/candid_rpc/functional_api/nat/dfx.json diff --git a/tests/property/candid_rpc/functional_syntax/nat/package-lock.json b/tests/property/candid_rpc/functional_api/nat/package-lock.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/nat/package-lock.json rename to tests/property/candid_rpc/functional_api/nat/package-lock.json diff --git a/tests/property/candid_rpc/functional_syntax/nat/package.json b/tests/property/candid_rpc/functional_api/nat/package.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/nat/package.json rename to tests/property/candid_rpc/functional_api/nat/package.json diff --git a/tests/property/candid_rpc/class_syntax/nat/test/generate_body.ts b/tests/property/candid_rpc/functional_api/nat/test/generate_body.ts similarity index 73% rename from tests/property/candid_rpc/class_syntax/nat/test/generate_body.ts rename to tests/property/candid_rpc/functional_api/nat/test/generate_body.ts index ba2e63496a..433fae1de6 100644 --- a/tests/property/candid_rpc/class_syntax/nat/test/generate_body.ts +++ b/tests/property/candid_rpc/functional_api/nat/test/generate_body.ts @@ -1,6 +1,6 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParamNats: Named>[], diff --git a/tests/property/candid_rpc/class_syntax/nat/test/generate_tests.ts b/tests/property/candid_rpc/functional_api/nat/test/generate_tests.ts similarity index 78% rename from tests/property/candid_rpc/class_syntax/nat/test/generate_tests.ts rename to tests/property/candid_rpc/functional_api/nat/test/generate_tests.ts index 7cd446f07d..88de4ee05b 100644 --- a/tests/property/candid_rpc/class_syntax/nat/test/generate_tests.ts +++ b/tests/property/candid_rpc/functional_api/nat/test/generate_tests.ts @@ -1,6 +1,6 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/functional_syntax/nat/test/test.ts b/tests/property/candid_rpc/functional_api/nat/test/test.ts similarity index 64% rename from tests/property/candid_rpc/functional_syntax/nat/test/test.ts rename to tests/property/candid_rpc/functional_api/nat/test/test.ts index cd53e808df..64578403e8 100644 --- a/tests/property/candid_rpc/functional_syntax/nat/test/test.ts +++ b/tests/property/candid_rpc/functional_api/nat/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { NatArb } from 'azle/property_tests/arbitraries/candid/primitive/nats/nat_arb'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { NatArb } from 'azle/test/property/arbitraries/candid/primitive/nats/nat_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/functional_syntax/nat/tsconfig.json b/tests/property/candid_rpc/functional_api/nat/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/nat/tsconfig.json rename to tests/property/candid_rpc/functional_api/nat/tsconfig.json diff --git a/tests/property/candid_rpc/functional_syntax/nat16/dfx.json b/tests/property/candid_rpc/functional_api/nat16/dfx.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/nat16/dfx.json rename to tests/property/candid_rpc/functional_api/nat16/dfx.json diff --git a/tests/property/candid_rpc/functional_syntax/nat16/package-lock.json b/tests/property/candid_rpc/functional_api/nat16/package-lock.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/nat16/package-lock.json rename to tests/property/candid_rpc/functional_api/nat16/package-lock.json diff --git a/tests/property/candid_rpc/functional_syntax/nat16/package.json b/tests/property/candid_rpc/functional_api/nat16/package.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/nat16/package.json rename to tests/property/candid_rpc/functional_api/nat16/package.json diff --git a/tests/property/candid_rpc/class_syntax/nat16/test/generate_body.ts b/tests/property/candid_rpc/functional_api/nat16/test/generate_body.ts similarity index 76% rename from tests/property/candid_rpc/class_syntax/nat16/test/generate_body.ts rename to tests/property/candid_rpc/functional_api/nat16/test/generate_body.ts index 36c5809b54..556e2bee55 100644 --- a/tests/property/candid_rpc/class_syntax/nat16/test/generate_body.ts +++ b/tests/property/candid_rpc/functional_api/nat16/test/generate_body.ts @@ -1,6 +1,6 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParamNat16s: Named>[], diff --git a/tests/property/candid_rpc/class_syntax/nat16/test/generate_tests.ts b/tests/property/candid_rpc/functional_api/nat16/test/generate_tests.ts similarity index 80% rename from tests/property/candid_rpc/class_syntax/nat16/test/generate_tests.ts rename to tests/property/candid_rpc/functional_api/nat16/test/generate_tests.ts index 712cfd11df..8830422ece 100644 --- a/tests/property/candid_rpc/class_syntax/nat16/test/generate_tests.ts +++ b/tests/property/candid_rpc/functional_api/nat16/test/generate_tests.ts @@ -1,6 +1,6 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/functional_syntax/nat16/test/test.ts b/tests/property/candid_rpc/functional_api/nat16/test/test.ts similarity index 64% rename from tests/property/candid_rpc/functional_syntax/nat16/test/test.ts rename to tests/property/candid_rpc/functional_api/nat16/test/test.ts index 92f1e2dc7b..30bb4b81ed 100644 --- a/tests/property/candid_rpc/functional_syntax/nat16/test/test.ts +++ b/tests/property/candid_rpc/functional_api/nat16/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { Nat16Arb } from 'azle/property_tests/arbitraries/candid/primitive/nats/nat16_arb'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { Nat16Arb } from 'azle/test/property/arbitraries/candid/primitive/nats/nat16_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/functional_syntax/nat16/tsconfig.json b/tests/property/candid_rpc/functional_api/nat16/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/nat16/tsconfig.json rename to tests/property/candid_rpc/functional_api/nat16/tsconfig.json diff --git a/tests/property/candid_rpc/functional_syntax/nat32/dfx.json b/tests/property/candid_rpc/functional_api/nat32/dfx.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/nat32/dfx.json rename to tests/property/candid_rpc/functional_api/nat32/dfx.json diff --git a/tests/property/candid_rpc/functional_syntax/nat32/package-lock.json b/tests/property/candid_rpc/functional_api/nat32/package-lock.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/nat32/package-lock.json rename to tests/property/candid_rpc/functional_api/nat32/package-lock.json diff --git a/tests/property/candid_rpc/functional_syntax/nat32/package.json b/tests/property/candid_rpc/functional_api/nat32/package.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/nat32/package.json rename to tests/property/candid_rpc/functional_api/nat32/package.json diff --git a/tests/property/candid_rpc/functional_syntax/nat32/test/generate_body.ts b/tests/property/candid_rpc/functional_api/nat32/test/generate_body.ts similarity index 76% rename from tests/property/candid_rpc/functional_syntax/nat32/test/generate_body.ts rename to tests/property/candid_rpc/functional_api/nat32/test/generate_body.ts index 3ead7aca94..946047b3ee 100644 --- a/tests/property/candid_rpc/functional_syntax/nat32/test/generate_body.ts +++ b/tests/property/candid_rpc/functional_api/nat32/test/generate_body.ts @@ -1,6 +1,6 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParamNat32s: Named>[], diff --git a/tests/property/candid_rpc/functional_syntax/nat32/test/generate_tests.ts b/tests/property/candid_rpc/functional_api/nat32/test/generate_tests.ts similarity index 80% rename from tests/property/candid_rpc/functional_syntax/nat32/test/generate_tests.ts rename to tests/property/candid_rpc/functional_api/nat32/test/generate_tests.ts index 9b67e1291b..cb3c408713 100644 --- a/tests/property/candid_rpc/functional_syntax/nat32/test/generate_tests.ts +++ b/tests/property/candid_rpc/functional_api/nat32/test/generate_tests.ts @@ -1,6 +1,6 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/functional_syntax/nat32/test/test.ts b/tests/property/candid_rpc/functional_api/nat32/test/test.ts similarity index 64% rename from tests/property/candid_rpc/functional_syntax/nat32/test/test.ts rename to tests/property/candid_rpc/functional_api/nat32/test/test.ts index 09d856cec6..9f7050483d 100644 --- a/tests/property/candid_rpc/functional_syntax/nat32/test/test.ts +++ b/tests/property/candid_rpc/functional_api/nat32/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { Nat32Arb } from 'azle/property_tests/arbitraries/candid/primitive/nats/nat32_arb'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { Nat32Arb } from 'azle/test/property/arbitraries/candid/primitive/nats/nat32_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/functional_syntax/nat32/tsconfig.json b/tests/property/candid_rpc/functional_api/nat32/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/nat32/tsconfig.json rename to tests/property/candid_rpc/functional_api/nat32/tsconfig.json diff --git a/tests/property/candid_rpc/functional_syntax/nat64/dfx.json b/tests/property/candid_rpc/functional_api/nat64/dfx.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/nat64/dfx.json rename to tests/property/candid_rpc/functional_api/nat64/dfx.json diff --git a/tests/property/candid_rpc/functional_syntax/nat64/package-lock.json b/tests/property/candid_rpc/functional_api/nat64/package-lock.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/nat64/package-lock.json rename to tests/property/candid_rpc/functional_api/nat64/package-lock.json diff --git a/tests/property/candid_rpc/functional_syntax/nat64/package.json b/tests/property/candid_rpc/functional_api/nat64/package.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/nat64/package.json rename to tests/property/candid_rpc/functional_api/nat64/package.json diff --git a/tests/property/candid_rpc/functional_syntax/nat64/test/generate_body.ts b/tests/property/candid_rpc/functional_api/nat64/test/generate_body.ts similarity index 76% rename from tests/property/candid_rpc/functional_syntax/nat64/test/generate_body.ts rename to tests/property/candid_rpc/functional_api/nat64/test/generate_body.ts index 423f9a0013..b14079001d 100644 --- a/tests/property/candid_rpc/functional_syntax/nat64/test/generate_body.ts +++ b/tests/property/candid_rpc/functional_api/nat64/test/generate_body.ts @@ -1,6 +1,6 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParamNat64s: Named>[], diff --git a/tests/property/candid_rpc/functional_syntax/nat64/test/generate_tests.ts b/tests/property/candid_rpc/functional_api/nat64/test/generate_tests.ts similarity index 80% rename from tests/property/candid_rpc/functional_syntax/nat64/test/generate_tests.ts rename to tests/property/candid_rpc/functional_api/nat64/test/generate_tests.ts index 1bf97bf853..0c1b787e13 100644 --- a/tests/property/candid_rpc/functional_syntax/nat64/test/generate_tests.ts +++ b/tests/property/candid_rpc/functional_api/nat64/test/generate_tests.ts @@ -1,6 +1,6 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/functional_syntax/nat64/test/test.ts b/tests/property/candid_rpc/functional_api/nat64/test/test.ts similarity index 64% rename from tests/property/candid_rpc/functional_syntax/nat64/test/test.ts rename to tests/property/candid_rpc/functional_api/nat64/test/test.ts index 04cbb15649..ab28326758 100644 --- a/tests/property/candid_rpc/functional_syntax/nat64/test/test.ts +++ b/tests/property/candid_rpc/functional_api/nat64/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { Nat64Arb } from 'azle/property_tests/arbitraries/candid/primitive/nats/nat64_arb'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { Nat64Arb } from 'azle/test/property/arbitraries/candid/primitive/nats/nat64_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/functional_syntax/nat64/tsconfig.json b/tests/property/candid_rpc/functional_api/nat64/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/nat64/tsconfig.json rename to tests/property/candid_rpc/functional_api/nat64/tsconfig.json diff --git a/tests/property/candid_rpc/functional_syntax/nat8/dfx.json b/tests/property/candid_rpc/functional_api/nat8/dfx.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/nat8/dfx.json rename to tests/property/candid_rpc/functional_api/nat8/dfx.json diff --git a/tests/property/candid_rpc/functional_syntax/nat8/package-lock.json b/tests/property/candid_rpc/functional_api/nat8/package-lock.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/nat8/package-lock.json rename to tests/property/candid_rpc/functional_api/nat8/package-lock.json diff --git a/tests/property/candid_rpc/functional_syntax/nat8/package.json b/tests/property/candid_rpc/functional_api/nat8/package.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/nat8/package.json rename to tests/property/candid_rpc/functional_api/nat8/package.json diff --git a/tests/property/candid_rpc/functional_syntax/nat8/test/generate_body.ts b/tests/property/candid_rpc/functional_api/nat8/test/generate_body.ts similarity index 76% rename from tests/property/candid_rpc/functional_syntax/nat8/test/generate_body.ts rename to tests/property/candid_rpc/functional_api/nat8/test/generate_body.ts index 1a06f4ec48..0c91a382d6 100644 --- a/tests/property/candid_rpc/functional_syntax/nat8/test/generate_body.ts +++ b/tests/property/candid_rpc/functional_api/nat8/test/generate_body.ts @@ -1,6 +1,6 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParamNat8s: Named>[], diff --git a/tests/property/candid_rpc/functional_syntax/nat8/test/generate_tests.ts b/tests/property/candid_rpc/functional_api/nat8/test/generate_tests.ts similarity index 80% rename from tests/property/candid_rpc/functional_syntax/nat8/test/generate_tests.ts rename to tests/property/candid_rpc/functional_api/nat8/test/generate_tests.ts index 10e8bc18a4..00b271b245 100644 --- a/tests/property/candid_rpc/functional_syntax/nat8/test/generate_tests.ts +++ b/tests/property/candid_rpc/functional_api/nat8/test/generate_tests.ts @@ -1,6 +1,6 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/functional_syntax/nat8/test/test.ts b/tests/property/candid_rpc/functional_api/nat8/test/test.ts similarity index 64% rename from tests/property/candid_rpc/functional_syntax/nat8/test/test.ts rename to tests/property/candid_rpc/functional_api/nat8/test/test.ts index 3a4891b71a..ac93c98e09 100644 --- a/tests/property/candid_rpc/functional_syntax/nat8/test/test.ts +++ b/tests/property/candid_rpc/functional_api/nat8/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { Nat8Arb } from 'azle/property_tests/arbitraries/candid/primitive/nats/nat8_arb'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { Nat8Arb } from 'azle/test/property/arbitraries/candid/primitive/nats/nat8_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/functional_syntax/nat8/tsconfig.json b/tests/property/candid_rpc/functional_api/nat8/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/nat8/tsconfig.json rename to tests/property/candid_rpc/functional_api/nat8/tsconfig.json diff --git a/tests/property/candid_rpc/functional_syntax/null/dfx.json b/tests/property/candid_rpc/functional_api/null/dfx.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/null/dfx.json rename to tests/property/candid_rpc/functional_api/null/dfx.json diff --git a/tests/property/candid_rpc/functional_syntax/null/package-lock.json b/tests/property/candid_rpc/functional_api/null/package-lock.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/null/package-lock.json rename to tests/property/candid_rpc/functional_api/null/package-lock.json diff --git a/tests/property/candid_rpc/functional_syntax/null/package.json b/tests/property/candid_rpc/functional_api/null/package.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/null/package.json rename to tests/property/candid_rpc/functional_api/null/package.json diff --git a/tests/property/candid_rpc/class_syntax/null/test/generate_body.ts b/tests/property/candid_rpc/functional_api/null/test/generate_body.ts similarity index 75% rename from tests/property/candid_rpc/class_syntax/null/test/generate_body.ts rename to tests/property/candid_rpc/functional_api/null/test/generate_body.ts index 407c964407..4f492c6131 100644 --- a/tests/property/candid_rpc/class_syntax/null/test/generate_body.ts +++ b/tests/property/candid_rpc/functional_api/null/test/generate_body.ts @@ -1,5 +1,5 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; export function generateBody( namedParamNulls: Named>[], diff --git a/tests/property/candid_rpc/class_syntax/null/test/generate_tests.ts b/tests/property/candid_rpc/functional_api/null/test/generate_tests.ts similarity index 75% rename from tests/property/candid_rpc/class_syntax/null/test/generate_tests.ts rename to tests/property/candid_rpc/functional_api/null/test/generate_tests.ts index ab971a20d4..b768bdc13a 100644 --- a/tests/property/candid_rpc/class_syntax/null/test/generate_tests.ts +++ b/tests/property/candid_rpc/functional_api/null/test/generate_tests.ts @@ -1,6 +1,6 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/functional_syntax/null/test/test.ts b/tests/property/candid_rpc/functional_api/null/test/test.ts similarity index 64% rename from tests/property/candid_rpc/functional_syntax/null/test/test.ts rename to tests/property/candid_rpc/functional_api/null/test/test.ts index 282b442f19..3e938cff9c 100644 --- a/tests/property/candid_rpc/functional_syntax/null/test/test.ts +++ b/tests/property/candid_rpc/functional_api/null/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { NullArb } from 'azle/property_tests/arbitraries/candid/primitive/null'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { NullArb } from 'azle/test/property/arbitraries/candid/primitive/null'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/functional_syntax/null/tsconfig.json b/tests/property/candid_rpc/functional_api/null/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/null/tsconfig.json rename to tests/property/candid_rpc/functional_api/null/tsconfig.json diff --git a/tests/property/candid_rpc/functional_syntax/opt/dfx.json b/tests/property/candid_rpc/functional_api/opt/dfx.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/opt/dfx.json rename to tests/property/candid_rpc/functional_api/opt/dfx.json diff --git a/tests/property/candid_rpc/functional_syntax/opt/package-lock.json b/tests/property/candid_rpc/functional_api/opt/package-lock.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/opt/package-lock.json rename to tests/property/candid_rpc/functional_api/opt/package-lock.json diff --git a/tests/property/candid_rpc/functional_syntax/opt/package.json b/tests/property/candid_rpc/functional_api/opt/package.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/opt/package.json rename to tests/property/candid_rpc/functional_api/opt/package.json diff --git a/tests/property/candid_rpc/functional_syntax/opt/test/generate_body.ts b/tests/property/candid_rpc/functional_api/opt/test/generate_body.ts similarity index 70% rename from tests/property/candid_rpc/functional_syntax/opt/test/generate_body.ts rename to tests/property/candid_rpc/functional_api/opt/test/generate_body.ts index 1973730d8e..81b132aab0 100644 --- a/tests/property/candid_rpc/functional_syntax/opt/test/generate_body.ts +++ b/tests/property/candid_rpc/functional_api/opt/test/generate_body.ts @@ -1,7 +1,7 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { Opt } from 'azle/property_tests/arbitraries/candid/constructed/opt_arb'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { Opt } from 'azle/test/property/arbitraries/candid/constructed/opt_arb'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParamOpts: Named>[], diff --git a/tests/property/candid_rpc/class_syntax/opt/test/generate_tests.ts b/tests/property/candid_rpc/functional_api/opt/test/generate_tests.ts similarity index 70% rename from tests/property/candid_rpc/class_syntax/opt/test/generate_tests.ts rename to tests/property/candid_rpc/functional_api/opt/test/generate_tests.ts index 1c6ce71905..8061de7166 100644 --- a/tests/property/candid_rpc/class_syntax/opt/test/generate_tests.ts +++ b/tests/property/candid_rpc/functional_api/opt/test/generate_tests.ts @@ -1,7 +1,7 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { Opt } from 'azle/property_tests/arbitraries/candid/constructed/opt_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { Opt } from 'azle/test/property/arbitraries/candid/constructed/opt_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/functional_syntax/opt/test/test.ts b/tests/property/candid_rpc/functional_api/opt/test/test.ts similarity index 64% rename from tests/property/candid_rpc/functional_syntax/opt/test/test.ts rename to tests/property/candid_rpc/functional_api/opt/test/test.ts index d45bcd5db2..7861423fb9 100644 --- a/tests/property/candid_rpc/functional_syntax/opt/test/test.ts +++ b/tests/property/candid_rpc/functional_api/opt/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { OptArb } from 'azle/property_tests/arbitraries/candid/constructed/opt_arb'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { OptArb } from 'azle/test/property/arbitraries/candid/constructed/opt_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/functional_syntax/opt/tsconfig.json b/tests/property/candid_rpc/functional_api/opt/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/opt/tsconfig.json rename to tests/property/candid_rpc/functional_api/opt/tsconfig.json diff --git a/tests/property/candid_rpc/functional_syntax/principal/dfx.json b/tests/property/candid_rpc/functional_api/principal/dfx.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/principal/dfx.json rename to tests/property/candid_rpc/functional_api/principal/dfx.json diff --git a/tests/property/candid_rpc/functional_syntax/principal/package-lock.json b/tests/property/candid_rpc/functional_api/principal/package-lock.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/principal/package-lock.json rename to tests/property/candid_rpc/functional_api/principal/package-lock.json diff --git a/tests/property/candid_rpc/functional_syntax/principal/package.json b/tests/property/candid_rpc/functional_api/principal/package.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/principal/package.json rename to tests/property/candid_rpc/functional_api/principal/package.json diff --git a/tests/property/candid_rpc/functional_syntax/principal/test/generate_body.ts b/tests/property/candid_rpc/functional_api/principal/test/generate_body.ts similarity index 77% rename from tests/property/candid_rpc/functional_syntax/principal/test/generate_body.ts rename to tests/property/candid_rpc/functional_api/principal/test/generate_body.ts index 69dc896e1a..a43d5e00c2 100644 --- a/tests/property/candid_rpc/functional_syntax/principal/test/generate_body.ts +++ b/tests/property/candid_rpc/functional_api/principal/test/generate_body.ts @@ -1,7 +1,7 @@ import { Principal } from '@dfinity/principal'; -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParamPrincipals: Named>[], diff --git a/tests/property/candid_rpc/functional_syntax/principal/test/generate_tests.ts b/tests/property/candid_rpc/functional_api/principal/test/generate_tests.ts similarity index 80% rename from tests/property/candid_rpc/functional_syntax/principal/test/generate_tests.ts rename to tests/property/candid_rpc/functional_api/principal/test/generate_tests.ts index 05f59dc620..fad105f8fb 100644 --- a/tests/property/candid_rpc/functional_syntax/principal/test/generate_tests.ts +++ b/tests/property/candid_rpc/functional_api/principal/test/generate_tests.ts @@ -1,7 +1,7 @@ import { Principal } from '@dfinity/principal'; -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/functional_syntax/principal/test/test.ts b/tests/property/candid_rpc/functional_api/principal/test/test.ts similarity index 64% rename from tests/property/candid_rpc/functional_syntax/principal/test/test.ts rename to tests/property/candid_rpc/functional_api/principal/test/test.ts index 525687db46..4edf1ac962 100644 --- a/tests/property/candid_rpc/functional_syntax/principal/test/test.ts +++ b/tests/property/candid_rpc/functional_api/principal/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { PrincipalArb } from 'azle/property_tests/arbitraries/candid/reference/principal_arb'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { PrincipalArb } from 'azle/test/property/arbitraries/candid/reference/principal_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/functional_syntax/principal/tsconfig.json b/tests/property/candid_rpc/functional_api/principal/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/principal/tsconfig.json rename to tests/property/candid_rpc/functional_api/principal/tsconfig.json diff --git a/tests/property/candid_rpc/functional_syntax/record/dfx.json b/tests/property/candid_rpc/functional_api/record/dfx.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/record/dfx.json rename to tests/property/candid_rpc/functional_api/record/dfx.json diff --git a/tests/property/candid_rpc/functional_syntax/record/package-lock.json b/tests/property/candid_rpc/functional_api/record/package-lock.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/record/package-lock.json rename to tests/property/candid_rpc/functional_api/record/package-lock.json diff --git a/tests/property/candid_rpc/functional_syntax/record/package.json b/tests/property/candid_rpc/functional_api/record/package.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/record/package.json rename to tests/property/candid_rpc/functional_api/record/package.json diff --git a/tests/property/candid_rpc/class_syntax/record/test/generate_body.ts b/tests/property/candid_rpc/functional_api/record/test/generate_body.ts similarity index 75% rename from tests/property/candid_rpc/class_syntax/record/test/generate_body.ts rename to tests/property/candid_rpc/functional_api/record/test/generate_body.ts index 56d5b4a55f..503fb61421 100644 --- a/tests/property/candid_rpc/class_syntax/record/test/generate_body.ts +++ b/tests/property/candid_rpc/functional_api/record/test/generate_body.ts @@ -1,7 +1,7 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { Record } from 'azle/property_tests/arbitraries/candid/constructed/record_arb'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { Record } from 'azle/test/property/arbitraries/candid/constructed/record_arb'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParamRecords: Named>[], diff --git a/tests/property/candid_rpc/class_syntax/record/test/generate_tests.ts b/tests/property/candid_rpc/functional_api/record/test/generate_tests.ts similarity index 71% rename from tests/property/candid_rpc/class_syntax/record/test/generate_tests.ts rename to tests/property/candid_rpc/functional_api/record/test/generate_tests.ts index e23fd20329..dbcbc2348a 100644 --- a/tests/property/candid_rpc/class_syntax/record/test/generate_tests.ts +++ b/tests/property/candid_rpc/functional_api/record/test/generate_tests.ts @@ -1,7 +1,7 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { Record } from 'azle/property_tests/arbitraries/candid/constructed/record_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { Record } from 'azle/test/property/arbitraries/candid/constructed/record_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/functional_syntax/record/test/test.ts b/tests/property/candid_rpc/functional_api/record/test/test.ts similarity index 64% rename from tests/property/candid_rpc/functional_syntax/record/test/test.ts rename to tests/property/candid_rpc/functional_api/record/test/test.ts index e463b67291..da2b23b5bb 100644 --- a/tests/property/candid_rpc/functional_syntax/record/test/test.ts +++ b/tests/property/candid_rpc/functional_api/record/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { RecordArb } from 'azle/property_tests/arbitraries/candid/constructed/record_arb'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { RecordArb } from 'azle/test/property/arbitraries/candid/constructed/record_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/functional_syntax/record/tsconfig.json b/tests/property/candid_rpc/functional_api/record/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/record/tsconfig.json rename to tests/property/candid_rpc/functional_api/record/tsconfig.json diff --git a/tests/property/candid_rpc/functional_syntax/recursive/dfx.json b/tests/property/candid_rpc/functional_api/recursive/dfx.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/recursive/dfx.json rename to tests/property/candid_rpc/functional_api/recursive/dfx.json diff --git a/tests/property/candid_rpc/functional_syntax/recursive/package-lock.json b/tests/property/candid_rpc/functional_api/recursive/package-lock.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/recursive/package-lock.json rename to tests/property/candid_rpc/functional_api/recursive/package-lock.json diff --git a/tests/property/candid_rpc/functional_syntax/recursive/package.json b/tests/property/candid_rpc/functional_api/recursive/package.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/recursive/package.json rename to tests/property/candid_rpc/functional_api/recursive/package.json diff --git a/tests/property/candid_rpc/functional_syntax/recursive/test/generate_body.ts b/tests/property/candid_rpc/functional_api/recursive/test/generate_body.ts similarity index 55% rename from tests/property/candid_rpc/functional_syntax/recursive/test/generate_body.ts rename to tests/property/candid_rpc/functional_api/recursive/test/generate_body.ts index 6488fdc42b..fc82049805 100644 --- a/tests/property/candid_rpc/functional_syntax/recursive/test/generate_body.ts +++ b/tests/property/candid_rpc/functional_api/recursive/test/generate_body.ts @@ -1,7 +1,7 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { Recursive } from 'azle/property_tests/arbitraries/candid/recursive'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { Recursive } from 'azle/test/property/arbitraries/candid/recursive'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParamRecursive: Named>[], diff --git a/tests/property/candid_rpc/class_syntax/recursive/test/generate_tests.ts b/tests/property/candid_rpc/functional_api/recursive/test/generate_tests.ts similarity index 72% rename from tests/property/candid_rpc/class_syntax/recursive/test/generate_tests.ts rename to tests/property/candid_rpc/functional_api/recursive/test/generate_tests.ts index d6459ffb9e..f051ae2125 100644 --- a/tests/property/candid_rpc/class_syntax/recursive/test/generate_tests.ts +++ b/tests/property/candid_rpc/functional_api/recursive/test/generate_tests.ts @@ -1,7 +1,7 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { Recursive } from 'azle/property_tests/arbitraries/candid/recursive'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { Recursive } from 'azle/test/property/arbitraries/candid/recursive'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/functional_syntax/recursive/test/test.ts b/tests/property/candid_rpc/functional_api/recursive/test/test.ts similarity index 68% rename from tests/property/candid_rpc/functional_syntax/recursive/test/test.ts rename to tests/property/candid_rpc/functional_api/recursive/test/test.ts index 69724cb215..3f896f6b24 100644 --- a/tests/property/candid_rpc/functional_syntax/recursive/test/test.ts +++ b/tests/property/candid_rpc/functional_api/recursive/test/test.ts @@ -1,12 +1,12 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { RecursiveArb } from 'azle/property_tests/arbitraries/candid/recursive'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { RecursiveArb } from 'azle/test/property/arbitraries/candid/recursive'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { UpdateMethodArb } from 'azle/property_tests/arbitraries/canister_methods/update_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { UpdateMethodArb } from 'azle/test/property/arbitraries/canister_methods/update_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/functional_syntax/recursive/tsconfig.json b/tests/property/candid_rpc/functional_api/recursive/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/recursive/tsconfig.json rename to tests/property/candid_rpc/functional_api/recursive/tsconfig.json diff --git a/tests/property/candid_rpc/functional_syntax/service/dfx.json b/tests/property/candid_rpc/functional_api/service/dfx.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/service/dfx.json rename to tests/property/candid_rpc/functional_api/service/dfx.json diff --git a/tests/property/candid_rpc/functional_syntax/service/package-lock.json b/tests/property/candid_rpc/functional_api/service/package-lock.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/service/package-lock.json rename to tests/property/candid_rpc/functional_api/service/package-lock.json diff --git a/tests/property/candid_rpc/functional_syntax/service/package.json b/tests/property/candid_rpc/functional_api/service/package.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/service/package.json rename to tests/property/candid_rpc/functional_api/service/package.json diff --git a/tests/property/candid_rpc/functional_syntax/service/test/generate_body.ts b/tests/property/candid_rpc/functional_api/service/test/generate_body.ts similarity index 84% rename from tests/property/candid_rpc/functional_syntax/service/test/generate_body.ts rename to tests/property/candid_rpc/functional_api/service/test/generate_body.ts index 21e6caaec4..bfc2501091 100644 --- a/tests/property/candid_rpc/functional_syntax/service/test/generate_body.ts +++ b/tests/property/candid_rpc/functional_api/service/test/generate_body.ts @@ -1,6 +1,6 @@ import { Principal } from '@dfinity/principal'; -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; export function generateBody( namedParamServices: Named>[], diff --git a/tests/property/candid_rpc/class_syntax/service/test/generate_tests.ts b/tests/property/candid_rpc/functional_api/service/test/generate_tests.ts similarity index 86% rename from tests/property/candid_rpc/class_syntax/service/test/generate_tests.ts rename to tests/property/candid_rpc/functional_api/service/test/generate_tests.ts index 0f28d07c9c..f1e003ce6e 100644 --- a/tests/property/candid_rpc/class_syntax/service/test/generate_tests.ts +++ b/tests/property/candid_rpc/functional_api/service/test/generate_tests.ts @@ -1,7 +1,7 @@ import { Principal } from '@dfinity/principal'; -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; import { execSync } from 'child_process'; export function generateTests( diff --git a/tests/property/candid_rpc/functional_syntax/service/test/test.ts b/tests/property/candid_rpc/functional_api/service/test/test.ts similarity index 70% rename from tests/property/candid_rpc/functional_syntax/service/test/test.ts rename to tests/property/candid_rpc/functional_api/service/test/test.ts index c44d9df4f1..2252d0cf44 100644 --- a/tests/property/candid_rpc/functional_syntax/service/test/test.ts +++ b/tests/property/candid_rpc/functional_api/service/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { ServiceArb } from 'azle/property_tests/arbitraries/candid/reference/service_arb'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { ServiceArb } from 'azle/test/property/arbitraries/candid/reference/service_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/functional_syntax/service/tsconfig.json b/tests/property/candid_rpc/functional_api/service/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/service/tsconfig.json rename to tests/property/candid_rpc/functional_api/service/tsconfig.json diff --git a/tests/property/candid_rpc/functional_syntax/stable_b_tree_map/dfx.json b/tests/property/candid_rpc/functional_api/stable_b_tree_map/dfx.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/stable_b_tree_map/dfx.json rename to tests/property/candid_rpc/functional_api/stable_b_tree_map/dfx.json diff --git a/tests/property/candid_rpc/functional_syntax/stable_b_tree_map/package-lock.json b/tests/property/candid_rpc/functional_api/stable_b_tree_map/package-lock.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/stable_b_tree_map/package-lock.json rename to tests/property/candid_rpc/functional_api/stable_b_tree_map/package-lock.json diff --git a/tests/property/candid_rpc/functional_syntax/stable_b_tree_map/package.json b/tests/property/candid_rpc/functional_api/stable_b_tree_map/package.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/stable_b_tree_map/package.json rename to tests/property/candid_rpc/functional_api/stable_b_tree_map/package.json diff --git a/tests/property/candid_rpc/functional_syntax/stable_b_tree_map/test/contains_key.ts b/tests/property/candid_rpc/functional_api/stable_b_tree_map/test/contains_key.ts similarity index 87% rename from tests/property/candid_rpc/functional_syntax/stable_b_tree_map/test/contains_key.ts rename to tests/property/candid_rpc/functional_api/stable_b_tree_map/test/contains_key.ts index 51071a6976..b51178b4e8 100644 --- a/tests/property/candid_rpc/functional_syntax/stable_b_tree_map/test/contains_key.ts +++ b/tests/property/candid_rpc/functional_api/stable_b_tree_map/test/contains_key.ts @@ -1,8 +1,8 @@ -import { getActor } from 'azle/property_tests'; -import { QueryMethod } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { StableBTreeMap } from 'azle/property_tests/arbitraries/stable_b_tree_map_arb'; -import { UniqueIdentifierArb } from 'azle/property_tests/arbitraries/unique_identifier_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor } from 'azle/test/property'; +import { QueryMethod } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { StableBTreeMap } from 'azle/test/property/arbitraries/stable_b_tree_map_arb'; +import { UniqueIdentifierArb } from 'azle/test/property/arbitraries/unique_identifier_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; import fc from 'fast-check'; export function ContainsKeyTestArb( diff --git a/tests/property/candid_rpc/functional_syntax/stable_b_tree_map/test/get.ts b/tests/property/candid_rpc/functional_api/stable_b_tree_map/test/get.ts similarity index 89% rename from tests/property/candid_rpc/functional_syntax/stable_b_tree_map/test/get.ts rename to tests/property/candid_rpc/functional_api/stable_b_tree_map/test/get.ts index 8776841b04..5f8352db63 100644 --- a/tests/property/candid_rpc/functional_syntax/stable_b_tree_map/test/get.ts +++ b/tests/property/candid_rpc/functional_api/stable_b_tree_map/test/get.ts @@ -1,8 +1,8 @@ -import { getActor } from 'azle/property_tests'; -import { QueryMethod } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { StableBTreeMap } from 'azle/property_tests/arbitraries/stable_b_tree_map_arb'; -import { UniqueIdentifierArb } from 'azle/property_tests/arbitraries/unique_identifier_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor } from 'azle/test/property'; +import { QueryMethod } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { StableBTreeMap } from 'azle/test/property/arbitraries/stable_b_tree_map_arb'; +import { UniqueIdentifierArb } from 'azle/test/property/arbitraries/unique_identifier_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; import fc from 'fast-check'; export function GetTestArb( diff --git a/tests/property/candid_rpc/functional_syntax/stable_b_tree_map/test/insert.ts b/tests/property/candid_rpc/functional_api/stable_b_tree_map/test/insert.ts similarity index 85% rename from tests/property/candid_rpc/functional_syntax/stable_b_tree_map/test/insert.ts rename to tests/property/candid_rpc/functional_api/stable_b_tree_map/test/insert.ts index eee4aff2ed..de593afbda 100644 --- a/tests/property/candid_rpc/functional_syntax/stable_b_tree_map/test/insert.ts +++ b/tests/property/candid_rpc/functional_api/stable_b_tree_map/test/insert.ts @@ -1,8 +1,8 @@ -import { getActor } from 'azle/property_tests'; -import { QueryMethod } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { StableBTreeMap } from 'azle/property_tests/arbitraries/stable_b_tree_map_arb'; -import { UniqueIdentifierArb } from 'azle/property_tests/arbitraries/unique_identifier_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor } from 'azle/test/property'; +import { QueryMethod } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { StableBTreeMap } from 'azle/test/property/arbitraries/stable_b_tree_map_arb'; +import { UniqueIdentifierArb } from 'azle/test/property/arbitraries/unique_identifier_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; import fc from 'fast-check'; export function InsertTestArb( diff --git a/tests/property/candid_rpc/functional_syntax/stable_b_tree_map/test/is_empty.ts b/tests/property/candid_rpc/functional_api/stable_b_tree_map/test/is_empty.ts similarity index 83% rename from tests/property/candid_rpc/functional_syntax/stable_b_tree_map/test/is_empty.ts rename to tests/property/candid_rpc/functional_api/stable_b_tree_map/test/is_empty.ts index cee6467046..91bea2690a 100644 --- a/tests/property/candid_rpc/functional_syntax/stable_b_tree_map/test/is_empty.ts +++ b/tests/property/candid_rpc/functional_api/stable_b_tree_map/test/is_empty.ts @@ -1,8 +1,8 @@ -import { getActor } from 'azle/property_tests'; -import { QueryMethod } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { StableBTreeMap } from 'azle/property_tests/arbitraries/stable_b_tree_map_arb'; -import { UniqueIdentifierArb } from 'azle/property_tests/arbitraries/unique_identifier_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor } from 'azle/test/property'; +import { QueryMethod } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { StableBTreeMap } from 'azle/test/property/arbitraries/stable_b_tree_map_arb'; +import { UniqueIdentifierArb } from 'azle/test/property/arbitraries/unique_identifier_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; import fc from 'fast-check'; export function IsEmptyTestArb( diff --git a/tests/property/candid_rpc/functional_syntax/stable_b_tree_map/test/items.ts b/tests/property/candid_rpc/functional_api/stable_b_tree_map/test/items.ts similarity index 88% rename from tests/property/candid_rpc/functional_syntax/stable_b_tree_map/test/items.ts rename to tests/property/candid_rpc/functional_api/stable_b_tree_map/test/items.ts index 052986ad4c..d2d123801a 100644 --- a/tests/property/candid_rpc/functional_syntax/stable_b_tree_map/test/items.ts +++ b/tests/property/candid_rpc/functional_api/stable_b_tree_map/test/items.ts @@ -1,8 +1,8 @@ -import { getActor } from 'azle/property_tests'; -import { QueryMethod } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { StableBTreeMap } from 'azle/property_tests/arbitraries/stable_b_tree_map_arb'; -import { UniqueIdentifierArb } from 'azle/property_tests/arbitraries/unique_identifier_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor } from 'azle/test/property'; +import { QueryMethod } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { StableBTreeMap } from 'azle/test/property/arbitraries/stable_b_tree_map_arb'; +import { UniqueIdentifierArb } from 'azle/test/property/arbitraries/unique_identifier_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; import fc from 'fast-check'; export function ItemsTestArb( diff --git a/tests/property/candid_rpc/functional_syntax/stable_b_tree_map/test/keys.ts b/tests/property/candid_rpc/functional_api/stable_b_tree_map/test/keys.ts similarity index 89% rename from tests/property/candid_rpc/functional_syntax/stable_b_tree_map/test/keys.ts rename to tests/property/candid_rpc/functional_api/stable_b_tree_map/test/keys.ts index 2fee7a3318..b64008bda4 100644 --- a/tests/property/candid_rpc/functional_syntax/stable_b_tree_map/test/keys.ts +++ b/tests/property/candid_rpc/functional_api/stable_b_tree_map/test/keys.ts @@ -1,8 +1,8 @@ -import { getActor } from 'azle/property_tests'; -import { QueryMethod } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { StableBTreeMap } from 'azle/property_tests/arbitraries/stable_b_tree_map_arb'; -import { UniqueIdentifierArb } from 'azle/property_tests/arbitraries/unique_identifier_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor } from 'azle/test/property'; +import { QueryMethod } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { StableBTreeMap } from 'azle/test/property/arbitraries/stable_b_tree_map_arb'; +import { UniqueIdentifierArb } from 'azle/test/property/arbitraries/unique_identifier_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; import fc from 'fast-check'; import { getArrayForCandidType, getArrayStringForCandidType } from './utils'; diff --git a/tests/property/candid_rpc/functional_syntax/stable_b_tree_map/test/len.ts b/tests/property/candid_rpc/functional_api/stable_b_tree_map/test/len.ts similarity index 84% rename from tests/property/candid_rpc/functional_syntax/stable_b_tree_map/test/len.ts rename to tests/property/candid_rpc/functional_api/stable_b_tree_map/test/len.ts index 626ca45e94..c6046ee4bb 100644 --- a/tests/property/candid_rpc/functional_syntax/stable_b_tree_map/test/len.ts +++ b/tests/property/candid_rpc/functional_api/stable_b_tree_map/test/len.ts @@ -1,8 +1,8 @@ -import { getActor } from 'azle/property_tests'; -import { QueryMethod } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { StableBTreeMap } from 'azle/property_tests/arbitraries/stable_b_tree_map_arb'; -import { UniqueIdentifierArb } from 'azle/property_tests/arbitraries/unique_identifier_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor } from 'azle/test/property'; +import { QueryMethod } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { StableBTreeMap } from 'azle/test/property/arbitraries/stable_b_tree_map_arb'; +import { UniqueIdentifierArb } from 'azle/test/property/arbitraries/unique_identifier_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; import fc from 'fast-check'; export function LenTestArb( diff --git a/tests/property/candid_rpc/functional_syntax/stable_b_tree_map/test/remove.ts b/tests/property/candid_rpc/functional_api/stable_b_tree_map/test/remove.ts similarity index 86% rename from tests/property/candid_rpc/functional_syntax/stable_b_tree_map/test/remove.ts rename to tests/property/candid_rpc/functional_api/stable_b_tree_map/test/remove.ts index 0aa2c2b6a4..2101a2194f 100644 --- a/tests/property/candid_rpc/functional_syntax/stable_b_tree_map/test/remove.ts +++ b/tests/property/candid_rpc/functional_api/stable_b_tree_map/test/remove.ts @@ -1,8 +1,8 @@ -import { getActor } from 'azle/property_tests'; -import { QueryMethod } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { StableBTreeMap } from 'azle/property_tests/arbitraries/stable_b_tree_map_arb'; -import { UniqueIdentifierArb } from 'azle/property_tests/arbitraries/unique_identifier_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor } from 'azle/test/property'; +import { QueryMethod } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { StableBTreeMap } from 'azle/test/property/arbitraries/stable_b_tree_map_arb'; +import { UniqueIdentifierArb } from 'azle/test/property/arbitraries/unique_identifier_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; import fc from 'fast-check'; export function RemoveTestArb( diff --git a/tests/property/candid_rpc/functional_syntax/stable_b_tree_map/test/test.ts b/tests/property/candid_rpc/functional_api/stable_b_tree_map/test/test.ts similarity index 92% rename from tests/property/candid_rpc/functional_syntax/stable_b_tree_map/test/test.ts rename to tests/property/candid_rpc/functional_api/stable_b_tree_map/test/test.ts index 75ee3008df..19951ca3cf 100644 --- a/tests/property/candid_rpc/functional_syntax/stable_b_tree_map/test/test.ts +++ b/tests/property/candid_rpc/functional_api/stable_b_tree_map/test/test.ts @@ -1,7 +1,7 @@ -import { runPropTests } from 'azle/property_tests'; -import { CanisterArb } from 'azle/property_tests/arbitraries/canister_arb'; -import { StableBTreeMapArb } from 'azle/property_tests/arbitraries/stable_b_tree_map_arb'; -import { Context } from 'azle/property_tests/arbitraries/types'; +import { runPropTests } from 'azle/test/property'; +import { CanisterArb } from 'azle/test/property/arbitraries/canister_arb'; +import { StableBTreeMapArb } from 'azle/test/property/arbitraries/stable_b_tree_map_arb'; +import { Context } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { ContainsKeyTestArb } from './contains_key'; diff --git a/tests/property/candid_rpc/functional_syntax/stable_b_tree_map/test/utils.ts b/tests/property/candid_rpc/functional_api/stable_b_tree_map/test/utils.ts similarity index 100% rename from tests/property/candid_rpc/functional_syntax/stable_b_tree_map/test/utils.ts rename to tests/property/candid_rpc/functional_api/stable_b_tree_map/test/utils.ts diff --git a/tests/property/candid_rpc/functional_syntax/stable_b_tree_map/test/values.ts b/tests/property/candid_rpc/functional_api/stable_b_tree_map/test/values.ts similarity index 89% rename from tests/property/candid_rpc/functional_syntax/stable_b_tree_map/test/values.ts rename to tests/property/candid_rpc/functional_api/stable_b_tree_map/test/values.ts index cb63b05728..05700543f1 100644 --- a/tests/property/candid_rpc/functional_syntax/stable_b_tree_map/test/values.ts +++ b/tests/property/candid_rpc/functional_api/stable_b_tree_map/test/values.ts @@ -1,8 +1,8 @@ -import { getActor } from 'azle/property_tests'; -import { QueryMethod } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { StableBTreeMap } from 'azle/property_tests/arbitraries/stable_b_tree_map_arb'; -import { UniqueIdentifierArb } from 'azle/property_tests/arbitraries/unique_identifier_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor } from 'azle/test/property'; +import { QueryMethod } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { StableBTreeMap } from 'azle/test/property/arbitraries/stable_b_tree_map_arb'; +import { UniqueIdentifierArb } from 'azle/test/property/arbitraries/unique_identifier_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; import fc from 'fast-check'; import { getArrayForCandidType, getArrayStringForCandidType } from './utils'; diff --git a/tests/property/candid_rpc/functional_syntax/stable_b_tree_map/tsconfig.json b/tests/property/candid_rpc/functional_api/stable_b_tree_map/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/stable_b_tree_map/tsconfig.json rename to tests/property/candid_rpc/functional_api/stable_b_tree_map/tsconfig.json diff --git a/tests/property/candid_rpc/functional_syntax/text/dfx.json b/tests/property/candid_rpc/functional_api/text/dfx.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/text/dfx.json rename to tests/property/candid_rpc/functional_api/text/dfx.json diff --git a/tests/property/candid_rpc/functional_syntax/text/package-lock.json b/tests/property/candid_rpc/functional_api/text/package-lock.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/text/package-lock.json rename to tests/property/candid_rpc/functional_api/text/package-lock.json diff --git a/tests/property/candid_rpc/functional_syntax/text/package.json b/tests/property/candid_rpc/functional_api/text/package.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/text/package.json rename to tests/property/candid_rpc/functional_api/text/package.json diff --git a/tests/property/candid_rpc/functional_syntax/text/test/generate_body.ts b/tests/property/candid_rpc/functional_api/text/test/generate_body.ts similarity index 74% rename from tests/property/candid_rpc/functional_syntax/text/test/generate_body.ts rename to tests/property/candid_rpc/functional_api/text/test/generate_body.ts index 0e2091277f..12eb7385e2 100644 --- a/tests/property/candid_rpc/functional_syntax/text/test/generate_body.ts +++ b/tests/property/candid_rpc/functional_api/text/test/generate_body.ts @@ -1,6 +1,6 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParamTexts: Named>[], diff --git a/tests/property/candid_rpc/class_syntax/text/test/generate_tests.ts b/tests/property/candid_rpc/functional_api/text/test/generate_tests.ts similarity index 78% rename from tests/property/candid_rpc/class_syntax/text/test/generate_tests.ts rename to tests/property/candid_rpc/functional_api/text/test/generate_tests.ts index 370e30d251..864fad0251 100644 --- a/tests/property/candid_rpc/class_syntax/text/test/generate_tests.ts +++ b/tests/property/candid_rpc/functional_api/text/test/generate_tests.ts @@ -1,6 +1,6 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/functional_syntax/text/test/test.ts b/tests/property/candid_rpc/functional_api/text/test/test.ts similarity index 64% rename from tests/property/candid_rpc/functional_syntax/text/test/test.ts rename to tests/property/candid_rpc/functional_api/text/test/test.ts index aaa456bbb5..3c39e4ffc7 100644 --- a/tests/property/candid_rpc/functional_syntax/text/test/test.ts +++ b/tests/property/candid_rpc/functional_api/text/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { TextArb } from 'azle/property_tests/arbitraries/candid/primitive/text'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { TextArb } from 'azle/test/property/arbitraries/candid/primitive/text'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/functional_syntax/text/tsconfig.json b/tests/property/candid_rpc/functional_api/text/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/text/tsconfig.json rename to tests/property/candid_rpc/functional_api/text/tsconfig.json diff --git a/tests/property/candid_rpc/functional_syntax/tuple/dfx.json b/tests/property/candid_rpc/functional_api/tuple/dfx.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/tuple/dfx.json rename to tests/property/candid_rpc/functional_api/tuple/dfx.json diff --git a/tests/property/candid_rpc/functional_syntax/tuple/package-lock.json b/tests/property/candid_rpc/functional_api/tuple/package-lock.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/tuple/package-lock.json rename to tests/property/candid_rpc/functional_api/tuple/package-lock.json diff --git a/tests/property/candid_rpc/functional_syntax/tuple/package.json b/tests/property/candid_rpc/functional_api/tuple/package.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/tuple/package.json rename to tests/property/candid_rpc/functional_api/tuple/package.json diff --git a/tests/property/candid_rpc/functional_syntax/tuple/test/generate_body.ts b/tests/property/candid_rpc/functional_api/tuple/test/generate_body.ts similarity index 75% rename from tests/property/candid_rpc/functional_syntax/tuple/test/generate_body.ts rename to tests/property/candid_rpc/functional_api/tuple/test/generate_body.ts index 9db56b18d1..9d15797453 100644 --- a/tests/property/candid_rpc/functional_syntax/tuple/test/generate_body.ts +++ b/tests/property/candid_rpc/functional_api/tuple/test/generate_body.ts @@ -1,10 +1,10 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; import { ReturnTuple, Tuple -} from 'azle/property_tests/arbitraries/candid/constructed/tuple_arb'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +} from 'azle/test/property/arbitraries/candid/constructed/tuple_arb'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParamTuples: Named>[], diff --git a/tests/property/candid_rpc/functional_syntax/tuple/test/generate_tests.ts b/tests/property/candid_rpc/functional_api/tuple/test/generate_tests.ts similarity index 73% rename from tests/property/candid_rpc/functional_syntax/tuple/test/generate_tests.ts rename to tests/property/candid_rpc/functional_api/tuple/test/generate_tests.ts index c35eedb756..387be4ae21 100644 --- a/tests/property/candid_rpc/functional_syntax/tuple/test/generate_tests.ts +++ b/tests/property/candid_rpc/functional_api/tuple/test/generate_tests.ts @@ -1,10 +1,10 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; import { ReturnTuple, Tuple -} from 'azle/property_tests/arbitraries/candid/constructed/tuple_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +} from 'azle/test/property/arbitraries/candid/constructed/tuple_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/functional_syntax/tuple/test/test.ts b/tests/property/candid_rpc/functional_api/tuple/test/test.ts similarity index 66% rename from tests/property/candid_rpc/functional_syntax/tuple/test/test.ts rename to tests/property/candid_rpc/functional_api/tuple/test/test.ts index 758da8e45b..c358de4010 100644 --- a/tests/property/candid_rpc/functional_syntax/tuple/test/test.ts +++ b/tests/property/candid_rpc/functional_api/tuple/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { TupleArb } from 'azle/property_tests/arbitraries/candid/constructed/tuple_arb'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { TupleArb } from 'azle/test/property/arbitraries/candid/constructed/tuple_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/functional_syntax/tuple/tsconfig.json b/tests/property/candid_rpc/functional_api/tuple/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/tuple/tsconfig.json rename to tests/property/candid_rpc/functional_api/tuple/tsconfig.json diff --git a/tests/property/candid_rpc/functional_syntax/variant/dfx.json b/tests/property/candid_rpc/functional_api/variant/dfx.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/variant/dfx.json rename to tests/property/candid_rpc/functional_api/variant/dfx.json diff --git a/tests/property/candid_rpc/functional_syntax/variant/package-lock.json b/tests/property/candid_rpc/functional_api/variant/package-lock.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/variant/package-lock.json rename to tests/property/candid_rpc/functional_api/variant/package-lock.json diff --git a/tests/property/candid_rpc/functional_syntax/variant/package.json b/tests/property/candid_rpc/functional_api/variant/package.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/variant/package.json rename to tests/property/candid_rpc/functional_api/variant/package.json diff --git a/tests/property/candid_rpc/class_syntax/variant/test/generate_body.ts b/tests/property/candid_rpc/functional_api/variant/test/generate_body.ts similarity index 67% rename from tests/property/candid_rpc/class_syntax/variant/test/generate_body.ts rename to tests/property/candid_rpc/functional_api/variant/test/generate_body.ts index 30e7aea51d..74c5ff75b8 100644 --- a/tests/property/candid_rpc/class_syntax/variant/test/generate_body.ts +++ b/tests/property/candid_rpc/functional_api/variant/test/generate_body.ts @@ -1,7 +1,7 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { Variant } from 'azle/property_tests/arbitraries/candid/constructed/variant_arb'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { Variant } from 'azle/test/property/arbitraries/candid/constructed/variant_arb'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParamVariants: Named>[], diff --git a/tests/property/candid_rpc/functional_syntax/variant/test/generate_tests.ts b/tests/property/candid_rpc/functional_api/variant/test/generate_tests.ts similarity index 71% rename from tests/property/candid_rpc/functional_syntax/variant/test/generate_tests.ts rename to tests/property/candid_rpc/functional_api/variant/test/generate_tests.ts index d9e46079d2..540ee8ead8 100644 --- a/tests/property/candid_rpc/functional_syntax/variant/test/generate_tests.ts +++ b/tests/property/candid_rpc/functional_api/variant/test/generate_tests.ts @@ -1,7 +1,7 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { Variant } from 'azle/property_tests/arbitraries/candid/constructed/variant_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { Variant } from 'azle/test/property/arbitraries/candid/constructed/variant_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/functional_syntax/variant/test/test.ts b/tests/property/candid_rpc/functional_api/variant/test/test.ts similarity index 66% rename from tests/property/candid_rpc/functional_syntax/variant/test/test.ts rename to tests/property/candid_rpc/functional_api/variant/test/test.ts index 072d5d325d..de69bb567b 100644 --- a/tests/property/candid_rpc/functional_syntax/variant/test/test.ts +++ b/tests/property/candid_rpc/functional_api/variant/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { VariantArb } from 'azle/property_tests/arbitraries/candid/constructed/variant_arb'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { VariantArb } from 'azle/test/property/arbitraries/candid/constructed/variant_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/functional_syntax/variant/tsconfig.json b/tests/property/candid_rpc/functional_api/variant/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/variant/tsconfig.json rename to tests/property/candid_rpc/functional_api/variant/tsconfig.json diff --git a/tests/property/candid_rpc/functional_syntax/vec/dfx.json b/tests/property/candid_rpc/functional_api/vec/dfx.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/vec/dfx.json rename to tests/property/candid_rpc/functional_api/vec/dfx.json diff --git a/tests/property/candid_rpc/functional_syntax/vec/package-lock.json b/tests/property/candid_rpc/functional_api/vec/package-lock.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/vec/package-lock.json rename to tests/property/candid_rpc/functional_api/vec/package-lock.json diff --git a/tests/property/candid_rpc/functional_syntax/vec/package.json b/tests/property/candid_rpc/functional_api/vec/package.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/vec/package.json rename to tests/property/candid_rpc/functional_api/vec/package.json diff --git a/tests/property/candid_rpc/class_syntax/vec/test/generate_body.ts b/tests/property/candid_rpc/functional_api/vec/test/generate_body.ts similarity index 72% rename from tests/property/candid_rpc/class_syntax/vec/test/generate_body.ts rename to tests/property/candid_rpc/functional_api/vec/test/generate_body.ts index e209ee6cd3..512c4d1b63 100644 --- a/tests/property/candid_rpc/class_syntax/vec/test/generate_body.ts +++ b/tests/property/candid_rpc/functional_api/vec/test/generate_body.ts @@ -1,6 +1,6 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; +import { Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { areParamsCorrectlyOrdered } from 'azle/test/property/are_params_correctly_ordered'; export function generateBody( namedParamVecs: Named>[], diff --git a/tests/property/candid_rpc/functional_syntax/vec/test/generate_tests.ts b/tests/property/candid_rpc/functional_api/vec/test/generate_tests.ts similarity index 76% rename from tests/property/candid_rpc/functional_syntax/vec/test/generate_tests.ts rename to tests/property/candid_rpc/functional_api/vec/test/generate_tests.ts index f668d981b1..682face3fd 100644 --- a/tests/property/candid_rpc/functional_syntax/vec/test/generate_tests.ts +++ b/tests/property/candid_rpc/functional_api/vec/test/generate_tests.ts @@ -1,6 +1,6 @@ -import { getActor, Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { AzleResult, Test, testEquality } from 'azle/property_tests/test'; +import { getActor, Named } from 'azle/test/property'; +import { CandidValueAndMeta } from 'azle/test/property/arbitraries/candid/candid_value_and_meta_arb'; +import { AzleResult, Test, testEquality } from 'azle/test/property/test'; export function generateTests( functionName: string, diff --git a/tests/property/candid_rpc/functional_syntax/vec/test/test.ts b/tests/property/candid_rpc/functional_api/vec/test/test.ts similarity index 64% rename from tests/property/candid_rpc/functional_syntax/vec/test/test.ts rename to tests/property/candid_rpc/functional_api/vec/test/test.ts index d0c06a73b6..faa39903a6 100644 --- a/tests/property/candid_rpc/functional_syntax/vec/test/test.ts +++ b/tests/property/candid_rpc/functional_api/vec/test/test.ts @@ -1,11 +1,11 @@ -import { defaultArrayConstraints, runPropTests } from 'azle/property_tests'; -import { VecArb } from 'azle/property_tests/arbitraries/candid/constructed/vec_arb'; +import { defaultArrayConstraints, runPropTests } from 'azle/test/property'; +import { VecArb } from 'azle/test/property/arbitraries/candid/constructed/vec_arb'; import { CanisterArb, CanisterConfig -} from 'azle/property_tests/arbitraries/canister_arb'; -import { QueryMethodArb } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; -import { Api } from 'azle/property_tests/arbitraries/types'; +} from 'azle/test/property/arbitraries/canister_arb'; +import { QueryMethodArb } from 'azle/test/property/arbitraries/canister_methods/query_method_arb'; +import { Api } from 'azle/test/property/arbitraries/types'; import fc from 'fast-check'; import { generateBody } from './generate_body'; diff --git a/tests/property/candid_rpc/functional_syntax/vec/tsconfig.json b/tests/property/candid_rpc/functional_api/vec/tsconfig.json similarity index 100% rename from tests/property/candid_rpc/functional_syntax/vec/tsconfig.json rename to tests/property/candid_rpc/functional_api/vec/tsconfig.json diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/init/test/generate_callable_method_body.ts b/tests/property/candid_rpc/functional_syntax/canister_methods/init/test/generate_callable_method_body.ts deleted file mode 100644 index d52e92001a..0000000000 --- a/tests/property/candid_rpc/functional_syntax/canister_methods/init/test/generate_callable_method_body.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { CorrespondingJSType } from 'azle/property_tests/arbitraries/candid/corresponding_js_type'; - -export function generateBody( - _namedParams: Named>[], - returnType: CandidValueAndMeta -): string { - return `return ${returnType.src.valueLiteral}`; -} diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/post_upgrade/test/generate_callable_method_body.ts b/tests/property/candid_rpc/functional_syntax/canister_methods/post_upgrade/test/generate_callable_method_body.ts deleted file mode 100644 index d52e92001a..0000000000 --- a/tests/property/candid_rpc/functional_syntax/canister_methods/post_upgrade/test/generate_callable_method_body.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { Named } from 'azle/property_tests'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { CorrespondingJSType } from 'azle/property_tests/arbitraries/candid/corresponding_js_type'; - -export function generateBody( - _namedParams: Named>[], - returnType: CandidValueAndMeta -): string { - return `return ${returnType.src.valueLiteral}`; -} diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/query/test/generate_body.ts b/tests/property/candid_rpc/functional_syntax/canister_methods/query/test/generate_body.ts deleted file mode 100644 index 0a78fed29d..0000000000 --- a/tests/property/candid_rpc/functional_syntax/canister_methods/query/test/generate_body.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { Named } from 'azle/property_tests'; -import { CandidReturnType } from 'azle/property_tests/arbitraries/candid/candid_return_type_arb'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { CorrespondingJSType } from 'azle/property_tests/arbitraries/candid/corresponding_js_type'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; - -export function generateBody( - namedParams: Named>[], - returnType: CandidValueAndMeta -): string { - const paramsAreCorrectlyOrdered = areParamsCorrectlyOrdered(namedParams); - - return ` - ${paramsAreCorrectlyOrdered} - - return ${returnType.src.valueLiteral} - `; -} diff --git a/tests/property/candid_rpc/functional_syntax/canister_methods/update/test/generate_body.ts b/tests/property/candid_rpc/functional_syntax/canister_methods/update/test/generate_body.ts deleted file mode 100644 index 0a78fed29d..0000000000 --- a/tests/property/candid_rpc/functional_syntax/canister_methods/update/test/generate_body.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { Named } from 'azle/property_tests'; -import { CandidReturnType } from 'azle/property_tests/arbitraries/candid/candid_return_type_arb'; -import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; -import { CorrespondingJSType } from 'azle/property_tests/arbitraries/candid/corresponding_js_type'; -import { areParamsCorrectlyOrdered } from 'azle/property_tests/are_params_correctly_ordered'; - -export function generateBody( - namedParams: Named>[], - returnType: CandidValueAndMeta -): string { - const paramsAreCorrectlyOrdered = areParamsCorrectlyOrdered(namedParams); - - return ` - ${paramsAreCorrectlyOrdered} - - return ${returnType.src.valueLiteral} - `; -}