diff --git a/test/src/internal/_test_functional_validateFunction.ts b/test/src/internal/_test_functional_validateFunction.ts index 54546cf9ea..a945ff4d53 100644 --- a/test/src/internal/_test_functional_validateFunction.ts +++ b/test/src/internal/_test_functional_validateFunction.ts @@ -26,7 +26,7 @@ export const _test_functional_validateFunction = throw new Error( `Bug on typia.functional.validateFunction(): failed to detect error on the ${name} type.`, ); - typia.assert(valid); + typia.assertEquals(valid); valid.errors.sort((x, y) => (x.path < y.path ? -1 : 1)); if ( diff --git a/test/src/internal/_test_functional_validateFunctionAsync.ts b/test/src/internal/_test_functional_validateFunctionAsync.ts index 9518b9e877..2699ef2801 100644 --- a/test/src/internal/_test_functional_validateFunctionAsync.ts +++ b/test/src/internal/_test_functional_validateFunctionAsync.ts @@ -31,7 +31,7 @@ export const _test_functional_validateFunctionAsync = throw new Error( `Bug on await typia.functional.validateFunction(): failed to detect error on the ${name} type.`, ); - typia.assert(valid); + typia.assertEquals(valid); valid.errors.sort((x, y) => (x.path < y.path ? -1 : 1)); if ( diff --git a/test/src/internal/_test_functional_validateParameters.ts b/test/src/internal/_test_functional_validateParameters.ts index 5f586ff561..0085b938fe 100644 --- a/test/src/internal/_test_functional_validateParameters.ts +++ b/test/src/internal/_test_functional_validateParameters.ts @@ -26,7 +26,7 @@ export const _test_functional_validateParameters = throw new Error( `Bug on typia.functional.validateFunction(): failed to detect error on the ${name} type.`, ); - typia.assert(valid); + typia.assertEquals(valid); valid.errors.sort((x, y) => (x.path < y.path ? -1 : 1)); if ( diff --git a/test/src/internal/_test_functional_validateParametersAsync.ts b/test/src/internal/_test_functional_validateParametersAsync.ts index c23af328f3..f8ea99d3dd 100644 --- a/test/src/internal/_test_functional_validateParametersAsync.ts +++ b/test/src/internal/_test_functional_validateParametersAsync.ts @@ -31,7 +31,7 @@ export const _test_functional_validateParametersAsync = throw new Error( `Bug on await typia.functional.validateFunction(): failed to detect error on the ${name} type.`, ); - typia.assert(valid); + typia.assertEquals(valid); valid.errors.sort((x, y) => (x.path < y.path ? -1 : 1)); if ( diff --git a/test/src/internal/_test_functional_validateReturn.ts b/test/src/internal/_test_functional_validateReturn.ts index 5bc0da6008..580256d075 100644 --- a/test/src/internal/_test_functional_validateReturn.ts +++ b/test/src/internal/_test_functional_validateReturn.ts @@ -26,7 +26,7 @@ export const _test_functional_validateReturn = throw new Error( `Bug on typia.functional.validateFunction(): failed to detect error on the ${name} type.`, ); - typia.assert(valid); + typia.assertEquals(valid); valid.errors.sort((x, y) => (x.path < y.path ? -1 : 1)); if ( diff --git a/test/src/internal/_test_http_validateFormData.ts b/test/src/internal/_test_http_validateFormData.ts index d6b52c0126..f70ca83384 100644 --- a/test/src/internal/_test_http_validateFormData.ts +++ b/test/src/internal/_test_http_validateFormData.ts @@ -17,6 +17,7 @@ export const _test_http_validateFormData = throw new Error( `Bug on typia.http.validateFormData(): failed to understand ${name} type.`, ); + typia.assertEquals>(result); const equal: boolean = result !== null && resolved_equal_to(name)(data, result.data); @@ -38,7 +39,7 @@ export const _test_http_validateFormData = `Bug on typia.http.validateFormData(): failed to detect error on the ${name} type.`, ); - typia.assert(valid); + typia.assertEquals(valid); expected.sort(); valid.errors.sort((x, y) => (x.path < y.path ? -1 : 1)); diff --git a/test/src/internal/_test_http_validateHeaders.ts b/test/src/internal/_test_http_validateHeaders.ts index 1f6605ba13..56a11e3554 100644 --- a/test/src/internal/_test_http_validateHeaders.ts +++ b/test/src/internal/_test_http_validateHeaders.ts @@ -22,6 +22,7 @@ export const _test_http_validateHeaders = throw new Error( `Bug on typia.http.validateHeaders(): failed to understand ${name} type.`, ); + typia.assertEquals>(result); const equal: boolean = result !== null && resolved_equal_to(name)(data, result.data); @@ -43,7 +44,7 @@ export const _test_http_validateHeaders = `Bug on typia.http.validateHeaders(): failed to detect error on the ${name} type.`, ); - typia.assert(valid); + typia.assertEquals(valid); expected.sort(); valid.errors.sort((x, y) => (x.path < y.path ? -1 : 1)); diff --git a/test/src/internal/_test_http_validateQuery.ts b/test/src/internal/_test_http_validateQuery.ts index 3584dddaee..60e6a2bdb1 100644 --- a/test/src/internal/_test_http_validateQuery.ts +++ b/test/src/internal/_test_http_validateQuery.ts @@ -17,6 +17,7 @@ export const _test_http_validateQuery = throw new Error( `Bug on typia.http.validateQuery(): failed to understand ${name} type.`, ); + typia.assertEquals>(result); const equal: boolean = result !== null && resolved_equal_to(name)(data, result.data); @@ -38,7 +39,7 @@ export const _test_http_validateQuery = `Bug on typia.http.validateQuery(): failed to detect error on the ${name} type.`, ); - typia.assert(valid); + typia.assertEquals(valid); expected.sort(); valid.errors.sort((x, y) => (x.path < y.path ? -1 : 1)); diff --git a/test/src/internal/_test_json_validateParse.ts b/test/src/internal/_test_json_validateParse.ts index 4abcf90f34..d571eb2e21 100644 --- a/test/src/internal/_test_json_validateParse.ts +++ b/test/src/internal/_test_json_validateParse.ts @@ -23,6 +23,7 @@ export const _test_json_validateParse = `Bug on typia.json.validateParse(): failed to understand the ${name} type.`, ); } + typia.assertEquals>(valid); const wrong: ISpoiled[] = []; for (const spoil of factory.SPOILERS ?? []) { diff --git a/test/src/internal/_test_json_validateStringify.ts b/test/src/internal/_test_json_validateStringify.ts index a4c8f50d16..54d908c5d6 100644 --- a/test/src/internal/_test_json_validateStringify.ts +++ b/test/src/internal/_test_json_validateStringify.ts @@ -15,6 +15,7 @@ export const _test_json_validateStringify = `Bug on typia.json.validateStringify(): failed to understand the ${name} type.`, ); + typia.assertEquals(valid); if (predicate(input, valid.data) === false) { throw new Error( `Bug on typia.json.validateStringify(): failed to understand the ${name} type.`, @@ -32,7 +33,7 @@ export const _test_json_validateStringify = `Bug on typia.json.validateStringify(): failed to detect error on the ${name} type.`, ); - typia.assert(valid); + typia.assertEquals(valid); expected.sort(); valid.errors.sort((x, y) => (x.path < y.path ? -1 : 1)); diff --git a/test/src/internal/_test_misc_validateClone.ts b/test/src/internal/_test_misc_validateClone.ts index 635b18211f..3b60b9fdc5 100644 --- a/test/src/internal/_test_misc_validateClone.ts +++ b/test/src/internal/_test_misc_validateClone.ts @@ -15,6 +15,7 @@ export const _test_misc_validateClone = `Bug on typia.misc.validateClone(): failed to understand the ${name} type.`, ); + typia.assertEquals>(valid); if (resolved_equal_to(name)(input, valid.data) === false) { throw new Error( `Bug on typia.misc.validateClone(): failed to understand the ${name} type.`, @@ -32,7 +33,7 @@ export const _test_misc_validateClone = `Bug on typia.misc.validateClone(): failed to detect error on the ${name} type.`, ); - typia.assert(valid); + typia.assertEquals(valid); expected.sort(); valid.errors.sort((x, y) => (x.path < y.path ? -1 : 1)); diff --git a/test/src/internal/_test_misc_validatePrune.ts b/test/src/internal/_test_misc_validatePrune.ts index f06c9cb485..34b1a36165 100644 --- a/test/src/internal/_test_misc_validatePrune.ts +++ b/test/src/internal/_test_misc_validatePrune.ts @@ -1,4 +1,4 @@ -import { IValidation, assert } from "typia"; +import { IValidation, assertEquals } from "typia"; import { TestStructure } from "../helpers/TestStructure"; @@ -45,7 +45,7 @@ export const _test_misc_validatePrune = `Bug on typia.misc.validatePrune(): failed to detect error on the ${name} type.`, ); - assert(valid); + assertEquals(valid); expected.sort(); valid.errors.sort((x, y) => (x.path < y.path ? -1 : 1)); diff --git a/test/src/internal/_test_notation_validateGeneral.ts b/test/src/internal/_test_notation_validateGeneral.ts index 15215dd3e4..2574a7245c 100644 --- a/test/src/internal/_test_notation_validateGeneral.ts +++ b/test/src/internal/_test_notation_validateGeneral.ts @@ -1,4 +1,4 @@ -import { IValidation } from "typia"; +import typia, { IValidation } from "typia"; import { TestStructure } from "../helpers/TestStructure"; import { _test_notation_general } from "./_test_notation_general"; @@ -19,6 +19,7 @@ export const _test_notation_validateGeneral = throw new Error( `Bug on typia.notations.validateX(): failed to understand the ${name} type.`, ); + typia.assertEquals>(res); return res.data; }, })(); @@ -34,6 +35,7 @@ export const _test_notation_validateGeneral = `Bug on typia.notations.validateX(): failed to detect error on the ${name} type.`, ); + typia.assertEquals(valid); expected.sort(); valid.errors.sort((x, y) => (x.path < y.path ? -1 : 1)); diff --git a/test/src/internal/_test_protobuf_validateDecode.ts b/test/src/internal/_test_protobuf_validateDecode.ts index 89918c1585..60e26fc4f8 100644 --- a/test/src/internal/_test_protobuf_validateDecode.ts +++ b/test/src/internal/_test_protobuf_validateDecode.ts @@ -1,4 +1,4 @@ -import typia from "typia"; +import typia, { IValidation } from "typia"; import { _test_protobuf_decode } from "./_test_protobuf_decode"; @@ -14,6 +14,7 @@ export const _test_protobuf_validateDecode = decode: (input) => { const result = functor.decode(input); if (!result.success) throw new Error(); + typia.assertEquals>(result); return result.data; }, encode: functor.encode, diff --git a/test/src/internal/_test_protobuf_validateEncode.ts b/test/src/internal/_test_protobuf_validateEncode.ts index d0b4aa42de..bafdb651c4 100644 --- a/test/src/internal/_test_protobuf_validateEncode.ts +++ b/test/src/internal/_test_protobuf_validateEncode.ts @@ -18,6 +18,7 @@ export const _test_protobuf_validateEncode = encode: (input: T) => { const result: typia.IValidation = functor.encode(input); if (!result.success) throw new Error(); + typia.assertEquals(result); return result.data; }, })(); @@ -33,7 +34,7 @@ export const _test_protobuf_validateEncode = `Bug on typia.json.validateEncode(): failed to detect error on the ${name} type.`, ); - typia.assert(valid); + typia.assertEquals(valid); expected.sort(); valid.errors.sort((x, y) => (x.path < y.path ? -1 : 1)); diff --git a/test/src/internal/_test_validate.ts b/test/src/internal/_test_validate.ts index ed55489c45..7b2bd5a02f 100644 --- a/test/src/internal/_test_validate.ts +++ b/test/src/internal/_test_validate.ts @@ -17,7 +17,7 @@ export const _test_validate = throw new Error( "Bug on typia.validate(): failed to archive the input value.", ); - typia.assert(valid); + typia.assertEquals(valid); const wrong: ISpoiled[] = []; for (const spoil of factory.SPOILERS ?? []) { @@ -30,7 +30,7 @@ export const _test_validate = `Bug on typia.validate(): failed to detect error on the ${name} type.`, ); - typia.assert(valid); + typia.assertEquals(valid); expected.sort(); valid.errors.sort((x, y) => (x.path < y.path ? -1 : 1)); diff --git a/test/src/internal/_test_validateEquals.ts b/test/src/internal/_test_validateEquals.ts index f15a30ccf1..ef4a06da40 100644 --- a/test/src/internal/_test_validateEquals.ts +++ b/test/src/internal/_test_validateEquals.ts @@ -21,7 +21,7 @@ export const _test_validateEquals = throw new Error( "Bug on typia.validateEquals(): failed to archive the input value.", ); - typia.assert(valid); + typia.assertEquals(valid); if (factory.ADDABLE === false) return; // EXPECTED