"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const _1 = require(".");
const assert_1 = require("../../util/assert");
(0, assert_1.default)((0, _1.kebabToCamel)('a-b-c') === 'aBC');
(0, assert_1.default)((0, _1.kebabToCamel)('aBC') === 'aBC');
(0, assert_1.default)((0, _1.kebabToCamel)('kebab-to-camel') === 'kebabToCamel');
(0, assert_1.default)((0, _1.kebabToCamel)('kebabToCamel') === 'kebabToCamel');
(0, assert_1.default)((0, _1.camelToKebab)('aBC') === 'a-b-c');
(0, assert_1.default)((0, _1.camelToKebab)('kebabToCamel') === 'kebab-to-camel');
(0, assert_1.default)((0, _1.camelToKebab)('a-b-c') === 'a-b-c');
(0, assert_1.default)((0, _1.camelToSnake)('aBC') === 'a_b_c');
(0, assert_1.default)((0, _1.camelToSnake)('kebabToCamel') === 'kebab_to_camel');
(0, assert_1.default)((0, _1.camelToSnake)('a_b_c') === 'a_b_c');
(0, assert_1.default)(!!_1.idRegex.exec('a'));
(0, assert_1.default)(!_1.nodeIdRegex.exec('a/b/c'));
(0, assert_1.default)(!_1.nodeIdRegex.exec('#a'));
(0, assert_1.default)(!!_1.nodeIdRegex.exec('a/input/c'));
(0, assert_1.default)(!!_1.nodeIdRegex.exec('a'));
(0, assert_1.default)((0, _1.isMetadataNodeId)('$/abcdef/description'));
(0, assert_1.default)((0, _1.isMetadataNodeId)('$/abcdef/input/fdfdrt/data'));
(0, assert_1.default)((0, _1.isMetadataNodeId)('$/abcdef/input/a + b/type'));
(0, assert_1.default)((0, _1.isMetadataNodeId)('$/#/auergl/type'));
// assert(!isMetadataNodeId('$/abcdef/input'))
(0, assert_1.default)(!(0, _1.isMetadataNodeId)('abcdef/data_abcdef'));
(0, assert_1.default)(!(0, _1.isMetadataNodeId)('abcdef'));
assert_1.default.equal((0, _1.getPinIdFromLinkPinNodeId)('abc/input/def'), 'def');
assert_1.default.equal((0, _1.getPinIdFromLinkPinNodeId)('abc/output/def'), 'def');
assert_1.default.equal((0, _1.isOutputPinId)('abc/output/def'), true);
assert_1.default.equal((0, _1.isOutputPinId)('abc'), false);
(0, assert_1.default)((0, _1.isUnitNodeId)('fjjwld'));
(0, assert_1.default)(!(0, _1.isUnitNodeId)('fjjwld/input/data'));
(0, assert_1.default)(!(0, _1.isUnitNodeId)('#bcsrew'));
(0, assert_1.default)(!(0, _1.isUnitNodeId)('%/input/bcsrew'));
(0, assert_1.default)((0, _1.isMergeNodeId)('@/abcdef'));
(0, assert_1.default)((0, _1.isMergeNodeId)('@/merge0'));
(0, assert_1.default)(!(0, _1.isMergeNodeId)('abcdef'));
(0, assert_1.default)(!(0, _1.isMergeNodeId)('merge0'));
(0, assert_1.default)(!(0, _1.isMergeNodeId)('%/input/merge0'));
assert_1.default.equal((0, _1.getExtNodeId)('input', 'abcdef', 'ghijlm'), '%/input/abcdef/ghijlm');
(0, assert_1.default)((0, _1.isExternalNodeId)('%/input/abcdef'));
(0, assert_1.default)((0, _1.isExternalNodeId)('%/output/abcdef'));
(0, assert_1.default)((0, _1.isExternalNodeId)('%/output/[a]'));
(0, assert_1.default)((0, _1.isExternalNodeId)('%/input/pjcmihkdo'));
(0, assert_1.default)(!(0, _1.isExternalNodeId)('abcdef'));
(0, assert_1.default)(!(0, _1.isExternalNodeId)('merge0'));
(0, assert_1.default)(!(0, _1.isExternalNodeId)('%/input/#/abcdef'));
(0, assert_1.default)((0, _1.isInternalNodeId)('^/input/abcdef/0'));
(0, assert_1.default)((0, _1.isInternalNodeId)('^/output/abcdef/0'));
assert_1.default.deepEqual((0, _1.segmentMetadataId)('?/abcdef/input/a/data'), {
    nodeId: 'abcdef/input/a',
    id: 'data',
});
assert_1.default.deepEqual((0, _1.segmentMergeNodeId)('@/abcdef'), {
    mergeId: 'abcdef',
});
(0, assert_1.default)((0, _1.isLinkId)('length_length/output/length'));
assert_1.default.equal((0, _1.getDatumNodeId)('abcdef'), '#/abcdef');
assert_1.default.equal((0, _1.isDatumNodeId)('#/abcdef'), true);
assert_1.default.equal((0, _1.isDatumNodeId)('#/abcdef/input/a'), true);
assert_1.default.equal((0, _1.isDatumNodeId)('#/if/output/a ? b'), true);
assert_1.default.equal((0, _1.isDatumNodeId)('abcdef'), false);
assert_1.default.equal((0, _1.isDatumNodeId)('#/abcdef_abcdef/input/a'), false);
assert_1.default.equal((0, _1.isDatumNodeId)('#/abcdef_abcdef/input/a'), false);
assert_1.default.equal((0, _1.getMetadataNodeId)('abcdef', 'description'), '$/abcdef/description');
assert_1.default.deepEqual((0, _1.segmentDatumNodeId)('#/abcdef/input/a'), {
    id: 'abcdef/input/a',
});
(0, assert_1.default)((0, _1.isLinkPinNodeId)('pugej/output/a + b'));
(0, assert_1.default)((0, _1.isLinkPinNodeId)('pugej/output/a % b'));
(0, assert_1.default)((0, _1.isLinkPinNodeId)('pugej/output/a'));
(0, assert_1.default)((0, _1.isLinkPinNodeId)('pugej/input/a'));
(0, assert_1.default)(!(0, _1.isLinkPinNodeId)('%/input/a'));
(0, assert_1.default)(!(0, _1.isLinkPinNodeId)('%/output/a'));
(0, assert_1.default)((0, _1.isPinNodeId)('pugej/output/a + b'));
(0, assert_1.default)((0, _1.isPinNodeId)('@/muuja'));
(0, assert_1.default)(!(0, _1.isPinNodeId)('%/input/a'));
(0, assert_1.default)(!(0, _1.isPinNodeId)('%/input/a % b'));
assert_1.default.equal((0, _1.isInputPinId)('wewekd/input/poiguy'), true);
assert_1.default.equal((0, _1.getPinNodeIdFromPinLinkId)('msvsq_mpvsq/output/a'), 'mpvsq/output/a');
assert_1.default.equal((0, _1.getUnitIdFromPinLinkId)('msvsq_mpvsq/output/a'), 'msvsq');
assert_1.default.deepEqual((0, _1.segmentLinkId)('?/mpvsq/output/a/type_mpvsq/output/a'), {
    source: '?/mpvsq/output/a/type',
    target: 'mpvsq/output/a',
});
//# sourceMappingURL=test.js.map