diff --git a/src/vscode_plugin/src/test/suite/gen/gendts.test.ts b/src/vscode_plugin/src/test/suite/gen/gendts.test.ts index fd48ca86e5131757657c04f185ad05486b4e003b..93ba8d8b4f81721750fa766249c4058bab645d72 100644 --- a/src/vscode_plugin/src/test/suite/gen/gendts.test.ts +++ b/src/vscode_plugin/src/test/suite/gen/gendts.test.ts @@ -22,3301 +22,6 @@ import * as genDts from '../../../gen/gendts' import { ClassObj, EnumObj, FuncObj, GenInfo, ParseObj, StructObj, UnionObj } from '../../../gen/datatype'; import * as fs from 'fs'; -suite('Gendts_transTskey2Ckey_Suite', () => { - vscode.window.showInformationMessage('Start all tests.'); - //1, 测试一般情况 - test('transTskey2Ckey_test_1', () => { - let resStr = genDts.transTskey2Ckey('int'); - assert.strictEqual(resStr, 'number'); - resStr = genDts.transTskey2Ckey('size_t'); - assert.strictEqual(resStr, 'number'); - resStr = genDts.transTskey2Ckey('double'); - assert.strictEqual(resStr, 'number'); - resStr = genDts.transTskey2Ckey('float'); - assert.strictEqual(resStr, 'number'); - resStr = genDts.transTskey2Ckey('short'); - assert.strictEqual(resStr, 'number'); - resStr = genDts.transTskey2Ckey('long'); - assert.strictEqual(resStr, 'number'); - resStr = genDts.transTskey2Ckey('uint8_t'); - assert.strictEqual(resStr, 'number'); - resStr = genDts.transTskey2Ckey('uint16_t'); - assert.strictEqual(resStr, 'number'); - resStr = genDts.transTskey2Ckey('uint32_t'); - assert.strictEqual(resStr, 'number'); - resStr = genDts.transTskey2Ckey('uint64_t'); - assert.strictEqual(resStr, 'number'); - resStr = genDts.transTskey2Ckey('int8_t'); - assert.strictEqual(resStr, 'number'); - resStr = genDts.transTskey2Ckey('int16_t'); - assert.strictEqual(resStr, 'number'); - resStr = genDts.transTskey2Ckey('int32_t'); - assert.strictEqual(resStr, 'number'); - resStr = genDts.transTskey2Ckey('int64_t'); - assert.strictEqual(resStr, 'number'); - resStr = genDts.transTskey2Ckey('unsigned'); - assert.strictEqual(resStr, 'number'); - - resStr = genDts.transTskey2Ckey('bool'); - assert.strictEqual(resStr, 'boolean'); - - resStr = genDts.transTskey2Ckey('char'); - assert.strictEqual(resStr, 'string'); - resStr = genDts.transTskey2Ckey('wchar_t'); - assert.strictEqual(resStr, 'string'); - resStr = genDts.transTskey2Ckey('char8_t'); - assert.strictEqual(resStr, 'string'); - resStr = genDts.transTskey2Ckey('char16_t'); - assert.strictEqual(resStr, 'string'); - resStr = genDts.transTskey2Ckey('char32_t'); - assert.strictEqual(resStr, 'string'); - //std::string::iterator - resStr = genDts.transTskey2Ckey('std::string::iterator'); - assert.strictEqual(resStr, 'IterableIterator'); - //std::vector - resStr = genDts.transTskey2Ckey('std::vector'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::vector'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::vector'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::vector'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::vector'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::vector'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::vector'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::vector'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::vector'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::vector'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::vector'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::vector'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::vector'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::vector'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::vector'); - assert.strictEqual(resStr, 'Array'); - - resStr = genDts.transTskey2Ckey('std::vector'); - assert.strictEqual(resStr, 'Array'); - - resStr = genDts.transTskey2Ckey('std::vector'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::vector'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::vector'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::vector'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::vector'); - assert.strictEqual(resStr, 'Array'); - //std::vector::iterator - resStr = genDts.transTskey2Ckey('std::vector::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::vector::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::vector::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::vector::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::vector::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::vector::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::vector::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::vector::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::vector::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::vector::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::vector::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::vector::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::vector::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::vector::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::vector::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - - resStr = genDts.transTskey2Ckey('std::vector::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - - resStr = genDts.transTskey2Ckey('std::vector::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::vector::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::vector::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::vector::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::vector::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - //std::array - resStr = genDts.transTskey2Ckey('std::array'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::array'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::array'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::array'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::array'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::array'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::array'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::array'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::array'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::array'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::array'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::array'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::array'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::array'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::array'); - assert.strictEqual(resStr, 'Array'); - - resStr = genDts.transTskey2Ckey('std::array'); - assert.strictEqual(resStr, 'Array'); - - resStr = genDts.transTskey2Ckey('std::array'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::array'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::array'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::array'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::array'); - assert.strictEqual(resStr, 'Array'); - //std::array::iterator - resStr = genDts.transTskey2Ckey('std::array::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::array::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::array::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::array::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::array::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::array::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::array::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::array::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::array::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::array::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::array::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::array::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::array::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::array::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::array::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - - resStr = genDts.transTskey2Ckey('std::array::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - - resStr = genDts.transTskey2Ckey('std::array::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::array::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::array::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::array::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::array::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - //std::deque - resStr = genDts.transTskey2Ckey('std::deque'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::deque'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::deque'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::deque'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::deque'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::deque'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::deque'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::deque'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::deque'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::deque'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::deque'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::deque'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::deque'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::deque'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::deque'); - assert.strictEqual(resStr, 'Array'); - - resStr = genDts.transTskey2Ckey('std::deque'); - assert.strictEqual(resStr, 'Array'); - - resStr = genDts.transTskey2Ckey('std::deque'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::deque'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::deque'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::deque'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::deque'); - assert.strictEqual(resStr, 'Array'); - //std::deque::iterator - resStr = genDts.transTskey2Ckey('std::deque::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::deque::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::deque::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::deque::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::deque::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::deque::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::deque::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::deque::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::deque::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::deque::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::deque::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::deque::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::deque::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::deque::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::deque::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - - resStr = genDts.transTskey2Ckey('std::deque::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - - resStr = genDts.transTskey2Ckey('std::deque::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::deque::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::deque::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::deque::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::deque::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - //std::list - resStr = genDts.transTskey2Ckey('std::list'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::list'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::list'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::list'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::list'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::list'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::list'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::list'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::list'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::list'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::list'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::list'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::list'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::list'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::list'); - assert.strictEqual(resStr, 'Array'); - - resStr = genDts.transTskey2Ckey('std::list'); - assert.strictEqual(resStr, 'Array'); - - resStr = genDts.transTskey2Ckey('std::list'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::list'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::list'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::list'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::list'); - assert.strictEqual(resStr, 'Array'); - //std::list::iterator - resStr = genDts.transTskey2Ckey('std::list::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::list::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::list::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::list::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::list::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::list::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::list::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::list::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::list::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::list::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::list::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::list::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::list::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::list::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::list::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - - resStr = genDts.transTskey2Ckey('std::list::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - - resStr = genDts.transTskey2Ckey('std::list::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::list::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::list::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::list::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::list::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - //std::forward_list - resStr = genDts.transTskey2Ckey('std::forward_list'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::forward_list'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::forward_list'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::forward_list'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::forward_list'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::forward_list'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::forward_list'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::forward_list'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::forward_list'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::forward_list'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::forward_list'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::forward_list'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::forward_list'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::forward_list'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::forward_list'); - assert.strictEqual(resStr, 'Array'); - - resStr = genDts.transTskey2Ckey('std::forward_list'); - assert.strictEqual(resStr, 'Array'); - - resStr = genDts.transTskey2Ckey('std::forward_list'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::forward_list'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::forward_list'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::forward_list'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::forward_list'); - assert.strictEqual(resStr, 'Array'); - //std::forward_list::iterator - resStr = genDts.transTskey2Ckey('std::forward_list::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::forward_list::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::forward_list::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::forward_list::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::forward_list::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::forward_list::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::forward_list::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::forward_list::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::forward_list::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::forward_list::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::forward_list::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::forward_list::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::forward_list::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::forward_list::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::forward_list::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - - resStr = genDts.transTskey2Ckey('std::forward_list::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - - resStr = genDts.transTskey2Ckey('std::forward_list::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::forward_list::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::forward_list::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::forward_list::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::forward_list::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - //std::stack - resStr = genDts.transTskey2Ckey('std::stack'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::stack'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::stack'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::stack'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::stack'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::stack'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::stack'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::stack'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::stack'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::stack'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::stack'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::stack'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::stack'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::stack'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::stack'); - assert.strictEqual(resStr, 'Array'); - - resStr = genDts.transTskey2Ckey('std::stack'); - assert.strictEqual(resStr, 'Array'); - - resStr = genDts.transTskey2Ckey('std::stack'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::stack'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::stack'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::stack'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::stack'); - assert.strictEqual(resStr, 'Array'); - //std::stack::iterator - resStr = genDts.transTskey2Ckey('std::stack::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::stack::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::stack::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::stack::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::stack::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::stack::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::stack::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::stack::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::stack::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::stack::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::stack::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::stack::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::stack::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::stack::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::stack::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - - resStr = genDts.transTskey2Ckey('std::stack::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - - resStr = genDts.transTskey2Ckey('std::stack::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::stack::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::stack::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::stack::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::stack::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - //std::queue - resStr = genDts.transTskey2Ckey('std::queue'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::queue'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::queue'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::queue'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::queue'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::queue'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::queue'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::queue'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::queue'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::queue'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::queue'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::queue'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::queue'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::queue'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::queue'); - assert.strictEqual(resStr, 'Array'); - - resStr = genDts.transTskey2Ckey('std::queue'); - assert.strictEqual(resStr, 'Array'); - - resStr = genDts.transTskey2Ckey('std::queue'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::queue'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::queue'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::queue'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::queue'); - assert.strictEqual(resStr, 'Array'); - //std::queue::iterator - resStr = genDts.transTskey2Ckey('std::queue::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::queue::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::queue::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::queue::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::queue::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::queue::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::queue::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::queue::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::queue::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::queue::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::queue::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::queue::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::queue::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::queue::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::queue::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - - resStr = genDts.transTskey2Ckey('std::queue::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - - resStr = genDts.transTskey2Ckey('std::queue::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::queue::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::queue::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::queue::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::queue::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - //std::valarray - resStr = genDts.transTskey2Ckey('std::valarray'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::valarray'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::valarray'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::valarray'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::valarray'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::valarray'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::valarray'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::valarray'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::valarray'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::valarray'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::valarray'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::valarray'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::valarray'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::valarray'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::valarray'); - assert.strictEqual(resStr, 'Array'); - - resStr = genDts.transTskey2Ckey('std::valarray'); - assert.strictEqual(resStr, 'Array'); - - resStr = genDts.transTskey2Ckey('std::valarray'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::valarray'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::valarray'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::valarray'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::valarray'); - assert.strictEqual(resStr, 'Array'); - //std::valarray::iterator - resStr = genDts.transTskey2Ckey('std::valarray::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::valarray::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::valarray::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::valarray::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::valarray::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::valarray::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::valarray::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::valarray::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::valarray::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::valarray::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::valarray::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::valarray::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::valarray::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::valarray::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::valarray::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - - resStr = genDts.transTskey2Ckey('std::valarray::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - - resStr = genDts.transTskey2Ckey('std::valarray::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::valarray::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::valarray::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::valarray::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::valarray::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - //std::priority_queue - resStr = genDts.transTskey2Ckey('std::priority_queue'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::priority_queue'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::priority_queue'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::priority_queue'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::priority_queue'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::priority_queue'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::priority_queue'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::priority_queue'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::priority_queue'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::priority_queue'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::priority_queue'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::priority_queue'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::priority_queue'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::priority_queue'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::priority_queue'); - assert.strictEqual(resStr, 'Array'); - - resStr = genDts.transTskey2Ckey('std::priority_queue'); - assert.strictEqual(resStr, 'Array'); - - resStr = genDts.transTskey2Ckey('std::priority_queue'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::priority_queue'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::priority_queue'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::priority_queue'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::priority_queue'); - assert.strictEqual(resStr, 'Array'); - //std::priority_queue::iterator - resStr = genDts.transTskey2Ckey('std::priority_queue::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::priority_queue::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::priority_queue::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::priority_queue::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::priority_queue::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::priority_queue::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::priority_queue::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::priority_queue::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::priority_queue::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::priority_queue::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::priority_queue::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::priority_queue::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::priority_queue::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::priority_queue::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::priority_queue::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - - resStr = genDts.transTskey2Ckey('std::priority_queue::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - - resStr = genDts.transTskey2Ckey('std::priority_queue::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::priority_queue::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::priority_queue::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::priority_queue::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::priority_queue::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - }); - - test('transTskey2Ckey_test_2', () => { - //std::map - let resStr = genDts.transTskey2Ckey('std::map'); - assert.strictEqual(resStr, 'Map'); - resStr = genDts.transTskey2Ckey('std::map'); - assert.strictEqual(resStr, 'Map'); - resStr = genDts.transTskey2Ckey('std::map'); - assert.strictEqual(resStr, 'Map'); - resStr = genDts.transTskey2Ckey('std::map'); - assert.strictEqual(resStr, 'Map'); - resStr = genDts.transTskey2Ckey('std::map'); - assert.strictEqual(resStr, 'Map'); - resStr = genDts.transTskey2Ckey('std::map'); - assert.strictEqual(resStr, 'Map'); - resStr = genDts.transTskey2Ckey('std::map'); - assert.strictEqual(resStr, 'Map'); - resStr = genDts.transTskey2Ckey('std::map'); - assert.strictEqual(resStr, 'Map'); - resStr = genDts.transTskey2Ckey('std::map'); - assert.strictEqual(resStr, 'Map'); - resStr = genDts.transTskey2Ckey('std::map'); - assert.strictEqual(resStr, 'Map'); - resStr = genDts.transTskey2Ckey('std::map'); - assert.strictEqual(resStr, 'Map'); - - resStr = genDts.transTskey2Ckey('std::map'); - assert.strictEqual(resStr, 'Map'); - resStr = genDts.transTskey2Ckey('std::map'); - assert.strictEqual(resStr, 'Map'); - - resStr = genDts.transTskey2Ckey('std::map'); - assert.strictEqual(resStr, 'Map'); - resStr = genDts.transTskey2Ckey('std::map'); - assert.strictEqual(resStr, 'Map'); - resStr = genDts.transTskey2Ckey('std::map'); - assert.strictEqual(resStr, 'Map'); - //std::map::itrator - resStr = genDts.transTskey2Ckey('std::map::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::map::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::map::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::map::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::map::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::map::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::map::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::map::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::map::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::map::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::map::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - - resStr = genDts.transTskey2Ckey('std::map::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::map::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - - resStr = genDts.transTskey2Ckey('std::map::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::map::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::map::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - //std::unordered_map - resStr = genDts.transTskey2Ckey('std::unordered_map'); - assert.strictEqual(resStr, 'Map'); - resStr = genDts.transTskey2Ckey('std::unordered_map'); - assert.strictEqual(resStr, 'Map'); - resStr = genDts.transTskey2Ckey('std::unordered_map'); - assert.strictEqual(resStr, 'Map'); - resStr = genDts.transTskey2Ckey('std::unordered_map'); - assert.strictEqual(resStr, 'Map'); - resStr = genDts.transTskey2Ckey('std::unordered_map'); - assert.strictEqual(resStr, 'Map'); - resStr = genDts.transTskey2Ckey('std::unordered_map'); - assert.strictEqual(resStr, 'Map'); - resStr = genDts.transTskey2Ckey('std::unordered_map'); - assert.strictEqual(resStr, 'Map'); - resStr = genDts.transTskey2Ckey('std::unordered_map'); - assert.strictEqual(resStr, 'Map'); - resStr = genDts.transTskey2Ckey('std::unordered_map'); - assert.strictEqual(resStr, 'Map'); - resStr = genDts.transTskey2Ckey('std::unordered_map'); - assert.strictEqual(resStr, 'Map'); - resStr = genDts.transTskey2Ckey('std::unordered_map'); - assert.strictEqual(resStr, 'Map'); - - resStr = genDts.transTskey2Ckey('std::unordered_map'); - assert.strictEqual(resStr, 'Map'); - resStr = genDts.transTskey2Ckey('std::unordered_map'); - assert.strictEqual(resStr, 'Map'); - - resStr = genDts.transTskey2Ckey('std::unordered_map'); - assert.strictEqual(resStr, 'Map'); - resStr = genDts.transTskey2Ckey('std::unordered_map'); - assert.strictEqual(resStr, 'Map'); - resStr = genDts.transTskey2Ckey('std::unordered_map'); - assert.strictEqual(resStr, 'Map'); - //std::unordered_map::itrator - resStr = genDts.transTskey2Ckey('std::unordered_map::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::unordered_map::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::unordered_map::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::unordered_map::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::unordered_map::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::unordered_map::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::unordered_map::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::unordered_map::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::unordered_map::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::unordered_map::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::unordered_map::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - - resStr = genDts.transTskey2Ckey('std::unordered_map::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::unordered_map::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - - resStr = genDts.transTskey2Ckey('std::unordered_map::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::unordered_map::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::unordered_map::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - //std::multimap - resStr = genDts.transTskey2Ckey('std::multimap'); - assert.strictEqual(resStr, 'Map'); - resStr = genDts.transTskey2Ckey('std::multimap'); - assert.strictEqual(resStr, 'Map'); - resStr = genDts.transTskey2Ckey('std::multimap'); - assert.strictEqual(resStr, 'Map'); - resStr = genDts.transTskey2Ckey('std::multimap'); - assert.strictEqual(resStr, 'Map'); - resStr = genDts.transTskey2Ckey('std::multimap'); - assert.strictEqual(resStr, 'Map'); - resStr = genDts.transTskey2Ckey('std::multimap'); - assert.strictEqual(resStr, 'Map'); - resStr = genDts.transTskey2Ckey('std::multimap'); - assert.strictEqual(resStr, 'Map'); - resStr = genDts.transTskey2Ckey('std::multimap'); - assert.strictEqual(resStr, 'Map'); - resStr = genDts.transTskey2Ckey('std::multimap'); - assert.strictEqual(resStr, 'Map'); - resStr = genDts.transTskey2Ckey('std::multimap'); - assert.strictEqual(resStr, 'Map'); - resStr = genDts.transTskey2Ckey('std::multimap'); - assert.strictEqual(resStr, 'Map'); - - resStr = genDts.transTskey2Ckey('std::multimap'); - assert.strictEqual(resStr, 'Map'); - resStr = genDts.transTskey2Ckey('std::multimap'); - assert.strictEqual(resStr, 'Map'); - - resStr = genDts.transTskey2Ckey('std::multimap'); - assert.strictEqual(resStr, 'Map'); - resStr = genDts.transTskey2Ckey('std::multimap'); - assert.strictEqual(resStr, 'Map'); - resStr = genDts.transTskey2Ckey('std::multimap'); - assert.strictEqual(resStr, 'Map'); - //std::multimap::itrator - resStr = genDts.transTskey2Ckey('std::multimap::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::multimap::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::multimap::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::multimap::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::multimap::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::multimap::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::multimap::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::multimap::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::multimap::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::multimap::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::multimap::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - - resStr = genDts.transTskey2Ckey('std::multimap::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::multimap::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - - resStr = genDts.transTskey2Ckey('std::multimap::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::multimap::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::multimap::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - //std::unordered_multimap - resStr = genDts.transTskey2Ckey('std::unordered_multimap'); - assert.strictEqual(resStr, 'Map'); - resStr = genDts.transTskey2Ckey('std::unordered_multimap'); - assert.strictEqual(resStr, 'Map'); - resStr = genDts.transTskey2Ckey('std::unordered_multimap'); - assert.strictEqual(resStr, 'Map'); - resStr = genDts.transTskey2Ckey('std::unordered_multimap'); - assert.strictEqual(resStr, 'Map'); - resStr = genDts.transTskey2Ckey('std::unordered_multimap'); - assert.strictEqual(resStr, 'Map'); - resStr = genDts.transTskey2Ckey('std::unordered_multimap'); - assert.strictEqual(resStr, 'Map'); - resStr = genDts.transTskey2Ckey('std::unordered_multimap'); - assert.strictEqual(resStr, 'Map'); - resStr = genDts.transTskey2Ckey('std::unordered_multimap'); - assert.strictEqual(resStr, 'Map'); - resStr = genDts.transTskey2Ckey('std::unordered_multimap'); - assert.strictEqual(resStr, 'Map'); - resStr = genDts.transTskey2Ckey('std::unordered_multimap'); - assert.strictEqual(resStr, 'Map'); - resStr = genDts.transTskey2Ckey('std::unordered_multimap'); - assert.strictEqual(resStr, 'Map'); - - resStr = genDts.transTskey2Ckey('std::unordered_multimap'); - assert.strictEqual(resStr, 'Map'); - resStr = genDts.transTskey2Ckey('std::unordered_multimap'); - assert.strictEqual(resStr, 'Map'); - - resStr = genDts.transTskey2Ckey('std::unordered_multimap'); - assert.strictEqual(resStr, 'Map'); - resStr = genDts.transTskey2Ckey('std::unordered_multimap'); - assert.strictEqual(resStr, 'Map'); - resStr = genDts.transTskey2Ckey('std::unordered_multimap'); - assert.strictEqual(resStr, 'Map'); - //std::unordered_multimap::itrator - resStr = genDts.transTskey2Ckey('std::unordered_multimap::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::unordered_multimap::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::unordered_multimap::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::unordered_multimap::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::unordered_multimap::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::unordered_multimap::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::unordered_multimap::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::unordered_multimap::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::unordered_multimap::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::unordered_multimap::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::unordered_multimap::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - - resStr = genDts.transTskey2Ckey('std::unordered_multimap::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::unordered_multimap::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - - resStr = genDts.transTskey2Ckey('std::unordered_multimap::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::unordered_multimap::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::unordered_multimap::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - //std::set - resStr = genDts.transTskey2Ckey('std::set'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::set'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::set'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::set'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::set'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::set'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::set'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::set'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::set'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::set'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::set'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::set'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::set'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::set'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::set'); - assert.strictEqual(resStr, 'Set'); - - resStr = genDts.transTskey2Ckey('std::set'); - assert.strictEqual(resStr, 'Set'); - - resStr = genDts.transTskey2Ckey('std::set'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::set'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::set'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::set'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::set'); - assert.strictEqual(resStr, 'Set'); - //std::set::iterator - resStr = genDts.transTskey2Ckey('std::set::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::set::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::set::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::set::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::set::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::set::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::set::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::set::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::set::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::set::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::set::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::set::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::set::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::set::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::set::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - - resStr = genDts.transTskey2Ckey('std::set::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - - resStr = genDts.transTskey2Ckey('std::set::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::set::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::set::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::set::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::set::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - //std::unordered_set - resStr = genDts.transTskey2Ckey('std::unordered_set'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::unordered_set'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::unordered_set'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::unordered_set'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::unordered_set'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::unordered_set'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::unordered_set'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::unordered_set'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::unordered_set'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::unordered_set'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::unordered_set'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::unordered_set'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::unordered_set'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::unordered_set'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::unordered_set'); - assert.strictEqual(resStr, 'Set'); - - resStr = genDts.transTskey2Ckey('std::unordered_set'); - assert.strictEqual(resStr, 'Set'); - - resStr = genDts.transTskey2Ckey('std::unordered_set'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::unordered_set'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::unordered_set'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::unordered_set'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::unordered_set'); - assert.strictEqual(resStr, 'Set'); - //std::unordered_set::iterator - resStr = genDts.transTskey2Ckey('std::unordered_set::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::unordered_set::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::unordered_set::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::unordered_set::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::unordered_set::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::unordered_set::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::unordered_set::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::unordered_set::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::unordered_set::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::unordered_set::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::unordered_set::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::unordered_set::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::unordered_set::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::unordered_set::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::unordered_set::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - - resStr = genDts.transTskey2Ckey('std::unordered_set::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - - resStr = genDts.transTskey2Ckey('std::unordered_set::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::unordered_set::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::unordered_set::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::unordered_set::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::unordered_set::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - //std::multiset - resStr = genDts.transTskey2Ckey('std::multiset'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::multiset'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::multiset'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::multiset'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::multiset'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::multiset'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::multiset'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::multiset'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::multiset'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::multiset'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::multiset'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::multiset'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::multiset'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::multiset'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::multiset'); - assert.strictEqual(resStr, 'Set'); - - resStr = genDts.transTskey2Ckey('std::multiset'); - assert.strictEqual(resStr, 'Set'); - - resStr = genDts.transTskey2Ckey('std::multiset'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::multiset'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::multiset'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::multiset'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::multiset'); - assert.strictEqual(resStr, 'Set'); - //std::multiset::iterator - resStr = genDts.transTskey2Ckey('std::multiset::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::multiset::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::multiset::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::multiset::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::multiset::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::multiset::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::multiset::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::multiset::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::multiset::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::multiset::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::multiset::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::multiset::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::multiset::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::multiset::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::multiset::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - - resStr = genDts.transTskey2Ckey('std::multiset::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - - resStr = genDts.transTskey2Ckey('std::multiset::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::multiset::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::multiset::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::multiset::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::multiset::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - //std::unordered_multiset - resStr = genDts.transTskey2Ckey('std::unordered_multiset'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::unordered_multiset'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::unordered_multiset'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::unordered_multiset'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::unordered_multiset'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::unordered_multiset'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::unordered_multiset'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::unordered_multiset'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::unordered_multiset'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::unordered_multiset'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::unordered_multiset'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::unordered_multiset'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::unordered_multiset'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::unordered_multiset'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::unordered_multiset'); - assert.strictEqual(resStr, 'Set'); - - resStr = genDts.transTskey2Ckey('std::unordered_multiset'); - assert.strictEqual(resStr, 'Set'); - - resStr = genDts.transTskey2Ckey('std::unordered_multiset'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::unordered_multiset'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::unordered_multiset'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::unordered_multiset'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::unordered_multiset'); - assert.strictEqual(resStr, 'Set'); - //std::unordered_multiset::iterator - resStr = genDts.transTskey2Ckey('std::unordered_multiset::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::unordered_multiset::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::unordered_multiset::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::unordered_multiset::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::unordered_multiset::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::unordered_multiset::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::unordered_multiset::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::unordered_multiset::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::unordered_multiset::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::unordered_multiset::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::unordered_multiset::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::unordered_multiset::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::unordered_multiset::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::unordered_multiset::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::unordered_multiset::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - - resStr = genDts.transTskey2Ckey('std::unordered_multiset::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - - resStr = genDts.transTskey2Ckey('std::unordered_multiset::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::unordered_multiset::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::unordered_multiset::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::unordered_multiset::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::unordered_multiset::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - //std::tuple - resStr = genDts.transTskey2Ckey('std::tuple'); - assert.strictEqual(resStr, '[number, string, boolean, number]'); - resStr = genDts.transTskey2Ckey('std::tuple'); - assert.strictEqual(resStr, '[number, string, number, number, number, number, string]'); - resStr = genDts.transTskey2Ckey('std::tuple'); - assert.strictEqual(resStr, '[string, number, string, number, number]'); - //std::pair - resStr = genDts.transTskey2Ckey('std::pair'); - assert.strictEqual(resStr, '[number, string, boolean, number]'); - resStr = genDts.transTskey2Ckey('std::pair'); - assert.strictEqual(resStr, '[number, string, number, number, number, number, string]'); - resStr = genDts.transTskey2Ckey('std::pair'); - assert.strictEqual(resStr, '[string, number, string, number, number]'); - //std::complex - resStr = genDts.transTskey2Ckey('std::complex'); - assert.strictEqual(resStr, '{real: number, imag: number}'); - resStr = genDts.transTskey2Ckey('std::complex'); - assert.strictEqual(resStr, '{real: number, imag: number}'); - resStr = genDts.transTskey2Ckey('std::complex'); - assert.strictEqual(resStr, '{real: number, imag: number}'); - resStr = genDts.transTskey2Ckey('std::complex'); - assert.strictEqual(resStr, '{real: number, imag: number}'); - resStr = genDts.transTskey2Ckey('std::complex'); - assert.strictEqual(resStr, '{real: number, imag: number}'); - resStr = genDts.transTskey2Ckey('std::complex'); - assert.strictEqual(resStr, '{real: number, imag: number}'); - resStr = genDts.transTskey2Ckey('std::complex'); - assert.strictEqual(resStr, '{real: number, imag: number}'); - //Date - resStr = genDts.transTskey2Ckey('std::time_t'); - assert.strictEqual(resStr, 'Date'); - resStr = genDts.transTskey2Ckey('std::clock_t'); - assert.strictEqual(resStr, 'Date'); - resStr = genDts.transTskey2Ckey('std::tm'); - assert.strictEqual(resStr, 'Date'); - resStr = genDts.transTskey2Ckey('std::chrono::duration'); - assert.strictEqual(resStr, 'Date'); - resStr = genDts.transTskey2Ckey('std::chrono::system_clock::time_point'); - assert.strictEqual(resStr, 'Date'); - resStr = genDts.transTskey2Ckey('std::chrono::steady_clock::time_point'); - assert.strictEqual(resStr, 'Date'); - resStr = genDts.transTskey2Ckey('std::chrono::seconds'); - assert.strictEqual(resStr, 'Date'); - resStr = genDts.transTskey2Ckey('std::chrono::milliseconds'); - assert.strictEqual(resStr, 'Date'); - resStr = genDts.transTskey2Ckey('std::chrono::microseconds'); - assert.strictEqual(resStr, 'Date'); - resStr = genDts.transTskey2Ckey('std::chrono::nanoseconds'); - assert.strictEqual(resStr, 'Date'); - //std::function - resStr = genDts.transTskey2Ckey('std::function'); - assert.strictEqual(resStr, '(param0: number, param1: number)=>number'); - resStr = genDts.transTskey2Ckey('std::function'); - assert.strictEqual(resStr, '(param0: number, param1: number)=>void'); - resStr = genDts.transTskey2Ckey('std::function'); - assert.strictEqual(resStr, '()=>void'); - resStr = genDts.transTskey2Ckey('std::function'); - assert.strictEqual(resStr, '(param0: number)=>number'); - resStr = genDts.transTskey2Ckey('std::function'); - assert.strictEqual(resStr, '(param0: number)=>void'); - resStr = genDts.transTskey2Ckey('std::function'); - assert.strictEqual(resStr, '(param0: string, param1: number, param2: number)=>void'); - resStr = genDts.transTskey2Ckey('std::function'); - assert.strictEqual(resStr, '(param0: string, param1: number)=>void'); - resStr = genDts.transTskey2Ckey('std::function'); - assert.strictEqual(resStr, '(param0: string, param1: number)=>number'); - resStr = genDts.transTskey2Ckey('std::function'); - assert.strictEqual(resStr, '(param0: string, param1: number)=>string'); - resStr = genDts.transTskey2Ckey('std::function'); - assert.strictEqual(resStr, '(param0: string, param1: number)=>number'); - resStr = genDts.transTskey2Ckey('std::function'); - assert.strictEqual(resStr, '(param0: number, param1: number)=>number'); - resStr = genDts.transTskey2Ckey('std::function'); - assert.strictEqual(resStr, '(param0: number)=>boolean'); - //std::unique_ptr - resStr = genDts.transTskey2Ckey('std::unique_ptr'); - assert.strictEqual(resStr, 'number'); - resStr = genDts.transTskey2Ckey('std::unique_ptr'); - assert.strictEqual(resStr, 'number'); - resStr = genDts.transTskey2Ckey('std::unique_ptr'); - assert.strictEqual(resStr, 'number'); - resStr = genDts.transTskey2Ckey('std::unique_ptr'); - assert.strictEqual(resStr, 'number'); - resStr = genDts.transTskey2Ckey('std::unique_ptr'); - assert.strictEqual(resStr, 'number'); - resStr = genDts.transTskey2Ckey('std::unique_ptr'); - assert.strictEqual(resStr, 'number'); - resStr = genDts.transTskey2Ckey('std::unique_ptr'); - assert.strictEqual(resStr, 'number'); - resStr = genDts.transTskey2Ckey('std::unique_ptr'); - assert.strictEqual(resStr, 'number'); - resStr = genDts.transTskey2Ckey('std::unique_ptr'); - assert.strictEqual(resStr, 'number'); - resStr = genDts.transTskey2Ckey('std::unique_ptr'); - assert.strictEqual(resStr, 'number'); - resStr = genDts.transTskey2Ckey('std::unique_ptr'); - assert.strictEqual(resStr, 'number'); - resStr = genDts.transTskey2Ckey('std::unique_ptr'); - assert.strictEqual(resStr, 'number'); - resStr = genDts.transTskey2Ckey('std::unique_ptr'); - assert.strictEqual(resStr, 'number'); - resStr = genDts.transTskey2Ckey('std::unique_ptr'); - assert.strictEqual(resStr, 'number'); - resStr = genDts.transTskey2Ckey('std::unique_ptr'); - assert.strictEqual(resStr, 'number'); - - resStr = genDts.transTskey2Ckey('std::unique_ptr'); - assert.strictEqual(resStr, 'boolean'); - - resStr = genDts.transTskey2Ckey('std::unique_ptr'); - assert.strictEqual(resStr, 'string'); - resStr = genDts.transTskey2Ckey('std::unique_ptr'); - assert.strictEqual(resStr, 'string'); - resStr = genDts.transTskey2Ckey('std::unique_ptr'); - assert.strictEqual(resStr, 'string'); - resStr = genDts.transTskey2Ckey('std::unique_ptr'); - assert.strictEqual(resStr, 'string'); - resStr = genDts.transTskey2Ckey('std::unique_ptr'); - assert.strictEqual(resStr, 'string'); - //std::shared_ptr - resStr = genDts.transTskey2Ckey('std::shared_ptr'); - assert.strictEqual(resStr, 'number'); - resStr = genDts.transTskey2Ckey('std::shared_ptr'); - assert.strictEqual(resStr, 'number'); - resStr = genDts.transTskey2Ckey('std::shared_ptr'); - assert.strictEqual(resStr, 'number'); - resStr = genDts.transTskey2Ckey('std::shared_ptr'); - assert.strictEqual(resStr, 'number'); - resStr = genDts.transTskey2Ckey('std::shared_ptr'); - assert.strictEqual(resStr, 'number'); - resStr = genDts.transTskey2Ckey('std::shared_ptr'); - assert.strictEqual(resStr, 'number'); - resStr = genDts.transTskey2Ckey('std::shared_ptr'); - assert.strictEqual(resStr, 'number'); - resStr = genDts.transTskey2Ckey('std::shared_ptr'); - assert.strictEqual(resStr, 'number'); - resStr = genDts.transTskey2Ckey('std::shared_ptr'); - assert.strictEqual(resStr, 'number'); - resStr = genDts.transTskey2Ckey('std::shared_ptr'); - assert.strictEqual(resStr, 'number'); - resStr = genDts.transTskey2Ckey('std::shared_ptr'); - assert.strictEqual(resStr, 'number'); - resStr = genDts.transTskey2Ckey('std::shared_ptr'); - assert.strictEqual(resStr, 'number'); - resStr = genDts.transTskey2Ckey('std::shared_ptr'); - assert.strictEqual(resStr, 'number'); - resStr = genDts.transTskey2Ckey('std::shared_ptr'); - assert.strictEqual(resStr, 'number'); - resStr = genDts.transTskey2Ckey('std::shared_ptr'); - assert.strictEqual(resStr, 'number'); - - resStr = genDts.transTskey2Ckey('std::shared_ptr'); - assert.strictEqual(resStr, 'boolean'); - - resStr = genDts.transTskey2Ckey('std::shared_ptr'); - assert.strictEqual(resStr, 'string'); - resStr = genDts.transTskey2Ckey('std::shared_ptr'); - assert.strictEqual(resStr, 'string'); - resStr = genDts.transTskey2Ckey('std::shared_ptr'); - assert.strictEqual(resStr, 'string'); - resStr = genDts.transTskey2Ckey('std::shared_ptr'); - assert.strictEqual(resStr, 'string'); - resStr = genDts.transTskey2Ckey('std::shared_ptr'); - assert.strictEqual(resStr, 'string'); - //std::weak_ptr - resStr = genDts.transTskey2Ckey('std::weak_ptr'); - assert.strictEqual(resStr, 'number'); - resStr = genDts.transTskey2Ckey('std::weak_ptr'); - assert.strictEqual(resStr, 'number'); - resStr = genDts.transTskey2Ckey('std::weak_ptr'); - assert.strictEqual(resStr, 'number'); - resStr = genDts.transTskey2Ckey('std::weak_ptr'); - assert.strictEqual(resStr, 'number'); - resStr = genDts.transTskey2Ckey('std::weak_ptr'); - assert.strictEqual(resStr, 'number'); - resStr = genDts.transTskey2Ckey('std::weak_ptr'); - assert.strictEqual(resStr, 'number'); - resStr = genDts.transTskey2Ckey('std::weak_ptr'); - assert.strictEqual(resStr, 'number'); - resStr = genDts.transTskey2Ckey('std::weak_ptr'); - assert.strictEqual(resStr, 'number'); - resStr = genDts.transTskey2Ckey('std::weak_ptr'); - assert.strictEqual(resStr, 'number'); - resStr = genDts.transTskey2Ckey('std::weak_ptr'); - assert.strictEqual(resStr, 'number'); - resStr = genDts.transTskey2Ckey('std::weak_ptr'); - assert.strictEqual(resStr, 'number'); - resStr = genDts.transTskey2Ckey('std::weak_ptr'); - assert.strictEqual(resStr, 'number'); - resStr = genDts.transTskey2Ckey('std::weak_ptr'); - assert.strictEqual(resStr, 'number'); - resStr = genDts.transTskey2Ckey('std::weak_ptr'); - assert.strictEqual(resStr, 'number'); - resStr = genDts.transTskey2Ckey('std::weak_ptr'); - assert.strictEqual(resStr, 'number'); - - resStr = genDts.transTskey2Ckey('std::weak_ptr'); - assert.strictEqual(resStr, 'boolean'); - - resStr = genDts.transTskey2Ckey('std::weak_ptr'); - assert.strictEqual(resStr, 'string'); - resStr = genDts.transTskey2Ckey('std::weak_ptr'); - assert.strictEqual(resStr, 'string'); - resStr = genDts.transTskey2Ckey('std::weak_ptr'); - assert.strictEqual(resStr, 'string'); - resStr = genDts.transTskey2Ckey('std::weak_ptr'); - assert.strictEqual(resStr, 'string'); - resStr = genDts.transTskey2Ckey('std::weak_ptr'); - assert.strictEqual(resStr, 'string'); - }); - - //2, 测试边界情况 - test('transTskey2Ckey_test_3', () => { - let resStr = genDts.transTskey2Ckey('std::string'); - assert.strictEqual(resStr, 'string'); - resStr = genDts.transTskey2Ckey('std::vector'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('char *'); - assert.strictEqual(resStr, 'string'); - resStr = genDts.transTskey2Ckey('long long'); - assert.strictEqual(resStr, 'number'); - resStr = genDts.transTskey2Ckey('unsigned short'); - assert.strictEqual(resStr, 'number'); - resStr = genDts.transTskey2Ckey('unsigned long'); - assert.strictEqual(resStr, 'number'); - resStr = genDts.transTskey2Ckey('unsigned long long'); - assert.strictEqual(resStr, 'number'); - resStr = genDts.transTskey2Ckey('std::vector'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::vector'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::vector'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::vector'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('int *'); - assert.strictEqual(resStr, 'number'); - resStr = genDts.transTskey2Ckey('std::vector'); - assert.strictEqual(resStr, 'Array'); - //std::vector::iterator - resStr = genDts.transTskey2Ckey('std::vector::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::vector::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::vector::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::vector::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::vector::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::vector::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::vector::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - //std::array - resStr = genDts.transTskey2Ckey('std::array'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::array'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::array'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::array'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::array'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::array'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::array'); - assert.strictEqual(resStr, 'Array'); - //std::array::iterator - resStr = genDts.transTskey2Ckey('std::array::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::array::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::array::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::array::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::array::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::array::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::array::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - //std::deque - resStr = genDts.transTskey2Ckey('std::deque'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::deque'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::deque'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::deque'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::deque'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::deque'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::deque'); - assert.strictEqual(resStr, 'Array'); - //std::deque::iterator - resStr = genDts.transTskey2Ckey('std::deque::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::deque::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::deque::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::deque::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::deque::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::deque::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::deque::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - //std::list - resStr = genDts.transTskey2Ckey('std::list'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::list'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::list'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::list'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::list'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::list'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::list'); - assert.strictEqual(resStr, 'Array'); - //std::list::iterator - resStr = genDts.transTskey2Ckey('std::list::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::list::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::list::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::list::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::list::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::list::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::list::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - //std::forward_list - resStr = genDts.transTskey2Ckey('std::forward_list'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::forward_list'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::forward_list'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::forward_list'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::forward_list'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::forward_list'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::forward_list'); - assert.strictEqual(resStr, 'Array'); - //std::forward_list::iterator - resStr = genDts.transTskey2Ckey('std::forward_list::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::forward_list::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::forward_list::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::forward_list::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::forward_list::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::forward_list::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::forward_list::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - //std::stack - resStr = genDts.transTskey2Ckey('std::stack'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::stack'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::stack'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::stack'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::stack'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::stack'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::stack'); - assert.strictEqual(resStr, 'Array'); - //std::stack::iterator - resStr = genDts.transTskey2Ckey('std::stack::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::stack::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::stack::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::stack::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::stack::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::stack::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::stack::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - //std::queue - resStr = genDts.transTskey2Ckey('std::queue'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::queue'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::queue'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::queue'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::queue'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::queue'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::queue'); - assert.strictEqual(resStr, 'Array'); - //std::queue::iterator - resStr = genDts.transTskey2Ckey('std::queue::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::queue::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::queue::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::queue::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::queue::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::queue::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::queue::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - //std::valarray - resStr = genDts.transTskey2Ckey('std::valarray'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::valarray'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::valarray'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::valarray'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::valarray'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::valarray'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::valarray'); - assert.strictEqual(resStr, 'Array'); - //std::valarray::iterator - resStr = genDts.transTskey2Ckey('std::valarray::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::valarray::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::valarray::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::valarray::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::valarray::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::valarray::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::valarray::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - //std::priority_queue - resStr = genDts.transTskey2Ckey('std::priority_queue'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::priority_queue'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::priority_queue'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::priority_queue'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::priority_queue'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::priority_queue'); - assert.strictEqual(resStr, 'Array'); - resStr = genDts.transTskey2Ckey('std::priority_queue'); - assert.strictEqual(resStr, 'Array'); - //std::priority_queue::iterator - resStr = genDts.transTskey2Ckey('std::priority_queue::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::priority_queue::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::priority_queue::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::priority_queue::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::priority_queue::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::priority_queue::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::priority_queue::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - //std::map - resStr = genDts.transTskey2Ckey('std::map'); - assert.strictEqual(resStr, 'Map'); - resStr = genDts.transTskey2Ckey('std::map'); - assert.strictEqual(resStr, 'Map'); - resStr = genDts.transTskey2Ckey('std::map'); - assert.strictEqual(resStr, 'Map'); - resStr = genDts.transTskey2Ckey('std::map'); - assert.strictEqual(resStr, 'Map'); - resStr = genDts.transTskey2Ckey('std::map'); - assert.strictEqual(resStr, 'Map'); - resStr = genDts.transTskey2Ckey('std::map'); - assert.strictEqual(resStr, 'Map'); - resStr = genDts.transTskey2Ckey('std::map'); - assert.strictEqual(resStr, 'Map'); - resStr = genDts.transTskey2Ckey('std::map'); - assert.strictEqual(resStr, 'Map'); - resStr = genDts.transTskey2Ckey('std::map'); - assert.strictEqual(resStr, 'Map'); - //std::map::iterator - resStr = genDts.transTskey2Ckey('std::map::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::map::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::map::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::map::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::map::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::map::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::map::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::map::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::map::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - //std::unordered_map - resStr = genDts.transTskey2Ckey('std::unordered_map'); - assert.strictEqual(resStr, 'Map'); - resStr = genDts.transTskey2Ckey('std::unordered_map'); - assert.strictEqual(resStr, 'Map'); - resStr = genDts.transTskey2Ckey('std::unordered_map'); - assert.strictEqual(resStr, 'Map'); - resStr = genDts.transTskey2Ckey('std::unordered_map'); - assert.strictEqual(resStr, 'Map'); - resStr = genDts.transTskey2Ckey('std::unordered_map'); - assert.strictEqual(resStr, 'Map'); - resStr = genDts.transTskey2Ckey('std::unordered_map'); - assert.strictEqual(resStr, 'Map'); - resStr = genDts.transTskey2Ckey('std::unordered_map'); - assert.strictEqual(resStr, 'Map'); - resStr = genDts.transTskey2Ckey('std::unordered_map'); - assert.strictEqual(resStr, 'Map'); - resStr = genDts.transTskey2Ckey('std::unordered_map'); - assert.strictEqual(resStr, 'Map'); - //std::unordered_map::iterator - resStr = genDts.transTskey2Ckey('std::unordered_map::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::unordered_map::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::unordered_map::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::unordered_map::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::unordered_map::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::unordered_map::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::unordered_map::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::unordered_map::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::unordered_map::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - //std::multimap - resStr = genDts.transTskey2Ckey('std::multimap'); - assert.strictEqual(resStr, 'Map'); - resStr = genDts.transTskey2Ckey('std::multimap'); - assert.strictEqual(resStr, 'Map'); - resStr = genDts.transTskey2Ckey('std::multimap'); - assert.strictEqual(resStr, 'Map'); - resStr = genDts.transTskey2Ckey('std::multimap'); - assert.strictEqual(resStr, 'Map'); - resStr = genDts.transTskey2Ckey('std::multimap'); - assert.strictEqual(resStr, 'Map'); - resStr = genDts.transTskey2Ckey('std::multimap'); - assert.strictEqual(resStr, 'Map'); - resStr = genDts.transTskey2Ckey('std::multimap'); - assert.strictEqual(resStr, 'Map'); - resStr = genDts.transTskey2Ckey('std::multimap'); - assert.strictEqual(resStr, 'Map'); - resStr = genDts.transTskey2Ckey('std::multimap'); - assert.strictEqual(resStr, 'Map'); - //std::multimap::iterator - resStr = genDts.transTskey2Ckey('std::multimap::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::multimap::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::multimap::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::multimap::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::multimap::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::multimap::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::multimap::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::multimap::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::multimap::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - //std::unordered_multimap - resStr = genDts.transTskey2Ckey('std::unordered_multimap'); - assert.strictEqual(resStr, 'Map'); - resStr = genDts.transTskey2Ckey('std::unordered_multimap'); - assert.strictEqual(resStr, 'Map'); - resStr = genDts.transTskey2Ckey('std::unordered_multimap'); - assert.strictEqual(resStr, 'Map'); - resStr = genDts.transTskey2Ckey('std::unordered_multimap'); - assert.strictEqual(resStr, 'Map'); - resStr = genDts.transTskey2Ckey('std::unordered_multimap'); - assert.strictEqual(resStr, 'Map'); - resStr = genDts.transTskey2Ckey('std::unordered_multimap'); - assert.strictEqual(resStr, 'Map'); - resStr = genDts.transTskey2Ckey('std::unordered_multimap'); - assert.strictEqual(resStr, 'Map'); - resStr = genDts.transTskey2Ckey('std::unordered_multimap'); - assert.strictEqual(resStr, 'Map'); - resStr = genDts.transTskey2Ckey('std::unordered_multimap'); - assert.strictEqual(resStr, 'Map'); - //std::unordered_multimap::iterator - resStr = genDts.transTskey2Ckey('std::unordered_multimap::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::unordered_multimap::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::unordered_multimap::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::unordered_multimap::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::unordered_multimap::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::unordered_multimap::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::unordered_multimap::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::unordered_multimap::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::unordered_multimap::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - //std::set - resStr = genDts.transTskey2Ckey('std::set'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::set'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::set'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::set'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::set'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::set'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::set'); - assert.strictEqual(resStr, 'Set'); - //std::set::iterator - resStr = genDts.transTskey2Ckey('std::set::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::set::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::set::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::set::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::set::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::set::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::set::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - //std::unordered_set - resStr = genDts.transTskey2Ckey('std::unordered_set'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::unordered_set'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::unordered_set'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::unordered_set'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::unordered_set'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::unordered_set'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::unordered_set'); - assert.strictEqual(resStr, 'Set'); - //std::unordered_set::iterator - resStr = genDts.transTskey2Ckey('std::unordered_set::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::unordered_set::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::unordered_set::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::unordered_set::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::unordered_set::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::unordered_set::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::unordered_set::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - //std::multiset - resStr = genDts.transTskey2Ckey('std::multiset'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::multiset'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::multiset'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::multiset'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::multiset'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::multiset'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::multiset'); - assert.strictEqual(resStr, 'Set'); - //std::multiset::iterator - resStr = genDts.transTskey2Ckey('std::multiset::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::multiset::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::multiset::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::multiset::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::multiset::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::multiset::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::multiset::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - //std::unordered_multiset - resStr = genDts.transTskey2Ckey('std::unordered_multiset'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::unordered_multiset'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::unordered_multiset'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::unordered_multiset'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::unordered_multiset'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::unordered_multiset'); - assert.strictEqual(resStr, 'Set'); - resStr = genDts.transTskey2Ckey('std::unordered_multiset'); - assert.strictEqual(resStr, 'Set'); - //std::unordered_multiset::iterator - resStr = genDts.transTskey2Ckey('std::unordered_multiset::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::unordered_multiset::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::unordered_multiset::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::unordered_multiset::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::unordered_multiset::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::unordered_multiset::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - resStr = genDts.transTskey2Ckey('std::unordered_multiset::iterator'); - assert.strictEqual(resStr, 'IterableIterator>'); - //std::tuple - resStr = genDts.transTskey2Ckey('std::tuple'); - assert.strictEqual(resStr, '[number, boolean, number, string, number, string, number]'); - //std::pair - resStr = genDts.transTskey2Ckey('std::pair'); - assert.strictEqual(resStr, '[number, boolean, number, string, number, string, number]'); - //std::complex - resStr = genDts.transTskey2Ckey('std::complex'); - assert.strictEqual(resStr, '{real: number, imag: number}'); - resStr = genDts.transTskey2Ckey('std::complex'); - assert.strictEqual(resStr, '{real: number, imag: number}'); - resStr = genDts.transTskey2Ckey('std::complex'); - assert.strictEqual(resStr, '{real: number, imag: number}'); - //Date - resStr = genDts.transTskey2Ckey('std::chrono::hours'); - assert.strictEqual(resStr, 'Date'); - resStr = genDts.transTskey2Ckey('std::chrono::minutes'); - assert.strictEqual(resStr, 'Date'); - //std::function - resStr = genDts.transTskey2Ckey('std::function'); - assert.strictEqual(resStr, '(param0: string)=>string'); - resStr = genDts.transTskey2Ckey('std::function'); - assert.strictEqual(resStr, '(param0: number, param1: number)=>number'); - resStr = genDts.transTskey2Ckey('std::function'); - assert.strictEqual(resStr, '(param0: number, param1: number)=>void'); - //std::unique_ptr - resStr = genDts.transTskey2Ckey('std::unique_ptr'); - assert.strictEqual(resStr, 'string'); - resStr = genDts.transTskey2Ckey('std::unique_ptr'); - assert.strictEqual(resStr, 'string'); - resStr = genDts.transTskey2Ckey('std::unique_ptr'); - assert.strictEqual(resStr, 'number'); - resStr = genDts.transTskey2Ckey('std::unique_ptr'); - assert.strictEqual(resStr, 'number'); - resStr = genDts.transTskey2Ckey('std::unique_ptr'); - assert.strictEqual(resStr, 'number'); - resStr = genDts.transTskey2Ckey('std::unique_ptr'); - assert.strictEqual(resStr, 'number'); - resStr = genDts.transTskey2Ckey('std::unique_ptr'); - assert.strictEqual(resStr, 'number'); - //std::shared_ptr - resStr = genDts.transTskey2Ckey('std::shared_ptr'); - assert.strictEqual(resStr, 'string'); - resStr = genDts.transTskey2Ckey('std::shared_ptr'); - assert.strictEqual(resStr, 'string'); - resStr = genDts.transTskey2Ckey('std::shared_ptr'); - assert.strictEqual(resStr, 'number'); - resStr = genDts.transTskey2Ckey('std::shared_ptr'); - assert.strictEqual(resStr, 'number'); - resStr = genDts.transTskey2Ckey('std::shared_ptr'); - assert.strictEqual(resStr, 'number'); - resStr = genDts.transTskey2Ckey('std::shared_ptr'); - assert.strictEqual(resStr, 'number'); - resStr = genDts.transTskey2Ckey('std::shared_ptr'); - assert.strictEqual(resStr, 'number'); - //std::weak_ptr - resStr = genDts.transTskey2Ckey('std::weak_ptr'); - assert.strictEqual(resStr, 'string'); - resStr = genDts.transTskey2Ckey('std::weak_ptr'); - assert.strictEqual(resStr, 'string'); - resStr = genDts.transTskey2Ckey('std::weak_ptr'); - assert.strictEqual(resStr, 'number'); - resStr = genDts.transTskey2Ckey('std::weak_ptr'); - assert.strictEqual(resStr, 'number'); - resStr = genDts.transTskey2Ckey('std::weak_ptr'); - assert.strictEqual(resStr, 'number'); - resStr = genDts.transTskey2Ckey('std::weak_ptr'); - assert.strictEqual(resStr, 'number'); - resStr = genDts.transTskey2Ckey('std::weak_ptr'); - assert.strictEqual(resStr, 'number'); - }); - - //3, 测试异常情况 - test('transTskey2Ckey_test_4', () => { - let resStr = genDts.transTskey2Ckey(''); - assert.strictEqual(resStr, ''); - resStr = genDts.transTskey2Ckey('int$#'); - assert.strictEqual(resStr, 'number'); - resStr = genDts.transTskey2Ckey('MyType'); - assert.strictEqual(resStr, 'any'); - resStr = genDts.transTskey2Ckey('defined type'); - assert.strictEqual(resStr, 'any'); - resStr = genDts.transTskey2Ckey('std::weak_ptr<'); - assert.strictEqual(resStr, 'any'); - }); - - //4, 测试错误情况 - test('transTskey2Ckey_test_5', () => { - let res = true; - try { - genDts.transTskey2Ckey(null); - } catch (error) { - res = false; - } - assert.strictEqual(res, false); - let res2 = true; - try { - genDts.transTskey2Ckey(undefined); - } catch (error) { - res2 = false; - } - assert.strictEqual(res2, false); - }); -}) - -suite('Gendts_enums_Suite', () => { - let enums: EnumObj[] = [ - { - name: 'EnumObj', - alias: '', - members: [ - 'ENUM_ONE', - 'ENUM_TWO', - ], - } - ] - //1, 测试一般情况 - test('getDtsEnum_test_1', () => { - let rootInfo: GenInfo = { - parseObj: { - enums: enums, - unions: [], - structs: [], - classes: [], - funcs: [], - }, - rawFilePath: 'e:\\test.h', - fileName: 'test', - } - let resStr = genDts.getDtsEnum(rootInfo); - assert.strictEqual(resStr, 'export enum EnumObj {\n\tENUM_ONE,\n\tENUM_TWO,\n};\n\n'); - - enums = [ - { - name: 'OperationType', - alias: 'OperationType', - members: [ - 'NEW', - 'APPEND', - 'REPLACE' - ] - } - ]; - rootInfo = { - parseObj: { - enums: enums, - unions: [], - structs: [], - classes: [], - funcs: [], - }, - rawFilePath: 'e:\\test.h', - fileName: 'test', - } - resStr = genDts.getDtsEnum(rootInfo); - assert.strictEqual(resStr, 'export enum OperationType {\n\tNEW,\n\tAPPEND,\n\tREPLACE,\n};\n\n'); - }); - - //2, 测试边界情况 - test('getDtsEnum_test_2', () => { - // 测试枚举为空的情况 - let rootInfo: GenInfo = { - parseObj: { - enums: [], - unions: [], - structs: [], - classes: [], - funcs: [], - }, - rawFilePath: 'e:\\test.h', - fileName: 'test', - } - let resStr = genDts.getDtsEnum(rootInfo); - assert.strictEqual(resStr, ''); - - enums = [ - { - name: 'OperationType', - alias: 'OperationType', - members: [ - 'NEW' - ], - } - ] - rootInfo = { - parseObj: { - enums: enums, - unions: [], - structs: [], - classes: [], - funcs: [], - }, - rawFilePath: 'e:\\test.h', - fileName: 'test', - } - resStr = genDts.getDtsEnum(rootInfo); - assert.strictEqual(resStr, 'export enum OperationType {\n\tNEW,\n};\n\n'); - - enums = [ - { - name: 'OType', - alias: 'OperationType', - members: [ - 'NEW' - ] - } - ]; - rootInfo = { - parseObj: { - enums: enums, - unions: [], - structs: [], - classes: [], - funcs: [], - }, - rawFilePath: 'e:\\test.h', - fileName: 'test', - } - resStr = genDts.getDtsEnum(rootInfo); - assert.strictEqual(resStr, 'export enum OType {\n\tNEW,\n};\n\nexport type OperationType = OType;\n\n'); - - enums = [ - { - name: 'OType', - alias: '', - members: [ - 'NEW' - ] - } - ]; - rootInfo = { - parseObj: { - enums: enums, - unions: [], - structs: [], - classes: [], - funcs: [], - }, - rawFilePath: 'e:\\test.h', - fileName: 'test', - } - resStr = genDts.getDtsEnum(rootInfo); - assert.strictEqual(resStr, 'export enum OType {\n\tNEW,\n};\n\n'); - - enums = [ - { - name: 'OType', - alias: '', - members: [ - 'NEW' - ] - }, - { - name: 'TOTSize1', - alias: '', - members: [ - 'DTS' - ] - } - ]; - rootInfo = { - parseObj: { - enums: enums, - unions: [], - structs: [], - classes: [], - funcs: [], - }, - rawFilePath: 'e:\\test.h', - fileName: 'test', - } - resStr = genDts.getDtsEnum(rootInfo); - assert.strictEqual(resStr, 'export enum OType {\n\tNEW,\n};\n\nexport enum TOTSize1 {\n\tDTS,\n};\n\n'); - - enums = [ - { - name: 'TEST_ENUM', - alias: '', - members: [ - 'ENUM_1 = 1', - 'ENUM_2 = 2' - ] - } - ]; - rootInfo = { - parseObj: { - enums: enums, - unions: [], - structs: [], - classes: [], - funcs: [], - }, - rawFilePath: 'e:\\test.h', - fileName: 'test', - } - resStr = genDts.getDtsEnum(rootInfo); - assert.strictEqual(resStr, 'export enum TEST_ENUM {\n\tENUM_1 = 1,\n\tENUM_2 = 2,\n};\n\n'); - - enums = [ - { - name: 'TEST_ENUM', - alias: '', - members: [ - 'ENUM_1', - 'ENUM_2' - ] - } - ]; - rootInfo = { - parseObj: { - enums: enums, - unions: [], - structs: [], - classes: [], - funcs: [], - }, - rawFilePath: 'e:\\test.h', - fileName: 'test', - } - resStr = genDts.getDtsEnum(rootInfo); - assert.strictEqual(resStr, 'export enum TEST_ENUM {\n\tENUM_1,\n\tENUM_2,\n};\n\n'); - }); - - //3, 测试异常情况 - test('getDtsEnum_test_3', () => { - // 1.parseObj.enums不存在 - let rootInfo: GenInfo = { - parseObj: { - unions: [], - structs: [], - classes: [], - funcs: [], - }, - rawFilePath: 'e:\\test.h', - fileName: 'test', - } - let res = true; - try { - genDts.getDtsEnum(rootInfo); - } catch (error) { - res = false; - } - assert.strictEqual(res, false); - // 2.enums中的member不存在 - let rootInfo2: GenInfo = { - parseObj: { - enums: [{ - name: 'EnumObj', - alias: '', - }], - unions: [], - structs: [], - classes: [], - funcs: [] - }, - rawFilePath: 'e:\\test.h', - fileName: 'test', - } - let res2 = true; - try { - genDts.getDtsEnum(rootInfo2); - } catch (error) { - res2 = false; - } - assert.strictEqual(res2, false); - //3.enums的name为空 - enums = [ - { - name: '', - alias: '', - members: [ - 'ENUM_1' - ] - } - ]; - let rootInfo3: GenInfo = { - parseObj: { - enums: enums, - unions: [], - structs: [], - classes: [], - funcs: [], - }, - rawFilePath: 'e:\\test.h', - fileName: 'test', - } - let res3 = genDts.getDtsEnum(rootInfo3); - assert.strictEqual(res3, 'export enum {\n\tENUM_1,\n};\n\n'); - //3.enums的name为空 - enums = [ - { - name: '', - alias: '', - members: [] - } - ]; - let rootInfo4: GenInfo = { - parseObj: { - enums: enums, - unions: [], - structs: [], - classes: [], - funcs: [], - }, - rawFilePath: 'e:\\test.h', - fileName: 'test', - } - let res4 = genDts.getDtsEnum(rootInfo4); - assert.strictEqual(res4, 'export enum {\n};\n\n'); - }); - - //4, 测试错误情况 - test('getDtsEnum_test_4', () => { - let res = true; - try { - genDts.getDtsEnum(null); - } catch (error) { - res = false; - } - assert.strictEqual(res, false); - - let res2 = true; - try { - genDts.getDtsEnum(undefined); - } catch (error) { - res2 = false; - } - assert.strictEqual(res2, false); - }); -}) - -suite('Gendts_unions_Suite', () => { - let unions: UnionObj[] = [ - { - name: 'UnionObj', - alias: '', - members: [ - { - type: 'int', - name: 'v1', - arraySize: -1, - arraySizeList: [] - }, - { - type: 'double', - name: 'v2', - arraySize: -1, - arraySizeList: [] - } - ], - }, - ]; - //1, 测试一般情况 - test('getDtsUnions_test_1', () => { - let rootInfo = { - parseObj: { - enums: [], - unions: unions, - structs: [], - classes: [], - funcs: [] - }, - rawFilePath: 'e:\\test.h', - fileName: 'test', - }; - let resStr = genDts.getDtsUnions(rootInfo); - assert.strictEqual(resStr, 'export type UnionObj = number | number ;\n\n'); - - let unions1: UnionObj[] = [ - { - name: 'OperationType', - alias: 'OperationType', - members: [ - { - type: 'int', - name: 'len', - arraySize: -1, - arraySizeList: [] - }, - { - type: 'float', - name: 'width', - arraySize: -1, - arraySizeList: [] - }, - { - type: 'char', - name: 'name', - arraySize: 20, - arraySizeList: [20] - } - ] - } - ] - rootInfo = { - parseObj: { - enums: [], - unions: unions1, - structs: [], - classes: [], - funcs: [] - }, - rawFilePath: 'e:\\test.h', - fileName: 'test', - }; - resStr = genDts.getDtsUnions(rootInfo); - assert.strictEqual(resStr, 'export type OperationType = number | number | string ;\n\n'); - - }); - - // 2, 测试边界情况 - test('getDtsUnions_test_2', () => { - // unions是空 - let rootInfo: GenInfo = { - parseObj: { - enums: [], - unions: [], - structs: [], - classes: [], - funcs: [] - }, - rawFilePath: 'e:\\test.h', - fileName: 'test', - }; - let resStr = genDts.getDtsUnions(rootInfo); - assert.strictEqual(resStr, ''); - - let unions1: UnionObj[] = [ - { - name: 'OperationType', - alias: 'OperationType', - members: [ - { - type: 'int', - name: 'len', - arraySize: -1, - arraySizeList: [] - }, - { - type: 'float', - name: 'width', - arraySize: -1, - arraySizeList: [] - }, - { - type: 'char', - name: 'name', - arraySize: 20, - arraySizeList: [20, 10] - } - ] - } - ] - rootInfo = { - parseObj: { - enums: [], - unions: unions1, - structs: [], - classes: [], - funcs: [] - }, - rawFilePath: 'e:\\test.h', - fileName: 'test', - }; - resStr = genDts.getDtsUnions(rootInfo); - assert.strictEqual(resStr, 'export type OperationType = number | number | string ;\n\n'); - - unions1 = [ - { - name: 'optype', - alias: 'OperationType', - members: [ - { - type: 'int', - name: 'len', - arraySize: -1, - arraySizeList: [] - }, - { - type: 'float', - name: 'width', - arraySize: -1, - arraySizeList: [] - }, - { - type: 'char', - name: 'name', - arraySize: 20, - arraySizeList: [20, 10] - } - ] - } - ] - rootInfo = { - parseObj: { - enums: [], - unions: unions1, - structs: [], - classes: [], - funcs: [] - }, - rawFilePath: 'e:\\test.h', - fileName: 'test', - }; - resStr = genDts.getDtsUnions(rootInfo); - assert.strictEqual(resStr, 'export type optype = number | number | string ;\n\nexport type OperationType = optype;\n\n'); - - unions1 = [ - { - name: 'OperationType', - alias: 'OperationType', - members: [ - { - type: 'char', - name: 'ch', - arraySize: -1, - arraySizeList: [] - }, - { - type: 'int', - name: 'len', - arraySize: -1, - arraySizeList: [] - }, - { - type: 'short', - name: 'slen', - arraySize: -1, - arraySizeList: [] - }, - { - type: 'long long', - name: 'llint', - arraySize: -1, - arraySizeList: [] - }, - { - type: 'float', - name: 'width', - arraySize: -1, - arraySizeList: [] - }, - { - type: 'double', - name: 'dlen', - arraySize: -1, - arraySizeList: [] - }, - { - type: 'long double', - name: 'ldlen', - arraySize: -1, - arraySizeList: [] - }, - { - type: 'void*', - name: 'ptr', - arraySize: -1, - arraySizeList: [] - }, - { - type: 'char', - name: 'name', - arraySize: 20, - arraySizeList: [20, 10] - }, - { - type: 'char', - name: 'ch3', - arraySize: 10, - arraySizeList: [10, 20, 30] - }, - { - type: 'long long', - name: 'llint3', - arraySize: 10, - arraySizeList: [10, 20, 30] - }, - { - type: 'float', - name: 'width3', - arraySize: 10, - arraySizeList: [10, 20, 30] - }, - { - type: 'double', - name: 'dlens', - arraySize: 10, - arraySizeList: [10, 20, 30] - }, - { - type: 'long double', - name: 'ldlen3', - arraySize: 10, - arraySizeList: [10, 20, 30] - }, - { - type: 'void*', - name: 'ptr3', - arraySize: 10, - arraySizeList: [10, 20, 30] - }, - { - type: 'signed char', - name: 'sch', - arraySize: -1, - arraySizeList: [] - }, - { - type: 'signed int', - name: 'silen', - arraySize: -1, - arraySizeList: [] - }, - { - type: 'signed short', - name: 'slen', - arraySize: -1, - arraySizeList: [] - }, - { - type: 'signed long', - name: 'sllen', - arraySize: -1, - arraySizeList: [] - }, - { - type: 'signed long long', - name: 'sllint', - arraySize: -1, - arraySizeList: [] - }, - { - type: 'signed float', - name: 'swidth', - arraySize: -1, - arraySizeList: [] - }, - { - type: 'signed double', - name: 'sdlen', - arraySize: -1, - arraySizeList: [] - }, - { - type: 'signed void*', - name: 'ptr', - arraySize: -1, - arraySizeList: [] - }, - { - type: 'unsigned char', - name: 'uch', - arraySize: -1, - arraySizeList: [] - }, - { - type: 'unsigned int', - name: 'ulen', - arraySize: -1, - arraySizeList: [] - }, - { - type: 'unsigned short', - name: 'uslen', - arraySize: -1, - arraySizeList: [] - }, - { - type: 'unsigned long', - name: 'ullen', - arraySize: -1, - arraySizeList: [] - }, - { - type: 'unsigned long long', - name: 'ullint', - arraySize: -1, - arraySizeList: [] - }, - { - type: 'unsigned float', - name: 'uwidth', - arraySize: -1, - arraySizeList: [] - }, - { - type: 'unsigned double', - name: 'udlen', - arraySize: -1, - arraySizeList: [] - }, - { - type: 'unsigned long double', - name: 'uld', - arraySize: -1, - arraySizeList: [] - }, - { - type: 'unsigned void*', - name: 'uptr', - arraySize: -1, - arraySizeList: [] - }, - { - type: 'bool bflag', - name: 'uptr', - arraySize: -1, - arraySizeList: [] - }, - ] - } - ] - rootInfo = { - parseObj: { - enums: [], - unions: unions1, - structs: [], - classes: [], - funcs: [] - }, - rawFilePath: 'e:\\test.h', - fileName: 'test', - }; - resStr = genDts.getDtsUnions(rootInfo); - assert.strictEqual(resStr, 'export type OperationType = string | number | number | number | number | number | number | void | string | string | number | number | number | number | void | string | number | number | number | number | number | number | void | string | number | number | number | number | number | number | number | number | boolean ;\n\n'); - - unions1 = [ - { - name: 'OType', - alias: '', - members: [ - { - type: 'int', - name: 'len', - arraySize: -1, - arraySizeList: [] - } - ] - }, - { - name: 'TOTSize1', - alias: '', - members:[ - { - type: 'int', - name: 'len', - arraySize: -1, - arraySizeList: [] - } - ] - } - ] - rootInfo = { - parseObj: { - enums: [], - unions: unions1, - structs: [], - classes: [], - funcs: [] - }, - rawFilePath: 'e:\\test.h', - fileName: 'test', - }; - resStr = genDts.getDtsUnions(rootInfo); - assert.strictEqual(resStr, 'export type OType = number ;\n\nexport type TOTSize1 = number ;\n\n'); - - unions1 = [ - { - name: 'TEST_ENUM', - alias: '', - members: [ - { - type: 'int', - name: 'len', - arraySize: -1, - arraySizeList: [] - }, - { - type: 'char', - name: 'name', - arraySize: 10, - arraySizeList: [10] - } - ] - } - ] - rootInfo = { - parseObj: { - enums: [], - unions: unions1, - structs: [], - classes: [], - funcs: [] - }, - rawFilePath: 'e:\\test.h', - fileName: 'test', - }; - resStr = genDts.getDtsUnions(rootInfo); - assert.strictEqual(resStr, 'export type TEST_ENUM = number | string ;\n\n'); - - unions1 = [ - { - name: 'TEST_ENUM', - alias: 'TEST_ENUM_T', - members: [ - { - type: 'int', - name: 'len', - arraySize: -1, - arraySizeList: [] - }, - { - type: 'char', - name: 'name', - arraySize: 10, - arraySizeList: [10] - }, - { - type: 'ENUM_T', - name: 'tenum', - arraySize: -1, - arraySizeList: [] - }, - { - type: 'CLASS_T', - name: 'tclass', - arraySize: -1, - arraySizeList:[] - }, - { - type: 'STRUCT_T', - name: 'tstruct', - arraySize: -1, - arraySizeList:[] - }, - { - type: 'UNION_T', - name: 'tunion', - arraySize: -1, - arraySizeList:[] - } - ] - } - ] - rootInfo = { - parseObj: { - enums: [], - unions: unions1, - structs: [], - classes: [], - funcs: [] - }, - rawFilePath: 'e:\\test.h', - fileName: 'test', - }; - resStr = genDts.getDtsUnions(rootInfo); - assert.strictEqual(resStr, 'export type TEST_ENUM = number | string | any | any | any | any ;\n\nexport type TEST_ENUM_T = TEST_ENUM;\n\n'); - }); - - //3, 测试异常情况 - test('getDtsUnions_test_3', () => { - // 1.没有parseObj.unions属性 - let rootInfo: GenInfo = { - parseObj: { - enums: [], - structs: [], - classes: [], - funcs: [], - }, - rawFilePath: 'e:\\test.h', - fileName: 'test', - } - let res = true; - try { - genDts.getDtsUnions(rootInfo); - } catch (error) { - res = false; - } - assert.strictEqual(res, false); - // 2. unions没有members属性 - let rootInfo2: GenInfo = { - parseObj: { - enums: [], - structs: [], - unions: [{ - name: 'UnionObj', - alias: '', - }], - classes: [], - funcs: [] - }, - rawFilePath: 'e:\\test.h', - fileName: 'test', - } - let res2 = true; - try { - genDts.getDtsUnions(rootInfo2); - } catch (error) { - res2 = false; - } - assert.strictEqual(res2, false); - }); - - //4, 测试错误情况 - test('getDtsUnions_test_4', () => { - let res = true; - try { - genDts.getDtsUnions(null); - } catch (error) { - res = false; - } - assert.strictEqual(res, false); - - let res2 = true; - try { - genDts.getDtsUnions(undefined); - } catch (error) { - res2 = false; - } - assert.strictEqual(res2, false); - }); -}) - suite('Gendts_structs_Suite', () => { let structs: StructObj[] = [ { diff --git a/src/vscode_plugin/src/test/suite/gen/gendtsenum.test.ts b/src/vscode_plugin/src/test/suite/gen/gendtsenum.test.ts new file mode 100644 index 0000000000000000000000000000000000000000..c3f631504b5fe579148c1a8285cbdca02dd6160c --- /dev/null +++ b/src/vscode_plugin/src/test/suite/gen/gendtsenum.test.ts @@ -0,0 +1,710 @@ +/* +* Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +import * as assert from 'assert'; + +// You can import and use all API from the 'vscode' module +// as well as import your extension to test it +import * as vscode from 'vscode'; +import * as genDts from '../../../gen/gendts' +import { ClassObj, EnumObj, FuncObj, GenInfo, ParseObj, StructObj, UnionObj } from '../../../gen/datatype'; +import * as fs from 'fs'; + +suite('Gendts_enums_Suite', () => { + //1, 测试一般情况 + test('getDtsEnum_test_1', () => { + //1.enums中alias为空 + let enums: EnumObj[] = [ + { + name: 'EnumObj', + alias: '', + members: [ + 'ENUM_ONE', + 'ENUM_TWO', + ], + } + ] + let rootInfo: GenInfo = { + parseObj: { + enums: enums, + unions: [], + structs: [], + classes: [], + funcs: [], + }, + rawFilePath: 'e:\\test.h', + fileName: 'test', + } + let resStr = genDts.getDtsEnum(rootInfo); + assert.strictEqual(resStr, 'export enum EnumObj {\n\tENUM_ONE,\n\tENUM_TWO,\n};\n\n'); + //2.enums中alias不为空,且alias不等于name + enums = [ + { + name: 'EnumObj', + alias: 'OperationType', + members: [ + 'ENUM_ONE', + 'ENUM_TWO', + ] + } + ]; + rootInfo = { + parseObj: { + enums: enums, + unions: [], + structs: [], + classes: [], + funcs: [], + }, + rawFilePath: 'e:\\test.h', + fileName: 'test', + } + resStr = genDts.getDtsEnum(rootInfo); + assert.strictEqual(resStr, 'export enum EnumObj {\n\tENUM_ONE,\n\tENUM_TWO,\n};\n\nexport type OperationType = EnumObj;\n\n'); + //3.enums中alias和name相同 + enums = [ + { + name: 'EnumObj', + alias: 'EnumObj', + members: [ + 'ENUM_ONE', + 'ENUM_TWO', + ] + } + ]; + rootInfo = { + parseObj: { + enums: enums, + unions: [], + structs: [], + classes: [], + funcs: [], + }, + rawFilePath: 'e:\\test.h', + fileName: 'test', + } + resStr = genDts.getDtsEnum(rootInfo); + assert.strictEqual(resStr, 'export enum EnumObj {\n\tENUM_ONE,\n\tENUM_TWO,\n};\n\n'); + }); + + //2, 测试边界情况 + test('getDtsEnum_test_2', () => { + //1.members仅有一个元素 + let enums = [ + { + name: 'EnumObj', + alias: '', + members: [ + 'ENUM_ONE' + ], + } + ] + let rootInfo = { + parseObj: { + enums: enums, + unions: [], + structs: [], + classes: [], + funcs: [], + }, + rawFilePath: 'e:\\test.h', + fileName: 'test', + } + let resStr = genDts.getDtsEnum(rootInfo); + assert.strictEqual(resStr, 'export enum EnumObj {\n\tENUM_ONE,\n};\n\n'); + //2.members有多个元素 + enums = [ + { + name: 'EnumObj', + alias: '', + members: [ + '摇粒绒', + '1 + 1 > 2', + '0817 deadline', + 'moon', + 'flower', + 'light', + 'ball_796', + 'purple', + 'white', + 'cute', + 'puppy', + 'jiashi假使', + 'city_walk', + 'teeee_eeeet', + 'cloth', + 'dog_A_cat', + 'extension', + 'OpenHarmony', + 'Ts', + 'next_year', + 'green park', + 'river', + 'std::string', + 'std::array', + 'bear', + 'older', + 'house', + 'la77LA66', + 'ENUM_ONE', + '123', + 'ENUM_TWO=2', + 'bool', + 'CHAR', + 'string', + '开源鸿蒙', + '哈萨克', + 'げっこう', + 'hello world', + '3.68743969984233577', + '**^\t' + ], + } + ] + rootInfo = { + parseObj: { + enums: enums, + unions: [], + structs: [], + classes: [], + funcs: [], + }, + rawFilePath: 'e:\\test.h', + fileName: 'test', + } + resStr = genDts.getDtsEnum(rootInfo); + assert.strictEqual(resStr, 'export enum EnumObj {\n\t摇粒绒,\n\t1 + 1 > 2,\n\t0817 deadline,\n\tmoon,\n\tflower,\n\tlight,\n\tball_796,\n\tpurple,\n\twhite,\n\tcute,\n\tpuppy,\n\tjiashi假使,\n\tcity_walk,\n\tteeee_eeeet,\n\tcloth,\n\tdog_A_cat,\n\textension,\n\tOpenHarmony,\n\tTs,\n\tnext_year,\n\tgreen park,\n\triver,\n\tstd::string,\n\tstd::array,\n\tbear,\n\tolder,\n\thouse,\n\tla77LA66,\n\tENUM_ONE,\n\t123,\n\tENUM_TWO=2,\n\tbool,\n\tCHAR,\n\tstring,\n\t开源鸿蒙,\n\t哈萨克,\n\tげっこう,\n\thello world,\n\t3.68743969984233577,\n\t**^\t,\n};\n\n'); + //3.enums有两个EnumObj + enums = [ + { + name: 'OType', + alias: '', + members: [ + 'NEW' + ] + }, + { + name: 'TOTSize1', + alias: '', + members: [ + 'DTS' + ] + } + ]; + rootInfo = { + parseObj: { + enums: enums, + unions: [], + structs: [], + classes: [], + funcs: [], + }, + rawFilePath: 'e:\\test.h', + fileName: 'test', + } + resStr = genDts.getDtsEnum(rootInfo); + assert.strictEqual(resStr, 'export enum OType {\n\tNEW,\n};\n\nexport enum TOTSize1 {\n\tDTS,\n};\n\n'); + //4.enums有多个EnumObj + enums = [ + { + name: 'TEST_ENUM', + alias: '', + members: [ + 'ENUM_1 = 1', + 'ENUM_2 = 2' + ] + }, + { + name: 'EnumObj', + alias: '', + members: [ + 'enums' + ] + }, + { + name: 'tttype', + alias: '', + members:[ + 'char' + ] + }, + { + name: '方向', + alias: '', + members: [ + '上' + ] + }, + { + name: 'pikachu', + alias: '', + members: [ + 'pikachu' + ] + }, + { + name: '颜色', + alias: '', + members: [ + '红', + ] + + }, + { + name: 'どうぶつえん', + alias: '', + members: [ + 'しまうま', + ] + }, + { + name: 'slen', + alias: '', + members: [ + 'short' + ] + }, + { + name: 'width', + alias: '', + members: [ + 'float' + ] + }, + { + name: 'ullint', + alias: '', + members: [ + 'unsigned long long' + ] + }, + { + name: 'sllint', + alias: '', + members: [ + 'signed long long' + ] + }, + { + name: 'llen', + alias: '', + members: [ + 'long' + ] + }, + { + name: 'uld', + alias: '', + members: [ + 'unsigned long double' + ] + }, + { + name: 'uwidth', + alias: '', + members: [ + 'unsigned float' + ] + }, + { + name: 'sld', + alias: '', + members: [ + 'signed long double' + ] + }, + { + name: 'sdlen', + alias: '', + members: [ + 'signed double' + ] + }, + { + name: 'ch', + alias: '', + members: [ + 'char' + ] + }, + { + name: 'len', + alias: '', + members: [ + 'int' + ] + }, + { + name: 'llint', + alias: '', + members: [ + 'long long' + ] + }, + { + name: 'dlen', + alias: '', + members: [ + 'double' + ] + }, + { + name: 'ldlen', + alias: '', + members: [ + 'long double' + ] + }, + { + name: 'uch', + alias: '', + members: [ + 'unsigned char' + ] + }, + { + name: 'ulen', + alias: '', + members: [ + 'int' + ] + }, + { + name: 'uslen', + alias: '', + members: [ + 'unsigned short' + ] + }, + { + name: 'ullen', + alias: '', + members: [ + 'unsigned long' + ] + }, + { + name: 'sllen', + alias: '', + members:[ + 'signed long' + ] + }, + { + name: 'udlen', + alias: '', + members: [ + 'unsigned double' + ] + }, + { + name: 'uptr', + alias: '', + members: [ + 'unsigned void*' + ] + }, + { + name: 'bflag', + alias: '', + members: [ + 'bool' + ] + }, + { + name: 'ptr', + alias: '', + members: [ + 'signed void*' + ] + }, + { + name: 'fruit1', + alias: '', + members: [ + 'apple' + ] + }, + { + name: 'fruit2', + alias: '', + members: [ + 'orange' + ] + }, + { + name: 'fruit3', + alias: '', + members: [ + 'banana' + ] + }, + { + name: 'fruit4', + alias: '', + members: [ + 'pomelo' + ] + }, + { + name: 'fruit5', + alias: '', + members: [ + 'pear' + ] + }, + { + name: 'fruit6', + alias: '', + members: [ + 'peach' + ] + }, + { + name: 'fruit7', + alias: '', + members: [ + 'cherry' + ] + }, + { + name: 'fruit8', + alias: '', + members: [ + 'watermelon' + ] + }, + { + name: 'fruit9', + alias: '', + members: [ + 'strawberry' + ] + } + ]; + rootInfo = { + parseObj: { + enums: enums, + unions: [], + structs: [], + classes: [], + funcs: [], + }, + rawFilePath: 'e:\\test.h', + fileName: 'test', + } + resStr = genDts.getDtsEnum(rootInfo); + assert.strictEqual(resStr, 'export enum TEST_ENUM {\n\tENUM_1 = 1,\n\tENUM_2 = 2,\n};\n\nexport enum EnumObj {\n\tenums,\n};\n\nexport enum tttype {\n\tchar,\n};\n\nexport enum 方向 {\n\t上,\n};\n\nexport enum pikachu {\n\tpikachu,\n};\n\nexport enum 颜色 {\n\t红,\n};\n\nexport enum どうぶつえん {\n\tしまうま,\n};\n\nexport enum slen {\n\tshort,\n};\n\nexport enum width {\n\tfloat,\n};\n\nexport enum ullint {\n\tunsigned long long,\n};\n\nexport enum sllint {\n\tsigned long long,\n};\n\nexport enum llen {\n\tlong,\n};\n\nexport enum uld {\n\tunsigned long double,\n};\n\nexport enum uwidth {\n\tunsigned float,\n};\n\nexport enum sld {\n\tsigned long double,\n};\n\nexport enum sdlen {\n\tsigned double,\n};\n\nexport enum ch {\n\tchar,\n};\n\nexport enum len {\n\tint,\n};\n\nexport enum llint {\n\tlong long,\n};\n\nexport enum dlen {\n\tdouble,\n};\n\nexport enum ldlen {\n\tlong double,\n};\n\nexport enum uch {\n\tunsigned char,\n};\n\nexport enum ulen {\n\tint,\n};\n\nexport enum uslen {\n\tunsigned short,\n};\n\nexport enum ullen {\n\tunsigned long,\n};\n\nexport enum sllen {\n\tsigned long,\n};\n\nexport enum udlen {\n\tunsigned double,\n};\n\nexport enum uptr {\n\tunsigned void*,\n};\n\nexport enum bflag {\n\tbool,\n};\n\nexport enum ptr {\n\tsigned void*,\n};\n\nexport enum fruit1 {\n\tapple,\n};\n\nexport enum fruit2 {\n\torange,\n};\n\nexport enum fruit3 {\n\tbanana,\n};\n\nexport enum fruit4 {\n\tpomelo,\n};\n\nexport enum fruit5 {\n\tpear,\n};\n\nexport enum fruit6 {\n\tpeach,\n};\n\nexport enum fruit7 {\n\tcherry,\n};\n\nexport enum fruit8 {\n\twatermelon,\n};\n\nexport enum fruit9 {\n\tstrawberry,\n};\n\n'); + + }); + + //3, 测试异常情况 + test('getDtsEnum_test_3', () => { + //1.测试枚举为空的情况 + let rootInfo: GenInfo = { + parseObj: { + enums: [], + unions: [], + structs: [], + classes: [], + funcs: [], + }, + rawFilePath: 'e:\\test.h', + fileName: 'test', + } + let resStr = genDts.getDtsEnum(rootInfo); + assert.strictEqual(resStr, ''); + //2.enums的name为空且alias为空 + let enums: EnumObj[] = [ + { + name: '', + alias: '', + members: [ + 'ENUM_1' + ] + } + ]; + rootInfo = { + parseObj: { + enums: enums, + unions: [], + structs: [], + classes: [], + funcs: [], + }, + rawFilePath: 'e:\\test.h', + fileName: 'test', + } + resStr = genDts.getDtsEnum(rootInfo); + assert.strictEqual(resStr, 'export enum {\n\tENUM_1,\n};\n\n'); + //3.members为空 + enums = [ + { + name: '', + alias: '', + members: [] + } + ]; + rootInfo = { + parseObj: { + enums: enums, + unions: [], + structs: [], + classes: [], + funcs: [], + }, + rawFilePath: 'e:\\test.h', + fileName: 'test', + } + resStr = genDts.getDtsEnum(rootInfo); + assert.strictEqual(resStr, 'export enum {\n};\n\n'); + + //4.name不存在且alias为空 + enums = [ + { + alias: '', + members: [ + 'ENUM_1' + ] + } + ]; + rootInfo = { + parseObj: { + enums: enums, + unions: [], + structs: [], + classes: [], + funcs: [] + }, + rawFilePath: 'e:\\test.h', + fileName: 'test', + } + resStr = genDts.getDtsEnum(rootInfo); + assert.strictEqual(resStr, 'export enum undefined {\n\tENUM_1,\n};\n\n'); + + //5.alias不存在 + enums = [ + { + name: 'TEST_ENUM', + members: [ + 'ENUM_1' + ] + } + ]; + rootInfo = { + parseObj: { + enums: enums, + unions: [], + structs: [], + classes: [], + funcs: [] + }, + rawFilePath: 'e:\\test.h', + fileName: 'test', + } + resStr = genDts.getDtsEnum(rootInfo); + assert.strictEqual(resStr, 'export enum TEST_ENUM {\n\tENUM_1,\n};\n\n'); + + //6.enums的name为空,alias不为空 + enums = [ + { + name: '', + alias: 'OperationType', + members: [ + 'ENUM_1' + ] + } + ]; + rootInfo = { + parseObj: { + enums: enums, + unions: [], + structs: [], + classes: [], + funcs: [], + }, + rawFilePath: 'e:\\test.h', + fileName: 'test', + } + resStr = genDts.getDtsEnum(rootInfo); + assert.strictEqual(resStr, 'export enum {\n\tENUM_1,\n};\n\n'); + }); + + //4, 测试错误情况 + test('getDtsEnum_test_4', () => { + //1.传入null + let res = true; + try { + genDts.getDtsEnum(null); + } catch (error) { + res = false; + } + assert.strictEqual(res, false); + + //2.传入undefined + let res2 = true; + try { + genDts.getDtsEnum(undefined); + } catch (error) { + res2 = false; + } + assert.strictEqual(res2, false); + + //3.enums中的members不存在 + let enums: EnumObj[] = [ + { + name: 'TEST_ENUM', + alias: '' + } + ]; + let rootInfo: GenInfo = { + parseObj: { + enums: enums, + unions: [], + structs: [], + classes: [], + funcs: [] + }, + rawFilePath: 'e:\\test.h', + fileName: 'test', + } + let res3 = true; + try { + genDts.getDtsEnum(rootInfo); + } catch (error) { + res3 = false; + } + assert.strictEqual(res3, false); + + //4.没有parseObj.enums属性 + rootInfo = { + parseObj: { + unions: [], + structs: [], + classes: [], + funcs: [], + }, + rawFilePath: 'e:\\test.h', + fileName: 'test', + } + let res4 = true; + try { + genDts.getDtsEnum(rootInfo); + } catch (error) { + res4 = false; + } + assert.strictEqual(res4, false); + }); +}) \ No newline at end of file diff --git a/src/vscode_plugin/src/test/suite/gen/gendtstransTskey2Ckey.test.ts b/src/vscode_plugin/src/test/suite/gen/gendtstransTskey2Ckey.test.ts new file mode 100644 index 0000000000000000000000000000000000000000..a70b29e3afb19ba164bd56c7c5d6361ade6241f8 --- /dev/null +++ b/src/vscode_plugin/src/test/suite/gen/gendtstransTskey2Ckey.test.ts @@ -0,0 +1,2409 @@ +/* +* Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +import * as assert from 'assert'; + +// You can import and use all API from the 'vscode' module +// as well as import your extension to test it +import * as vscode from 'vscode'; +import * as genDts from '../../../gen/gendts' +import { ClassObj, EnumObj, FuncObj, GenInfo, ParseObj, StructObj, UnionObj } from '../../../gen/datatype'; +import * as fs from 'fs'; + +suite('Gendts_transTskey2Ckey_Suite', () => { + vscode.window.showInformationMessage('Start all tests.'); + //1, 测试一般情况 + test('transTskey2Ckey_test_1', () => { + let resStr = genDts.transTskey2Ckey('int'); + assert.strictEqual(resStr, 'number'); + resStr = genDts.transTskey2Ckey('size_t'); + assert.strictEqual(resStr, 'number'); + resStr = genDts.transTskey2Ckey('double'); + assert.strictEqual(resStr, 'number'); + resStr = genDts.transTskey2Ckey('float'); + assert.strictEqual(resStr, 'number'); + resStr = genDts.transTskey2Ckey('short'); + assert.strictEqual(resStr, 'number'); + resStr = genDts.transTskey2Ckey('long'); + assert.strictEqual(resStr, 'number'); + resStr = genDts.transTskey2Ckey('uint8_t'); + assert.strictEqual(resStr, 'number'); + resStr = genDts.transTskey2Ckey('uint16_t'); + assert.strictEqual(resStr, 'number'); + resStr = genDts.transTskey2Ckey('uint32_t'); + assert.strictEqual(resStr, 'number'); + resStr = genDts.transTskey2Ckey('uint64_t'); + assert.strictEqual(resStr, 'number'); + resStr = genDts.transTskey2Ckey('int8_t'); + assert.strictEqual(resStr, 'number'); + resStr = genDts.transTskey2Ckey('int16_t'); + assert.strictEqual(resStr, 'number'); + resStr = genDts.transTskey2Ckey('int32_t'); + assert.strictEqual(resStr, 'number'); + resStr = genDts.transTskey2Ckey('int64_t'); + assert.strictEqual(resStr, 'number'); + resStr = genDts.transTskey2Ckey('unsigned'); + assert.strictEqual(resStr, 'number'); + + resStr = genDts.transTskey2Ckey('bool'); + assert.strictEqual(resStr, 'boolean'); + + resStr = genDts.transTskey2Ckey('char'); + assert.strictEqual(resStr, 'string'); + resStr = genDts.transTskey2Ckey('wchar_t'); + assert.strictEqual(resStr, 'string'); + resStr = genDts.transTskey2Ckey('char8_t'); + assert.strictEqual(resStr, 'string'); + resStr = genDts.transTskey2Ckey('char16_t'); + assert.strictEqual(resStr, 'string'); + resStr = genDts.transTskey2Ckey('char32_t'); + assert.strictEqual(resStr, 'string'); + //std::string::iterator + resStr = genDts.transTskey2Ckey('std::string::iterator'); + assert.strictEqual(resStr, 'IterableIterator'); + //std::vector + resStr = genDts.transTskey2Ckey('std::vector'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::vector'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::vector'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::vector'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::vector'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::vector'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::vector'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::vector'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::vector'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::vector'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::vector'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::vector'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::vector'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::vector'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::vector'); + assert.strictEqual(resStr, 'Array'); + + resStr = genDts.transTskey2Ckey('std::vector'); + assert.strictEqual(resStr, 'Array'); + + resStr = genDts.transTskey2Ckey('std::vector'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::vector'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::vector'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::vector'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::vector'); + assert.strictEqual(resStr, 'Array'); + //std::vector::iterator + resStr = genDts.transTskey2Ckey('std::vector::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::vector::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::vector::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::vector::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::vector::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::vector::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::vector::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::vector::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::vector::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::vector::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::vector::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::vector::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::vector::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::vector::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::vector::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + + resStr = genDts.transTskey2Ckey('std::vector::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + + resStr = genDts.transTskey2Ckey('std::vector::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::vector::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::vector::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::vector::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::vector::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + //std::array + resStr = genDts.transTskey2Ckey('std::array'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::array'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::array'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::array'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::array'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::array'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::array'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::array'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::array'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::array'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::array'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::array'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::array'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::array'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::array'); + assert.strictEqual(resStr, 'Array'); + + resStr = genDts.transTskey2Ckey('std::array'); + assert.strictEqual(resStr, 'Array'); + + resStr = genDts.transTskey2Ckey('std::array'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::array'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::array'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::array'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::array'); + assert.strictEqual(resStr, 'Array'); + //std::array::iterator + resStr = genDts.transTskey2Ckey('std::array::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::array::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::array::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::array::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::array::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::array::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::array::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::array::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::array::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::array::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::array::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::array::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::array::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::array::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::array::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + + resStr = genDts.transTskey2Ckey('std::array::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + + resStr = genDts.transTskey2Ckey('std::array::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::array::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::array::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::array::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::array::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + //std::deque + resStr = genDts.transTskey2Ckey('std::deque'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::deque'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::deque'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::deque'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::deque'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::deque'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::deque'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::deque'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::deque'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::deque'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::deque'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::deque'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::deque'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::deque'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::deque'); + assert.strictEqual(resStr, 'Array'); + + resStr = genDts.transTskey2Ckey('std::deque'); + assert.strictEqual(resStr, 'Array'); + + resStr = genDts.transTskey2Ckey('std::deque'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::deque'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::deque'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::deque'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::deque'); + assert.strictEqual(resStr, 'Array'); + //std::deque::iterator + resStr = genDts.transTskey2Ckey('std::deque::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::deque::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::deque::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::deque::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::deque::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::deque::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::deque::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::deque::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::deque::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::deque::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::deque::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::deque::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::deque::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::deque::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::deque::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + + resStr = genDts.transTskey2Ckey('std::deque::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + + resStr = genDts.transTskey2Ckey('std::deque::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::deque::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::deque::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::deque::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::deque::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + //std::list + resStr = genDts.transTskey2Ckey('std::list'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::list'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::list'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::list'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::list'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::list'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::list'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::list'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::list'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::list'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::list'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::list'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::list'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::list'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::list'); + assert.strictEqual(resStr, 'Array'); + + resStr = genDts.transTskey2Ckey('std::list'); + assert.strictEqual(resStr, 'Array'); + + resStr = genDts.transTskey2Ckey('std::list'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::list'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::list'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::list'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::list'); + assert.strictEqual(resStr, 'Array'); + //std::list::iterator + resStr = genDts.transTskey2Ckey('std::list::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::list::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::list::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::list::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::list::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::list::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::list::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::list::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::list::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::list::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::list::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::list::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::list::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::list::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::list::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + + resStr = genDts.transTskey2Ckey('std::list::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + + resStr = genDts.transTskey2Ckey('std::list::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::list::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::list::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::list::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::list::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + //std::forward_list + resStr = genDts.transTskey2Ckey('std::forward_list'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::forward_list'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::forward_list'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::forward_list'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::forward_list'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::forward_list'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::forward_list'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::forward_list'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::forward_list'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::forward_list'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::forward_list'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::forward_list'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::forward_list'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::forward_list'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::forward_list'); + assert.strictEqual(resStr, 'Array'); + + resStr = genDts.transTskey2Ckey('std::forward_list'); + assert.strictEqual(resStr, 'Array'); + + resStr = genDts.transTskey2Ckey('std::forward_list'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::forward_list'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::forward_list'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::forward_list'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::forward_list'); + assert.strictEqual(resStr, 'Array'); + //std::forward_list::iterator + resStr = genDts.transTskey2Ckey('std::forward_list::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::forward_list::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::forward_list::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::forward_list::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::forward_list::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::forward_list::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::forward_list::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::forward_list::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::forward_list::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::forward_list::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::forward_list::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::forward_list::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::forward_list::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::forward_list::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::forward_list::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + + resStr = genDts.transTskey2Ckey('std::forward_list::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + + resStr = genDts.transTskey2Ckey('std::forward_list::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::forward_list::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::forward_list::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::forward_list::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::forward_list::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + //std::stack + resStr = genDts.transTskey2Ckey('std::stack'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::stack'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::stack'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::stack'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::stack'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::stack'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::stack'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::stack'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::stack'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::stack'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::stack'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::stack'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::stack'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::stack'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::stack'); + assert.strictEqual(resStr, 'Array'); + + resStr = genDts.transTskey2Ckey('std::stack'); + assert.strictEqual(resStr, 'Array'); + + resStr = genDts.transTskey2Ckey('std::stack'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::stack'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::stack'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::stack'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::stack'); + assert.strictEqual(resStr, 'Array'); + //std::stack::iterator + resStr = genDts.transTskey2Ckey('std::stack::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::stack::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::stack::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::stack::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::stack::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::stack::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::stack::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::stack::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::stack::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::stack::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::stack::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::stack::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::stack::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::stack::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::stack::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + + resStr = genDts.transTskey2Ckey('std::stack::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + + resStr = genDts.transTskey2Ckey('std::stack::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::stack::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::stack::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::stack::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::stack::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + //std::queue + resStr = genDts.transTskey2Ckey('std::queue'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::queue'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::queue'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::queue'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::queue'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::queue'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::queue'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::queue'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::queue'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::queue'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::queue'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::queue'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::queue'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::queue'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::queue'); + assert.strictEqual(resStr, 'Array'); + + resStr = genDts.transTskey2Ckey('std::queue'); + assert.strictEqual(resStr, 'Array'); + + resStr = genDts.transTskey2Ckey('std::queue'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::queue'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::queue'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::queue'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::queue'); + assert.strictEqual(resStr, 'Array'); + //std::queue::iterator + resStr = genDts.transTskey2Ckey('std::queue::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::queue::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::queue::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::queue::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::queue::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::queue::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::queue::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::queue::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::queue::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::queue::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::queue::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::queue::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::queue::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::queue::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::queue::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + + resStr = genDts.transTskey2Ckey('std::queue::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + + resStr = genDts.transTskey2Ckey('std::queue::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::queue::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::queue::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::queue::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::queue::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + //std::valarray + resStr = genDts.transTskey2Ckey('std::valarray'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::valarray'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::valarray'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::valarray'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::valarray'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::valarray'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::valarray'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::valarray'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::valarray'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::valarray'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::valarray'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::valarray'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::valarray'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::valarray'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::valarray'); + assert.strictEqual(resStr, 'Array'); + + resStr = genDts.transTskey2Ckey('std::valarray'); + assert.strictEqual(resStr, 'Array'); + + resStr = genDts.transTskey2Ckey('std::valarray'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::valarray'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::valarray'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::valarray'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::valarray'); + assert.strictEqual(resStr, 'Array'); + //std::valarray::iterator + resStr = genDts.transTskey2Ckey('std::valarray::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::valarray::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::valarray::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::valarray::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::valarray::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::valarray::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::valarray::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::valarray::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::valarray::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::valarray::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::valarray::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::valarray::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::valarray::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::valarray::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::valarray::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + + resStr = genDts.transTskey2Ckey('std::valarray::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + + resStr = genDts.transTskey2Ckey('std::valarray::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::valarray::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::valarray::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::valarray::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::valarray::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + //std::priority_queue + resStr = genDts.transTskey2Ckey('std::priority_queue'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::priority_queue'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::priority_queue'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::priority_queue'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::priority_queue'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::priority_queue'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::priority_queue'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::priority_queue'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::priority_queue'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::priority_queue'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::priority_queue'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::priority_queue'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::priority_queue'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::priority_queue'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::priority_queue'); + assert.strictEqual(resStr, 'Array'); + + resStr = genDts.transTskey2Ckey('std::priority_queue'); + assert.strictEqual(resStr, 'Array'); + + resStr = genDts.transTskey2Ckey('std::priority_queue'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::priority_queue'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::priority_queue'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::priority_queue'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::priority_queue'); + assert.strictEqual(resStr, 'Array'); + //std::priority_queue::iterator + resStr = genDts.transTskey2Ckey('std::priority_queue::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::priority_queue::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::priority_queue::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::priority_queue::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::priority_queue::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::priority_queue::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::priority_queue::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::priority_queue::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::priority_queue::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::priority_queue::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::priority_queue::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::priority_queue::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::priority_queue::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::priority_queue::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::priority_queue::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + + resStr = genDts.transTskey2Ckey('std::priority_queue::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + + resStr = genDts.transTskey2Ckey('std::priority_queue::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::priority_queue::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::priority_queue::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::priority_queue::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::priority_queue::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + }); + + test('transTskey2Ckey_test_2', () => { + //std::map + let resStr = genDts.transTskey2Ckey('std::map'); + assert.strictEqual(resStr, 'Map'); + resStr = genDts.transTskey2Ckey('std::map'); + assert.strictEqual(resStr, 'Map'); + resStr = genDts.transTskey2Ckey('std::map'); + assert.strictEqual(resStr, 'Map'); + resStr = genDts.transTskey2Ckey('std::map'); + assert.strictEqual(resStr, 'Map'); + resStr = genDts.transTskey2Ckey('std::map'); + assert.strictEqual(resStr, 'Map'); + resStr = genDts.transTskey2Ckey('std::map'); + assert.strictEqual(resStr, 'Map'); + resStr = genDts.transTskey2Ckey('std::map'); + assert.strictEqual(resStr, 'Map'); + resStr = genDts.transTskey2Ckey('std::map'); + assert.strictEqual(resStr, 'Map'); + resStr = genDts.transTskey2Ckey('std::map'); + assert.strictEqual(resStr, 'Map'); + resStr = genDts.transTskey2Ckey('std::map'); + assert.strictEqual(resStr, 'Map'); + resStr = genDts.transTskey2Ckey('std::map'); + assert.strictEqual(resStr, 'Map'); + + resStr = genDts.transTskey2Ckey('std::map'); + assert.strictEqual(resStr, 'Map'); + resStr = genDts.transTskey2Ckey('std::map'); + assert.strictEqual(resStr, 'Map'); + + resStr = genDts.transTskey2Ckey('std::map'); + assert.strictEqual(resStr, 'Map'); + resStr = genDts.transTskey2Ckey('std::map'); + assert.strictEqual(resStr, 'Map'); + resStr = genDts.transTskey2Ckey('std::map'); + assert.strictEqual(resStr, 'Map'); + //std::map::itrator + resStr = genDts.transTskey2Ckey('std::map::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::map::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::map::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::map::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::map::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::map::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::map::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::map::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::map::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::map::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::map::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + + resStr = genDts.transTskey2Ckey('std::map::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::map::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + + resStr = genDts.transTskey2Ckey('std::map::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::map::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::map::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + //std::unordered_map + resStr = genDts.transTskey2Ckey('std::unordered_map'); + assert.strictEqual(resStr, 'Map'); + resStr = genDts.transTskey2Ckey('std::unordered_map'); + assert.strictEqual(resStr, 'Map'); + resStr = genDts.transTskey2Ckey('std::unordered_map'); + assert.strictEqual(resStr, 'Map'); + resStr = genDts.transTskey2Ckey('std::unordered_map'); + assert.strictEqual(resStr, 'Map'); + resStr = genDts.transTskey2Ckey('std::unordered_map'); + assert.strictEqual(resStr, 'Map'); + resStr = genDts.transTskey2Ckey('std::unordered_map'); + assert.strictEqual(resStr, 'Map'); + resStr = genDts.transTskey2Ckey('std::unordered_map'); + assert.strictEqual(resStr, 'Map'); + resStr = genDts.transTskey2Ckey('std::unordered_map'); + assert.strictEqual(resStr, 'Map'); + resStr = genDts.transTskey2Ckey('std::unordered_map'); + assert.strictEqual(resStr, 'Map'); + resStr = genDts.transTskey2Ckey('std::unordered_map'); + assert.strictEqual(resStr, 'Map'); + resStr = genDts.transTskey2Ckey('std::unordered_map'); + assert.strictEqual(resStr, 'Map'); + + resStr = genDts.transTskey2Ckey('std::unordered_map'); + assert.strictEqual(resStr, 'Map'); + resStr = genDts.transTskey2Ckey('std::unordered_map'); + assert.strictEqual(resStr, 'Map'); + + resStr = genDts.transTskey2Ckey('std::unordered_map'); + assert.strictEqual(resStr, 'Map'); + resStr = genDts.transTskey2Ckey('std::unordered_map'); + assert.strictEqual(resStr, 'Map'); + resStr = genDts.transTskey2Ckey('std::unordered_map'); + assert.strictEqual(resStr, 'Map'); + //std::unordered_map::itrator + resStr = genDts.transTskey2Ckey('std::unordered_map::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::unordered_map::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::unordered_map::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::unordered_map::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::unordered_map::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::unordered_map::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::unordered_map::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::unordered_map::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::unordered_map::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::unordered_map::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::unordered_map::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + + resStr = genDts.transTskey2Ckey('std::unordered_map::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::unordered_map::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + + resStr = genDts.transTskey2Ckey('std::unordered_map::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::unordered_map::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::unordered_map::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + //std::multimap + resStr = genDts.transTskey2Ckey('std::multimap'); + assert.strictEqual(resStr, 'Map'); + resStr = genDts.transTskey2Ckey('std::multimap'); + assert.strictEqual(resStr, 'Map'); + resStr = genDts.transTskey2Ckey('std::multimap'); + assert.strictEqual(resStr, 'Map'); + resStr = genDts.transTskey2Ckey('std::multimap'); + assert.strictEqual(resStr, 'Map'); + resStr = genDts.transTskey2Ckey('std::multimap'); + assert.strictEqual(resStr, 'Map'); + resStr = genDts.transTskey2Ckey('std::multimap'); + assert.strictEqual(resStr, 'Map'); + resStr = genDts.transTskey2Ckey('std::multimap'); + assert.strictEqual(resStr, 'Map'); + resStr = genDts.transTskey2Ckey('std::multimap'); + assert.strictEqual(resStr, 'Map'); + resStr = genDts.transTskey2Ckey('std::multimap'); + assert.strictEqual(resStr, 'Map'); + resStr = genDts.transTskey2Ckey('std::multimap'); + assert.strictEqual(resStr, 'Map'); + resStr = genDts.transTskey2Ckey('std::multimap'); + assert.strictEqual(resStr, 'Map'); + + resStr = genDts.transTskey2Ckey('std::multimap'); + assert.strictEqual(resStr, 'Map'); + resStr = genDts.transTskey2Ckey('std::multimap'); + assert.strictEqual(resStr, 'Map'); + + resStr = genDts.transTskey2Ckey('std::multimap'); + assert.strictEqual(resStr, 'Map'); + resStr = genDts.transTskey2Ckey('std::multimap'); + assert.strictEqual(resStr, 'Map'); + resStr = genDts.transTskey2Ckey('std::multimap'); + assert.strictEqual(resStr, 'Map'); + //std::multimap::itrator + resStr = genDts.transTskey2Ckey('std::multimap::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::multimap::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::multimap::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::multimap::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::multimap::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::multimap::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::multimap::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::multimap::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::multimap::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::multimap::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::multimap::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + + resStr = genDts.transTskey2Ckey('std::multimap::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::multimap::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + + resStr = genDts.transTskey2Ckey('std::multimap::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::multimap::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::multimap::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + //std::unordered_multimap + resStr = genDts.transTskey2Ckey('std::unordered_multimap'); + assert.strictEqual(resStr, 'Map'); + resStr = genDts.transTskey2Ckey('std::unordered_multimap'); + assert.strictEqual(resStr, 'Map'); + resStr = genDts.transTskey2Ckey('std::unordered_multimap'); + assert.strictEqual(resStr, 'Map'); + resStr = genDts.transTskey2Ckey('std::unordered_multimap'); + assert.strictEqual(resStr, 'Map'); + resStr = genDts.transTskey2Ckey('std::unordered_multimap'); + assert.strictEqual(resStr, 'Map'); + resStr = genDts.transTskey2Ckey('std::unordered_multimap'); + assert.strictEqual(resStr, 'Map'); + resStr = genDts.transTskey2Ckey('std::unordered_multimap'); + assert.strictEqual(resStr, 'Map'); + resStr = genDts.transTskey2Ckey('std::unordered_multimap'); + assert.strictEqual(resStr, 'Map'); + resStr = genDts.transTskey2Ckey('std::unordered_multimap'); + assert.strictEqual(resStr, 'Map'); + resStr = genDts.transTskey2Ckey('std::unordered_multimap'); + assert.strictEqual(resStr, 'Map'); + resStr = genDts.transTskey2Ckey('std::unordered_multimap'); + assert.strictEqual(resStr, 'Map'); + + resStr = genDts.transTskey2Ckey('std::unordered_multimap'); + assert.strictEqual(resStr, 'Map'); + resStr = genDts.transTskey2Ckey('std::unordered_multimap'); + assert.strictEqual(resStr, 'Map'); + + resStr = genDts.transTskey2Ckey('std::unordered_multimap'); + assert.strictEqual(resStr, 'Map'); + resStr = genDts.transTskey2Ckey('std::unordered_multimap'); + assert.strictEqual(resStr, 'Map'); + resStr = genDts.transTskey2Ckey('std::unordered_multimap'); + assert.strictEqual(resStr, 'Map'); + //std::unordered_multimap::itrator + resStr = genDts.transTskey2Ckey('std::unordered_multimap::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::unordered_multimap::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::unordered_multimap::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::unordered_multimap::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::unordered_multimap::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::unordered_multimap::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::unordered_multimap::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::unordered_multimap::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::unordered_multimap::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::unordered_multimap::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::unordered_multimap::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + + resStr = genDts.transTskey2Ckey('std::unordered_multimap::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::unordered_multimap::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + + resStr = genDts.transTskey2Ckey('std::unordered_multimap::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::unordered_multimap::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::unordered_multimap::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + //std::set + resStr = genDts.transTskey2Ckey('std::set'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::set'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::set'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::set'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::set'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::set'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::set'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::set'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::set'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::set'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::set'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::set'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::set'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::set'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::set'); + assert.strictEqual(resStr, 'Set'); + + resStr = genDts.transTskey2Ckey('std::set'); + assert.strictEqual(resStr, 'Set'); + + resStr = genDts.transTskey2Ckey('std::set'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::set'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::set'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::set'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::set'); + assert.strictEqual(resStr, 'Set'); + //std::set::iterator + resStr = genDts.transTskey2Ckey('std::set::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::set::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::set::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::set::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::set::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::set::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::set::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::set::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::set::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::set::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::set::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::set::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::set::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::set::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::set::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + + resStr = genDts.transTskey2Ckey('std::set::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + + resStr = genDts.transTskey2Ckey('std::set::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::set::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::set::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::set::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::set::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + //std::unordered_set + resStr = genDts.transTskey2Ckey('std::unordered_set'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::unordered_set'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::unordered_set'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::unordered_set'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::unordered_set'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::unordered_set'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::unordered_set'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::unordered_set'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::unordered_set'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::unordered_set'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::unordered_set'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::unordered_set'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::unordered_set'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::unordered_set'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::unordered_set'); + assert.strictEqual(resStr, 'Set'); + + resStr = genDts.transTskey2Ckey('std::unordered_set'); + assert.strictEqual(resStr, 'Set'); + + resStr = genDts.transTskey2Ckey('std::unordered_set'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::unordered_set'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::unordered_set'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::unordered_set'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::unordered_set'); + assert.strictEqual(resStr, 'Set'); + //std::unordered_set::iterator + resStr = genDts.transTskey2Ckey('std::unordered_set::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::unordered_set::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::unordered_set::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::unordered_set::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::unordered_set::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::unordered_set::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::unordered_set::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::unordered_set::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::unordered_set::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::unordered_set::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::unordered_set::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::unordered_set::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::unordered_set::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::unordered_set::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::unordered_set::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + + resStr = genDts.transTskey2Ckey('std::unordered_set::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + + resStr = genDts.transTskey2Ckey('std::unordered_set::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::unordered_set::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::unordered_set::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::unordered_set::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::unordered_set::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + //std::multiset + resStr = genDts.transTskey2Ckey('std::multiset'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::multiset'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::multiset'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::multiset'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::multiset'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::multiset'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::multiset'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::multiset'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::multiset'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::multiset'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::multiset'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::multiset'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::multiset'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::multiset'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::multiset'); + assert.strictEqual(resStr, 'Set'); + + resStr = genDts.transTskey2Ckey('std::multiset'); + assert.strictEqual(resStr, 'Set'); + + resStr = genDts.transTskey2Ckey('std::multiset'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::multiset'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::multiset'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::multiset'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::multiset'); + assert.strictEqual(resStr, 'Set'); + //std::multiset::iterator + resStr = genDts.transTskey2Ckey('std::multiset::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::multiset::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::multiset::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::multiset::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::multiset::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::multiset::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::multiset::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::multiset::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::multiset::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::multiset::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::multiset::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::multiset::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::multiset::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::multiset::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::multiset::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + + resStr = genDts.transTskey2Ckey('std::multiset::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + + resStr = genDts.transTskey2Ckey('std::multiset::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::multiset::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::multiset::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::multiset::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::multiset::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + //std::unordered_multiset + resStr = genDts.transTskey2Ckey('std::unordered_multiset'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::unordered_multiset'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::unordered_multiset'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::unordered_multiset'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::unordered_multiset'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::unordered_multiset'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::unordered_multiset'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::unordered_multiset'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::unordered_multiset'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::unordered_multiset'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::unordered_multiset'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::unordered_multiset'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::unordered_multiset'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::unordered_multiset'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::unordered_multiset'); + assert.strictEqual(resStr, 'Set'); + + resStr = genDts.transTskey2Ckey('std::unordered_multiset'); + assert.strictEqual(resStr, 'Set'); + + resStr = genDts.transTskey2Ckey('std::unordered_multiset'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::unordered_multiset'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::unordered_multiset'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::unordered_multiset'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::unordered_multiset'); + assert.strictEqual(resStr, 'Set'); + //std::unordered_multiset::iterator + resStr = genDts.transTskey2Ckey('std::unordered_multiset::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::unordered_multiset::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::unordered_multiset::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::unordered_multiset::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::unordered_multiset::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::unordered_multiset::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::unordered_multiset::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::unordered_multiset::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::unordered_multiset::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::unordered_multiset::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::unordered_multiset::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::unordered_multiset::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::unordered_multiset::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::unordered_multiset::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::unordered_multiset::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + + resStr = genDts.transTskey2Ckey('std::unordered_multiset::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + + resStr = genDts.transTskey2Ckey('std::unordered_multiset::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::unordered_multiset::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::unordered_multiset::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::unordered_multiset::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::unordered_multiset::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + //std::tuple + resStr = genDts.transTskey2Ckey('std::tuple'); + assert.strictEqual(resStr, '[number, string, boolean, number]'); + resStr = genDts.transTskey2Ckey('std::tuple'); + assert.strictEqual(resStr, '[number, string, number, number, number, number, string]'); + resStr = genDts.transTskey2Ckey('std::tuple'); + assert.strictEqual(resStr, '[string, number, string, number, number]'); + //std::pair + resStr = genDts.transTskey2Ckey('std::pair'); + assert.strictEqual(resStr, '[number, string, boolean, number]'); + resStr = genDts.transTskey2Ckey('std::pair'); + assert.strictEqual(resStr, '[number, string, number, number, number, number, string]'); + resStr = genDts.transTskey2Ckey('std::pair'); + assert.strictEqual(resStr, '[string, number, string, number, number]'); + //std::complex + resStr = genDts.transTskey2Ckey('std::complex'); + assert.strictEqual(resStr, '{real: number, imag: number}'); + resStr = genDts.transTskey2Ckey('std::complex'); + assert.strictEqual(resStr, '{real: number, imag: number}'); + resStr = genDts.transTskey2Ckey('std::complex'); + assert.strictEqual(resStr, '{real: number, imag: number}'); + resStr = genDts.transTskey2Ckey('std::complex'); + assert.strictEqual(resStr, '{real: number, imag: number}'); + resStr = genDts.transTskey2Ckey('std::complex'); + assert.strictEqual(resStr, '{real: number, imag: number}'); + resStr = genDts.transTskey2Ckey('std::complex'); + assert.strictEqual(resStr, '{real: number, imag: number}'); + resStr = genDts.transTskey2Ckey('std::complex'); + assert.strictEqual(resStr, '{real: number, imag: number}'); + //Date + resStr = genDts.transTskey2Ckey('std::time_t'); + assert.strictEqual(resStr, 'Date'); + resStr = genDts.transTskey2Ckey('std::clock_t'); + assert.strictEqual(resStr, 'Date'); + resStr = genDts.transTskey2Ckey('std::tm'); + assert.strictEqual(resStr, 'Date'); + resStr = genDts.transTskey2Ckey('std::chrono::duration'); + assert.strictEqual(resStr, 'Date'); + resStr = genDts.transTskey2Ckey('std::chrono::system_clock::time_point'); + assert.strictEqual(resStr, 'Date'); + resStr = genDts.transTskey2Ckey('std::chrono::steady_clock::time_point'); + assert.strictEqual(resStr, 'Date'); + resStr = genDts.transTskey2Ckey('std::chrono::seconds'); + assert.strictEqual(resStr, 'Date'); + resStr = genDts.transTskey2Ckey('std::chrono::milliseconds'); + assert.strictEqual(resStr, 'Date'); + resStr = genDts.transTskey2Ckey('std::chrono::microseconds'); + assert.strictEqual(resStr, 'Date'); + resStr = genDts.transTskey2Ckey('std::chrono::nanoseconds'); + assert.strictEqual(resStr, 'Date'); + // resStr = genDts.transTskey2Ckey('std::time'); + // assert.strictEqual(resStr, 'Date'); + // resStr = genDts.transTskey2Ckey('std::strftime'); + // assert.strictEqual(resStr, 'Date'); + // resStr = genDts.transTskey2Ckey('std::localtime'); + // assert.strictEqual(resStr, 'Date'); + // resStr = genDts.transTskey2Ckey('std::gmtime'); + // assert.strictEqual(resStr, 'Date'); + // resStr = genDts.transTskey2Ckey('std::mktime'); + // assert.strictEqual(resStr, 'Date'); + //std::function + resStr = genDts.transTskey2Ckey('std::function'); + assert.strictEqual(resStr, '(param0: number, param1: number)=>number'); + resStr = genDts.transTskey2Ckey('std::function'); + assert.strictEqual(resStr, '(param0: number, param1: number)=>void'); + resStr = genDts.transTskey2Ckey('std::function'); + assert.strictEqual(resStr, '()=>void'); + resStr = genDts.transTskey2Ckey('std::function'); + assert.strictEqual(resStr, '(param0: number)=>number'); + resStr = genDts.transTskey2Ckey('std::function'); + assert.strictEqual(resStr, '(param0: number)=>void'); + resStr = genDts.transTskey2Ckey('std::function'); + assert.strictEqual(resStr, '(param0: string, param1: number, param2: number)=>void'); + resStr = genDts.transTskey2Ckey('std::function'); + assert.strictEqual(resStr, '(param0: string, param1: number)=>void'); + resStr = genDts.transTskey2Ckey('std::function'); + assert.strictEqual(resStr, '(param0: string, param1: number)=>number'); + resStr = genDts.transTskey2Ckey('std::function'); + assert.strictEqual(resStr, '(param0: string, param1: number)=>string'); + resStr = genDts.transTskey2Ckey('std::function'); + assert.strictEqual(resStr, '(param0: string, param1: number)=>number'); + resStr = genDts.transTskey2Ckey('std::function'); + assert.strictEqual(resStr, '(param0: number, param1: number)=>number'); + resStr = genDts.transTskey2Ckey('std::function'); + assert.strictEqual(resStr, '(param0: number)=>boolean'); + //std::unique_ptr + resStr = genDts.transTskey2Ckey('std::unique_ptr'); + assert.strictEqual(resStr, 'number'); + resStr = genDts.transTskey2Ckey('std::unique_ptr'); + assert.strictEqual(resStr, 'number'); + resStr = genDts.transTskey2Ckey('std::unique_ptr'); + assert.strictEqual(resStr, 'number'); + resStr = genDts.transTskey2Ckey('std::unique_ptr'); + assert.strictEqual(resStr, 'number'); + resStr = genDts.transTskey2Ckey('std::unique_ptr'); + assert.strictEqual(resStr, 'number'); + resStr = genDts.transTskey2Ckey('std::unique_ptr'); + assert.strictEqual(resStr, 'number'); + resStr = genDts.transTskey2Ckey('std::unique_ptr'); + assert.strictEqual(resStr, 'number'); + resStr = genDts.transTskey2Ckey('std::unique_ptr'); + assert.strictEqual(resStr, 'number'); + resStr = genDts.transTskey2Ckey('std::unique_ptr'); + assert.strictEqual(resStr, 'number'); + resStr = genDts.transTskey2Ckey('std::unique_ptr'); + assert.strictEqual(resStr, 'number'); + resStr = genDts.transTskey2Ckey('std::unique_ptr'); + assert.strictEqual(resStr, 'number'); + resStr = genDts.transTskey2Ckey('std::unique_ptr'); + assert.strictEqual(resStr, 'number'); + resStr = genDts.transTskey2Ckey('std::unique_ptr'); + assert.strictEqual(resStr, 'number'); + resStr = genDts.transTskey2Ckey('std::unique_ptr'); + assert.strictEqual(resStr, 'number'); + resStr = genDts.transTskey2Ckey('std::unique_ptr'); + assert.strictEqual(resStr, 'number'); + + resStr = genDts.transTskey2Ckey('std::unique_ptr'); + assert.strictEqual(resStr, 'boolean'); + + resStr = genDts.transTskey2Ckey('std::unique_ptr'); + assert.strictEqual(resStr, 'string'); + resStr = genDts.transTskey2Ckey('std::unique_ptr'); + assert.strictEqual(resStr, 'string'); + resStr = genDts.transTskey2Ckey('std::unique_ptr'); + assert.strictEqual(resStr, 'string'); + resStr = genDts.transTskey2Ckey('std::unique_ptr'); + assert.strictEqual(resStr, 'string'); + resStr = genDts.transTskey2Ckey('std::unique_ptr'); + assert.strictEqual(resStr, 'string'); + //std::shared_ptr + resStr = genDts.transTskey2Ckey('std::shared_ptr'); + assert.strictEqual(resStr, 'number'); + resStr = genDts.transTskey2Ckey('std::shared_ptr'); + assert.strictEqual(resStr, 'number'); + resStr = genDts.transTskey2Ckey('std::shared_ptr'); + assert.strictEqual(resStr, 'number'); + resStr = genDts.transTskey2Ckey('std::shared_ptr'); + assert.strictEqual(resStr, 'number'); + resStr = genDts.transTskey2Ckey('std::shared_ptr'); + assert.strictEqual(resStr, 'number'); + resStr = genDts.transTskey2Ckey('std::shared_ptr'); + assert.strictEqual(resStr, 'number'); + resStr = genDts.transTskey2Ckey('std::shared_ptr'); + assert.strictEqual(resStr, 'number'); + resStr = genDts.transTskey2Ckey('std::shared_ptr'); + assert.strictEqual(resStr, 'number'); + resStr = genDts.transTskey2Ckey('std::shared_ptr'); + assert.strictEqual(resStr, 'number'); + resStr = genDts.transTskey2Ckey('std::shared_ptr'); + assert.strictEqual(resStr, 'number'); + resStr = genDts.transTskey2Ckey('std::shared_ptr'); + assert.strictEqual(resStr, 'number'); + resStr = genDts.transTskey2Ckey('std::shared_ptr'); + assert.strictEqual(resStr, 'number'); + resStr = genDts.transTskey2Ckey('std::shared_ptr'); + assert.strictEqual(resStr, 'number'); + resStr = genDts.transTskey2Ckey('std::shared_ptr'); + assert.strictEqual(resStr, 'number'); + resStr = genDts.transTskey2Ckey('std::shared_ptr'); + assert.strictEqual(resStr, 'number'); + + resStr = genDts.transTskey2Ckey('std::shared_ptr'); + assert.strictEqual(resStr, 'boolean'); + + resStr = genDts.transTskey2Ckey('std::shared_ptr'); + assert.strictEqual(resStr, 'string'); + resStr = genDts.transTskey2Ckey('std::shared_ptr'); + assert.strictEqual(resStr, 'string'); + resStr = genDts.transTskey2Ckey('std::shared_ptr'); + assert.strictEqual(resStr, 'string'); + resStr = genDts.transTskey2Ckey('std::shared_ptr'); + assert.strictEqual(resStr, 'string'); + resStr = genDts.transTskey2Ckey('std::shared_ptr'); + assert.strictEqual(resStr, 'string'); + //std::weak_ptr + resStr = genDts.transTskey2Ckey('std::weak_ptr'); + assert.strictEqual(resStr, 'number'); + resStr = genDts.transTskey2Ckey('std::weak_ptr'); + assert.strictEqual(resStr, 'number'); + resStr = genDts.transTskey2Ckey('std::weak_ptr'); + assert.strictEqual(resStr, 'number'); + resStr = genDts.transTskey2Ckey('std::weak_ptr'); + assert.strictEqual(resStr, 'number'); + resStr = genDts.transTskey2Ckey('std::weak_ptr'); + assert.strictEqual(resStr, 'number'); + resStr = genDts.transTskey2Ckey('std::weak_ptr'); + assert.strictEqual(resStr, 'number'); + resStr = genDts.transTskey2Ckey('std::weak_ptr'); + assert.strictEqual(resStr, 'number'); + resStr = genDts.transTskey2Ckey('std::weak_ptr'); + assert.strictEqual(resStr, 'number'); + resStr = genDts.transTskey2Ckey('std::weak_ptr'); + assert.strictEqual(resStr, 'number'); + resStr = genDts.transTskey2Ckey('std::weak_ptr'); + assert.strictEqual(resStr, 'number'); + resStr = genDts.transTskey2Ckey('std::weak_ptr'); + assert.strictEqual(resStr, 'number'); + resStr = genDts.transTskey2Ckey('std::weak_ptr'); + assert.strictEqual(resStr, 'number'); + resStr = genDts.transTskey2Ckey('std::weak_ptr'); + assert.strictEqual(resStr, 'number'); + resStr = genDts.transTskey2Ckey('std::weak_ptr'); + assert.strictEqual(resStr, 'number'); + resStr = genDts.transTskey2Ckey('std::weak_ptr'); + assert.strictEqual(resStr, 'number'); + + resStr = genDts.transTskey2Ckey('std::weak_ptr'); + assert.strictEqual(resStr, 'boolean'); + + resStr = genDts.transTskey2Ckey('std::weak_ptr'); + assert.strictEqual(resStr, 'string'); + resStr = genDts.transTskey2Ckey('std::weak_ptr'); + assert.strictEqual(resStr, 'string'); + resStr = genDts.transTskey2Ckey('std::weak_ptr'); + assert.strictEqual(resStr, 'string'); + resStr = genDts.transTskey2Ckey('std::weak_ptr'); + assert.strictEqual(resStr, 'string'); + resStr = genDts.transTskey2Ckey('std::weak_ptr'); + assert.strictEqual(resStr, 'string'); + }); + + //2, 测试边界情况 + test('transTskey2Ckey_test_3', () => { + let resStr = genDts.transTskey2Ckey('std::string'); + assert.strictEqual(resStr, 'string'); + resStr = genDts.transTskey2Ckey('std::vector'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('char *'); + assert.strictEqual(resStr, 'string'); + resStr = genDts.transTskey2Ckey('long long'); + assert.strictEqual(resStr, 'number'); + resStr = genDts.transTskey2Ckey('unsigned short'); + assert.strictEqual(resStr, 'number'); + resStr = genDts.transTskey2Ckey('unsigned long'); + assert.strictEqual(resStr, 'number'); + resStr = genDts.transTskey2Ckey('unsigned long long'); + assert.strictEqual(resStr, 'number'); + resStr = genDts.transTskey2Ckey('std::vector'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::vector'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::vector'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::vector'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('int *'); + assert.strictEqual(resStr, 'number'); + resStr = genDts.transTskey2Ckey('std::vector'); + assert.strictEqual(resStr, 'Array'); + //std::vector::iterator + resStr = genDts.transTskey2Ckey('std::vector::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::vector::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::vector::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::vector::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::vector::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::vector::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::vector::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + //std::array + resStr = genDts.transTskey2Ckey('std::array'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::array'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::array'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::array'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::array'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::array'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::array'); + assert.strictEqual(resStr, 'Array'); + //std::array::iterator + resStr = genDts.transTskey2Ckey('std::array::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::array::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::array::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::array::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::array::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::array::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::array::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + //std::deque + resStr = genDts.transTskey2Ckey('std::deque'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::deque'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::deque'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::deque'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::deque'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::deque'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::deque'); + assert.strictEqual(resStr, 'Array'); + //std::deque::iterator + resStr = genDts.transTskey2Ckey('std::deque::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::deque::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::deque::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::deque::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::deque::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::deque::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::deque::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + //std::list + resStr = genDts.transTskey2Ckey('std::list'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::list'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::list'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::list'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::list'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::list'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::list'); + assert.strictEqual(resStr, 'Array'); + //std::list::iterator + resStr = genDts.transTskey2Ckey('std::list::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::list::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::list::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::list::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::list::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::list::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::list::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + //std::forward_list + resStr = genDts.transTskey2Ckey('std::forward_list'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::forward_list'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::forward_list'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::forward_list'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::forward_list'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::forward_list'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::forward_list'); + assert.strictEqual(resStr, 'Array'); + //std::forward_list::iterator + resStr = genDts.transTskey2Ckey('std::forward_list::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::forward_list::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::forward_list::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::forward_list::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::forward_list::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::forward_list::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::forward_list::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + //std::stack + resStr = genDts.transTskey2Ckey('std::stack'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::stack'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::stack'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::stack'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::stack'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::stack'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::stack'); + assert.strictEqual(resStr, 'Array'); + //std::stack::iterator + resStr = genDts.transTskey2Ckey('std::stack::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::stack::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::stack::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::stack::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::stack::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::stack::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::stack::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + //std::queue + resStr = genDts.transTskey2Ckey('std::queue'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::queue'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::queue'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::queue'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::queue'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::queue'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::queue'); + assert.strictEqual(resStr, 'Array'); + //std::queue::iterator + resStr = genDts.transTskey2Ckey('std::queue::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::queue::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::queue::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::queue::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::queue::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::queue::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::queue::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + //std::valarray + resStr = genDts.transTskey2Ckey('std::valarray'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::valarray'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::valarray'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::valarray'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::valarray'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::valarray'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::valarray'); + assert.strictEqual(resStr, 'Array'); + //std::valarray::iterator + resStr = genDts.transTskey2Ckey('std::valarray::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::valarray::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::valarray::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::valarray::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::valarray::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::valarray::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::valarray::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + //std::priority_queue + resStr = genDts.transTskey2Ckey('std::priority_queue'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::priority_queue'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::priority_queue'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::priority_queue'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::priority_queue'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::priority_queue'); + assert.strictEqual(resStr, 'Array'); + resStr = genDts.transTskey2Ckey('std::priority_queue'); + assert.strictEqual(resStr, 'Array'); + //std::priority_queue::iterator + resStr = genDts.transTskey2Ckey('std::priority_queue::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::priority_queue::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::priority_queue::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::priority_queue::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::priority_queue::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::priority_queue::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::priority_queue::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + //std::map + resStr = genDts.transTskey2Ckey('std::map'); + assert.strictEqual(resStr, 'Map'); + resStr = genDts.transTskey2Ckey('std::map'); + assert.strictEqual(resStr, 'Map'); + resStr = genDts.transTskey2Ckey('std::map'); + assert.strictEqual(resStr, 'Map'); + resStr = genDts.transTskey2Ckey('std::map'); + assert.strictEqual(resStr, 'Map'); + resStr = genDts.transTskey2Ckey('std::map'); + assert.strictEqual(resStr, 'Map'); + resStr = genDts.transTskey2Ckey('std::map'); + assert.strictEqual(resStr, 'Map'); + resStr = genDts.transTskey2Ckey('std::map'); + assert.strictEqual(resStr, 'Map'); + resStr = genDts.transTskey2Ckey('std::map'); + assert.strictEqual(resStr, 'Map'); + resStr = genDts.transTskey2Ckey('std::map'); + assert.strictEqual(resStr, 'Map'); + //std::map::iterator + resStr = genDts.transTskey2Ckey('std::map::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::map::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::map::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::map::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::map::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::map::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::map::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::map::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::map::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + //std::unordered_map + resStr = genDts.transTskey2Ckey('std::unordered_map'); + assert.strictEqual(resStr, 'Map'); + resStr = genDts.transTskey2Ckey('std::unordered_map'); + assert.strictEqual(resStr, 'Map'); + resStr = genDts.transTskey2Ckey('std::unordered_map'); + assert.strictEqual(resStr, 'Map'); + resStr = genDts.transTskey2Ckey('std::unordered_map'); + assert.strictEqual(resStr, 'Map'); + resStr = genDts.transTskey2Ckey('std::unordered_map'); + assert.strictEqual(resStr, 'Map'); + resStr = genDts.transTskey2Ckey('std::unordered_map'); + assert.strictEqual(resStr, 'Map'); + resStr = genDts.transTskey2Ckey('std::unordered_map'); + assert.strictEqual(resStr, 'Map'); + resStr = genDts.transTskey2Ckey('std::unordered_map'); + assert.strictEqual(resStr, 'Map'); + resStr = genDts.transTskey2Ckey('std::unordered_map'); + assert.strictEqual(resStr, 'Map'); + //std::unordered_map::iterator + resStr = genDts.transTskey2Ckey('std::unordered_map::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::unordered_map::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::unordered_map::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::unordered_map::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::unordered_map::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::unordered_map::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::unordered_map::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::unordered_map::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::unordered_map::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + //std::multimap + resStr = genDts.transTskey2Ckey('std::multimap'); + assert.strictEqual(resStr, 'Map'); + resStr = genDts.transTskey2Ckey('std::multimap'); + assert.strictEqual(resStr, 'Map'); + resStr = genDts.transTskey2Ckey('std::multimap'); + assert.strictEqual(resStr, 'Map'); + resStr = genDts.transTskey2Ckey('std::multimap'); + assert.strictEqual(resStr, 'Map'); + resStr = genDts.transTskey2Ckey('std::multimap'); + assert.strictEqual(resStr, 'Map'); + resStr = genDts.transTskey2Ckey('std::multimap'); + assert.strictEqual(resStr, 'Map'); + resStr = genDts.transTskey2Ckey('std::multimap'); + assert.strictEqual(resStr, 'Map'); + resStr = genDts.transTskey2Ckey('std::multimap'); + assert.strictEqual(resStr, 'Map'); + resStr = genDts.transTskey2Ckey('std::multimap'); + assert.strictEqual(resStr, 'Map'); + //std::multimap::iterator + resStr = genDts.transTskey2Ckey('std::multimap::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::multimap::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::multimap::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::multimap::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::multimap::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::multimap::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::multimap::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::multimap::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::multimap::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + //std::unordered_multimap + resStr = genDts.transTskey2Ckey('std::unordered_multimap'); + assert.strictEqual(resStr, 'Map'); + resStr = genDts.transTskey2Ckey('std::unordered_multimap'); + assert.strictEqual(resStr, 'Map'); + resStr = genDts.transTskey2Ckey('std::unordered_multimap'); + assert.strictEqual(resStr, 'Map'); + resStr = genDts.transTskey2Ckey('std::unordered_multimap'); + assert.strictEqual(resStr, 'Map'); + resStr = genDts.transTskey2Ckey('std::unordered_multimap'); + assert.strictEqual(resStr, 'Map'); + resStr = genDts.transTskey2Ckey('std::unordered_multimap'); + assert.strictEqual(resStr, 'Map'); + resStr = genDts.transTskey2Ckey('std::unordered_multimap'); + assert.strictEqual(resStr, 'Map'); + resStr = genDts.transTskey2Ckey('std::unordered_multimap'); + assert.strictEqual(resStr, 'Map'); + resStr = genDts.transTskey2Ckey('std::unordered_multimap'); + assert.strictEqual(resStr, 'Map'); + //std::unordered_multimap::iterator + resStr = genDts.transTskey2Ckey('std::unordered_multimap::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::unordered_multimap::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::unordered_multimap::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::unordered_multimap::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::unordered_multimap::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::unordered_multimap::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::unordered_multimap::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::unordered_multimap::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::unordered_multimap::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + //std::set + resStr = genDts.transTskey2Ckey('std::set'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::set'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::set'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::set'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::set'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::set'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::set'); + assert.strictEqual(resStr, 'Set'); + //std::set::iterator + resStr = genDts.transTskey2Ckey('std::set::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::set::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::set::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::set::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::set::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::set::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::set::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + //std::unordered_set + resStr = genDts.transTskey2Ckey('std::unordered_set'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::unordered_set'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::unordered_set'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::unordered_set'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::unordered_set'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::unordered_set'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::unordered_set'); + assert.strictEqual(resStr, 'Set'); + //std::unordered_set::iterator + resStr = genDts.transTskey2Ckey('std::unordered_set::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::unordered_set::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::unordered_set::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::unordered_set::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::unordered_set::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::unordered_set::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::unordered_set::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + //std::multiset + resStr = genDts.transTskey2Ckey('std::multiset'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::multiset'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::multiset'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::multiset'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::multiset'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::multiset'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::multiset'); + assert.strictEqual(resStr, 'Set'); + //std::multiset::iterator + resStr = genDts.transTskey2Ckey('std::multiset::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::multiset::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::multiset::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::multiset::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::multiset::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::multiset::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::multiset::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + //std::unordered_multiset + resStr = genDts.transTskey2Ckey('std::unordered_multiset'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::unordered_multiset'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::unordered_multiset'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::unordered_multiset'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::unordered_multiset'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::unordered_multiset'); + assert.strictEqual(resStr, 'Set'); + resStr = genDts.transTskey2Ckey('std::unordered_multiset'); + assert.strictEqual(resStr, 'Set'); + //std::unordered_multiset::iterator + resStr = genDts.transTskey2Ckey('std::unordered_multiset::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::unordered_multiset::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::unordered_multiset::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::unordered_multiset::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::unordered_multiset::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::unordered_multiset::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + resStr = genDts.transTskey2Ckey('std::unordered_multiset::iterator'); + assert.strictEqual(resStr, 'IterableIterator>'); + //std::tuple + resStr = genDts.transTskey2Ckey('std::tuple'); + assert.strictEqual(resStr, '[number, boolean, number, string, number, string, number]'); + //std::pair + resStr = genDts.transTskey2Ckey('std::pair'); + assert.strictEqual(resStr, '[number, boolean, number, string, number, string, number]'); + //std::complex + resStr = genDts.transTskey2Ckey('std::complex'); + assert.strictEqual(resStr, '{real: number, imag: number}'); + resStr = genDts.transTskey2Ckey('std::complex'); + assert.strictEqual(resStr, '{real: number, imag: number}'); + resStr = genDts.transTskey2Ckey('std::complex'); + assert.strictEqual(resStr, '{real: number, imag: number}'); + //Date + resStr = genDts.transTskey2Ckey('std::chrono::hours'); + assert.strictEqual(resStr, 'Date'); + resStr = genDts.transTskey2Ckey('std::chrono::minutes'); + assert.strictEqual(resStr, 'Date'); + //std::function + resStr = genDts.transTskey2Ckey('std::function'); + assert.strictEqual(resStr, '(param0: string)=>string'); + resStr = genDts.transTskey2Ckey('std::function'); + assert.strictEqual(resStr, '(param0: number, param1: number)=>number'); + resStr = genDts.transTskey2Ckey('std::function'); + assert.strictEqual(resStr, '(param0: number, param1: number)=>void'); + //std::unique_ptr + resStr = genDts.transTskey2Ckey('std::unique_ptr'); + assert.strictEqual(resStr, 'string'); + resStr = genDts.transTskey2Ckey('std::unique_ptr'); + assert.strictEqual(resStr, 'string'); + resStr = genDts.transTskey2Ckey('std::unique_ptr'); + assert.strictEqual(resStr, 'number'); + resStr = genDts.transTskey2Ckey('std::unique_ptr'); + assert.strictEqual(resStr, 'number'); + resStr = genDts.transTskey2Ckey('std::unique_ptr'); + assert.strictEqual(resStr, 'number'); + resStr = genDts.transTskey2Ckey('std::unique_ptr'); + assert.strictEqual(resStr, 'number'); + resStr = genDts.transTskey2Ckey('std::unique_ptr'); + assert.strictEqual(resStr, 'number'); + //std::shared_ptr + resStr = genDts.transTskey2Ckey('std::shared_ptr'); + assert.strictEqual(resStr, 'string'); + resStr = genDts.transTskey2Ckey('std::shared_ptr'); + assert.strictEqual(resStr, 'string'); + resStr = genDts.transTskey2Ckey('std::shared_ptr'); + assert.strictEqual(resStr, 'number'); + resStr = genDts.transTskey2Ckey('std::shared_ptr'); + assert.strictEqual(resStr, 'number'); + resStr = genDts.transTskey2Ckey('std::shared_ptr'); + assert.strictEqual(resStr, 'number'); + resStr = genDts.transTskey2Ckey('std::shared_ptr'); + assert.strictEqual(resStr, 'number'); + resStr = genDts.transTskey2Ckey('std::shared_ptr'); + assert.strictEqual(resStr, 'number'); + //std::weak_ptr + resStr = genDts.transTskey2Ckey('std::weak_ptr'); + assert.strictEqual(resStr, 'string'); + resStr = genDts.transTskey2Ckey('std::weak_ptr'); + assert.strictEqual(resStr, 'string'); + resStr = genDts.transTskey2Ckey('std::weak_ptr'); + assert.strictEqual(resStr, 'number'); + resStr = genDts.transTskey2Ckey('std::weak_ptr'); + assert.strictEqual(resStr, 'number'); + resStr = genDts.transTskey2Ckey('std::weak_ptr'); + assert.strictEqual(resStr, 'number'); + resStr = genDts.transTskey2Ckey('std::weak_ptr'); + assert.strictEqual(resStr, 'number'); + resStr = genDts.transTskey2Ckey('std::weak_ptr'); + assert.strictEqual(resStr, 'number'); + }); + + //3, 测试异常情况 + test('transTskey2Ckey_test_4', () => { + let resStr = genDts.transTskey2Ckey(''); + assert.strictEqual(resStr, 'any'); + resStr = genDts.transTskey2Ckey('int$#'); + assert.strictEqual(resStr, 'number'); + resStr = genDts.transTskey2Ckey('MyType'); + assert.strictEqual(resStr, 'any'); + resStr = genDts.transTskey2Ckey('defined type'); + assert.strictEqual(resStr, 'any'); + resStr = genDts.transTskey2Ckey('std::weak_ptr<'); + assert.strictEqual(resStr, 'any'); + }); + + //4, 测试错误情况 + test('transTskey2Ckey_test_5', () => { + let res = true; + try { + genDts.transTskey2Ckey(null); + } catch (error) { + res = false; + } + assert.strictEqual(res, false); + let res2 = true; + try { + genDts.transTskey2Ckey(undefined); + } catch (error) { + res2 = false; + } + assert.strictEqual(res2, false); + }); +}) \ No newline at end of file diff --git a/src/vscode_plugin/src/test/suite/gen/gendtsunion.test.ts b/src/vscode_plugin/src/test/suite/gen/gendtsunion.test.ts new file mode 100644 index 0000000000000000000000000000000000000000..51a961999471a7be702be9f5456639a01a52d362 --- /dev/null +++ b/src/vscode_plugin/src/test/suite/gen/gendtsunion.test.ts @@ -0,0 +1,1209 @@ +/* +* Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +import * as assert from 'assert'; + +// You can import and use all API from the 'vscode' module +// as well as import your extension to test it +import * as vscode from 'vscode'; +import * as genDts from '../../../gen/gendts' +import { ClassObj, EnumObj, FuncObj, GenInfo, ParseObj, StructObj, UnionObj } from '../../../gen/datatype'; +import * as fs from 'fs'; + +suite('Gendts_unions_Suite', () => { + //1, 测试一般情况 + test('getDtsUnions_test_1', () => { + //1. alias为空 + let unions: UnionObj[] = [ + { + name: 'UnionObj', + alias: '', + members: [ + { + type: 'int', + name: 'v1', + arraySize: -1, + arraySizeList: [] + }, + { + type: 'double', + name: 'v2', + arraySize: -1, + arraySizeList: [] + } + ], + }, + ]; + let rootInfo: GenInfo = { + parseObj: { + enums: [], + unions: unions, + structs: [], + classes: [], + funcs: [] + }, + rawFilePath: 'e:\\test.h', + fileName: 'test', + }; + let resStr = genDts.getDtsUnions(rootInfo); + assert.strictEqual(resStr, 'export type UnionObj = number | number ;\n\n'); + + //2. alias不为空但和name相同 + unions = [ + { + name: 'UnionObj', + alias: 'UnionObj', + members: [ + { + type: 'int', + name: 'v1', + arraySize: -1, + arraySizeList: [] + }, + { + type: 'double', + name: 'v2', + arraySize: -1, + arraySizeList: [] + } + ], + }, + ]; + rootInfo = { + parseObj: { + enums: [], + unions: unions, + structs: [], + classes: [], + funcs: [] + }, + rawFilePath: 'e:\\test.h', + fileName: 'test', + }; + resStr = genDts.getDtsUnions(rootInfo); + assert.strictEqual(resStr, 'export type UnionObj = number | number ;\n\n'); + + //3. alias不为空且和name不同 + unions = [ + { + name: 'UnionObj', + alias: 'UnionObject', + members: [ + { + type: 'int', + name: 'v1', + arraySize: -1, + arraySizeList: [] + }, + { + type: 'double', + name: 'v2', + arraySize: -1, + arraySizeList: [] + } + ], + }, + ]; + rootInfo = { + parseObj: { + enums: [], + unions: unions, + structs: [], + classes: [], + funcs: [] + }, + rawFilePath: 'e:\\test.h', + fileName: 'test', + }; + resStr = genDts.getDtsUnions(rootInfo); + assert.strictEqual(resStr, 'export type UnionObj = number | number ;\n\nexport type UnionObject = UnionObj;\n\n'); + }); + + //2, 测试边界情况 + test('getDtsUnions_test_2', () => { + //1.members仅有一个元素 + let unions: UnionObj[] = [ + { + name: 'OperationType', + alias: '', + members: [ + { + type: 'int', + name: 'len', + arraySize: -1, + arraySizeList: [] + } + ] + } + ] + let rootInfo: GenInfo = { + parseObj: { + enums: [], + unions: unions, + structs: [], + classes: [], + funcs: [] + }, + rawFilePath: 'e:\\test.h', + fileName: 'test', + }; + let resStr = genDts.getDtsUnions(rootInfo); + assert.strictEqual(resStr, 'export type OperationType = number ;\n\n'); + //2.members有多个元素 + unions = [ + { + name: 'OperationType', + alias: '', + members: [ + { + type: 'char', + name: 'ch', + arraySize: -1, + arraySizeList: [] + }, + { + type: 'int', + name: 'len', + arraySize: -1, + arraySizeList: [] + }, + { + type: 'short', + name: 'slen', + arraySize: -1, + arraySizeList: [] + }, + { + type: 'long', + name: 'llen', + arraySize: -1, + arraySizeList: [] + }, + { + type: 'long long', + name: 'llint', + arraySize: -1, + arraySizeList: [] + }, + { + type: 'float', + name: 'width', + arraySize: -1, + arraySizeList: [] + }, + { + type: 'double', + name: 'dlen', + arraySize: -1, + arraySizeList: [] + }, + { + type: 'long double', + name: 'ldlen', + arraySize: -1, + arraySizeList: [] + }, + { + type: 'void*', + name: 'ptr', + arraySize: -1, + arraySizeList: [] + }, + { + type: 'char', + name: 'name', + arraySize: 20, + arraySizeList: [20, 10] + }, + { + type: 'char', + name: 'ch3', + arraySize: 10, + arraySizeList: [10, 20, 30] + }, + { + type: 'int', + name: 'len3', + arraySize: 10, + arraySizeList: [10, 20, 30] + }, + { + type: 'short', + name: 'slen3', + arraySize: 10, + arraySizeList: [10, 20, 30] + }, + { + type: 'long', + name: 'llen3', + arraySize: 10, + arraySizeList: [10, 20, 30] + } + { + type: 'long long', + name: 'llint3', + arraySize: 10, + arraySizeList: [10, 20, 30] + }, + { + type: 'float', + name: 'width3', + arraySize: 10, + arraySizeList: [10, 20, 30] + }, + { + type: 'double', + name: 'dlens', + arraySize: 10, + arraySizeList: [10, 20, 30] + }, + { + type: 'long double', + name: 'ldlen3', + arraySize: 10, + arraySizeList: [10, 20, 30] + }, + { + type: 'void*', + name: 'ptr3', + arraySize: 10, + arraySizeList: [10, 20, 30] + }, + { + type: 'signed char', + name: 'sch', + arraySize: -1, + arraySizeList: [] + }, + { + type: 'signed int', + name: 'silen', + arraySize: -1, + arraySizeList: [] + }, + { + type: 'signed short', + name: 'slen', + arraySize: -1, + arraySizeList: [] + }, + { + type: 'signed long', + name: 'sllen', + arraySize: -1, + arraySizeList: [] + }, + { + type: 'signed long long', + name: 'sllint', + arraySize: -1, + arraySizeList: [] + }, + { + type: 'signed float', + name: 'swidth', + arraySize: -1, + arraySizeList: [] + }, + { + type: 'signed double', + name: 'sdlen', + arraySize: -1, + arraySizeList: [] + }, + { + type: 'signed void*', + name: 'ptr', + arraySize: -1, + arraySizeList: [] + }, + { + type: 'unsigned char', + name: 'uch', + arraySize: -1, + arraySizeList: [] + }, + { + type: 'unsigned int', + name: 'ulen', + arraySize: -1, + arraySizeList: [] + }, + { + type: 'unsigned short', + name: 'uslen', + arraySize: -1, + arraySizeList: [] + }, + { + type: 'unsigned long', + name: 'ullen', + arraySize: -1, + arraySizeList: [] + }, + { + type: 'unsigned long long', + name: 'ullint', + arraySize: -1, + arraySizeList: [] + }, + { + type: 'unsigned float', + name: 'uwidth', + arraySize: -1, + arraySizeList: [] + }, + { + type: 'unsigned double', + name: 'udlen', + arraySize: -1, + arraySizeList: [] + }, + { + type: 'unsigned long double', + name: 'uld', + arraySize: -1, + arraySizeList: [] + }, + { + type: 'unsigned void*', + name: 'uptr', + arraySize: -1, + arraySizeList: [] + }, + { + type: 'bool', + name: 'bflag', + arraySize: -1, + arraySizeList: [] + }, + { + type: 'std::map', + name: 'Map', + arraySize: -1, + arraySizeList: [] + } + ] + } + ] + rootInfo = { + parseObj: { + enums: [], + unions: unions, + structs: [], + classes: [], + funcs: [] + }, + rawFilePath: 'e:\\test.h', + fileName: 'test', + }; + resStr = genDts.getDtsUnions(rootInfo); + assert.strictEqual(resStr, 'export type OperationType = string | number | number | number | number | number | number | number | void | string | string | number | number | number | number | number | number | number | void | string | number | number | number | number | number | number | void | string | number | number | number | number | number | number | number | number | boolean | Map ;\n\n'); + //3.unions有两个成员 + unions = [ + { + name: 'OType', + alias: '', + members: [ + { + type: 'int', + name: 'len', + arraySize: -1, + arraySizeList: [] + } + ] + }, + { + name: 'TOTSize1', + alias: '', + members:[ + { + type: 'int', + name: 'len', + arraySize: -1, + arraySizeList: [] + } + ] + } + ] + rootInfo = { + parseObj: { + enums: [], + unions: unions, + structs: [], + classes: [], + funcs: [] + }, + rawFilePath: 'e:\\test.h', + fileName: 'test', + }; + resStr = genDts.getDtsUnions(rootInfo); + assert.strictEqual(resStr, 'export type OType = number ;\n\nexport type TOTSize1 = number ;\n\n'); + //4.unions有多个成员 + unions = [ + { + name: 'TEST_1', + alias: '', + members: [ + { + type: 'int', + name: 'len', + arraySize: -1, + arraySizeList: [] + }, + ] + }, + { + name: 'TEST_2', + alias: '', + members:[ + { + type: 'char', + name: 'ch', + arraySize: 10, + arraySizeList: [10] + } + ] + }, + { + name: 'TEST_3', + alias: '', + members:[ + { + type: 'short', + name: 'slen', + arraySize: -1, + arraySizeList: [] + } + ] + }, + { + name: 'TEST_4', + alias: '', + members:[ + { + type: 'long', + name: 'llen', + arraySize: -1, + arraySizeList: [] + } + ] + }, + { + name: 'TEST_5', + alias: '', + members:[ + { + type: 'long long', + name: 'llint', + arraySize: -1, + arraySizeList: [] + } + ] + }, + { + name: 'TEST_6', + alias: '', + members:[ + { + type: 'float', + name: 'width', + arraySize: -1, + arraySizeList: [] + } + ] + }, + { + name: 'TEST_7', + alias: '', + members:[ + { + type: 'double', + name: 'dlen', + arraySize: -1, + arraySizeList: [] + } + ] + }, + { + name: 'TEST_8', + alias: '', + members:[ + { + type: 'long double', + name: 'ldlen', + arraySize: -1, + arraySizeList: [] + } + ] + }, + { + name: 'TEST_9', + alias: '', + members:[ + { + type: 'wchar_t', + name: 'wch', + arraySize: -1, + arraySizeList: [] + } + ] + }, + { + name: 'TEST_10', + alias: '', + members:[ + { + type: 'char', + name: 'name', + arraySize: 20, + arraySizeList: [20, 10] + } + ] + }, + { + name: 'TEST_11', + alias: '', + members:[ + { + type: 'char', + name: 'ch3', + arraySize: 10, + arraySizeList: [10, 20, 30] + } + ] + }, + { + name: 'TEST_12', + alias: '', + members:[ + { + type: 'int', + name: 'len3', + arraySize: 10, + arraySizeList: [10, 20, 30] + } + ] + }, + { + name: 'TEST_13', + alias: '', + members:[ + { + type: 'short', + name: 'slen3', + arraySize: 10, + arraySizeList: [10, 20, 30] + } + ] + }, + { + name: 'TEST_14', + alias: '', + members:[ + { + type: 'long', + name: 'llen3', + arraySize: 10, + arraySizeList: [10, 20, 30] + } + ] + }, + { + name: 'TEST_15', + alias: '', + members:[ + { + type: 'long long', + name: 'llint3', + arraySize: 10, + arraySizeList: [10, 20, 30] + } + ] + }, + { + name: 'TEST_16', + alias: '', + members:[ + { + type: 'float', + name: 'width3', + arraySize: 10, + arraySizeList: [10, 20, 30] + } + ] + }, + { + name: 'TEST_17', + alias: '', + members:[ + { + type: 'double', + name: 'dlen3', + arraySize: 10, + arraySizeList: [10, 20, 30] + } + ] + }, + { + name: 'TEST_18', + alias: '', + members:[ + { + type: 'long double', + name: 'ldlen3', + arraySize: 10, + arraySizeList: [10, 20, 30] + } + ] + }, + { + name: 'TEST_19', + alias: '', + members:[ + { + type: 'wchar_t', + name: 'wch3', + arraySize: 10, + arraySizeList: [10, 20, 30] + } + ] + }, + { + name: 'TEST_20', + alias: '', + members:[ + { + type: 'signed char', + name: 'sch', + arraySize: -1, + arraySizeList: [] + } + ] + }, + { + name: 'TEST_21', + alias: '', + members:[ + { + type: 'signed int', + name: 'silen', + arraySize: -1, + arraySizeList: [] + } + ] + }, + { + name: 'TEST_22', + alias: '', + members:[ + { + type: 'signed short', + name: 'slen', + arraySize: -1, + arraySizeList: [] + } + ] + }, + { + name: 'TEST_23', + alias: '', + members:[ + { + type: 'signed long', + name: 'sllen', + arraySize: -1, + arraySizeList: [] + } + ] + }, + { + name: 'TEST_24', + alias: '', + members:[ + { + type: 'signed long long', + name: 'sllint', + arraySize: -1, + arraySizeList: [] + } + ] + }, + { + name: 'TEST_25', + alias: '', + members:[ + { + type: 'signed float', + name: 'swidth', + arraySize: -1, + arraySizeList: [] + } + ] + }, + { + name: 'TEST_26', + alias: '', + members:[ + { + type: 'signed double', + name: 'sdlen', + arraySize: -1, + arraySizeList: [] + } + ] + }, + { + name: 'TEST_27', + alias: '', + members:[ + { + type: 'char*', + name: 'c', + arraySize: -1, + arraySizeList: [] + } + ] + }, + { + name: 'TEST_28', + alias: '', + members:[ + { + type: 'unsigned char', + name: 'uch', + arraySize: -1, + arraySizeList: [] + } + ] + }, + { + name: 'TEST_29', + alias: '', + members:[ + { + type: 'unsigned int', + name: 'ulen', + arraySize: -1, + arraySizeList: [] + } + ] + }, + { + name: 'TEST_30', + alias: '', + members:[ + { + type: 'unsigned short', + name: 'uslen', + arraySize: -1, + arraySizeList: [] + } + ] + }, + { + name: 'TEST_31', + alias: '', + members:[ + { + type: 'unsigned long', + name: 'ullen', + arraySize: -1, + arraySizeList: [] + } + ] + }, + { + name: 'TEST_32', + alias: '', + members:[ + { + type: 'unsigned long long', + name: 'ullint', + arraySize: -1, + arraySizeList: [] + } + ] + }, + { + name: 'TEST_33', + alias: '', + members:[ + { + type: 'unsigned float', + name: 'uwidth', + arraySize: -1, + arraySizeList: [] + } + ] + }, + { + name: 'TEST_34', + alias: '', + members:[ + { + type: 'unsigned double', + name: 'udlen', + arraySize: -1, + arraySizeList: [] + } + ] + }, + { + name: 'TEST_35', + alias: '', + members:[ + { + type: 'unsigned long double', + name: 'uld', + arraySize: -1, + arraySizeList: [] + } + ] + }, + { + name: 'TEST_36', + alias: '', + members:[ + { + type: 'int*', + name: 'i', + arraySize: -1, + arraySizeList: [] + } + ] + }, + { + name: 'TEST_37', + alias: '', + members:[ + { + type: 'bool', + name: 'bflag', + arraySize: -1, + arraySizeList: [] + } + ] + }, + ] + rootInfo = { + parseObj: { + enums: [], + unions: unions, + structs: [], + classes: [], + funcs: [] + }, + rawFilePath: 'e:\\test.h', + fileName: 'test', + }; + resStr = genDts.getDtsUnions(rootInfo); + assert.strictEqual(resStr, 'export type TEST_1 = number ;\n\nexport type TEST_2 = string ;\n\nexport type TEST_3 = number ;\n\nexport type TEST_4 = number ;\n\nexport type TEST_5 = number ;\n\nexport type TEST_6 = number ;\n\nexport type TEST_7 = number ;\n\nexport type TEST_8 = number ;\n\nexport type TEST_9 = string ;\n\nexport type TEST_10 = string ;\n\nexport type TEST_11 = string ;\n\nexport type TEST_12 = number ;\n\nexport type TEST_13 = number ;\n\nexport type TEST_14 = number ;\n\nexport type TEST_15 = number ;\n\nexport type TEST_16 = number ;\n\nexport type TEST_17 = number ;\n\nexport type TEST_18 = number ;\n\nexport type TEST_19 = string ;\n\nexport type TEST_20 = string ;\n\nexport type TEST_21 = number ;\n\nexport type TEST_22 = number ;\n\nexport type TEST_23 = number ;\n\nexport type TEST_24 = number ;\n\nexport type TEST_25 = number ;\n\nexport type TEST_26 = number ;\n\nexport type TEST_27 = string ;\n\nexport type TEST_28 = string ;\n\nexport type TEST_29 = number ;\n\nexport type TEST_30 = number ;\n\nexport type TEST_31 = number ;\n\nexport type TEST_32 = number ;\n\nexport type TEST_33 = number ;\n\nexport type TEST_34 = number ;\n\nexport type TEST_35 = number ;\n\nexport type TEST_36 = number ;\n\nexport type TEST_37 = boolean ;\n\n'); + }); + + //3, 测试异常情况export type OperationType = number ;\n\n + test('getDtsUnions_test_3', () => { + //1.unions是空 + let rootInfo: GenInfo = { + parseObj: { + enums: [], + unions: [], + structs: [], + classes: [], + funcs: [] + }, + rawFilePath: 'e:\\test.h', + fileName: 'test', + }; + let resStr = genDts.getDtsUnions(rootInfo); + assert.strictEqual(resStr, ''); + //2.unions.name为空 + let unions: UnionObj[] = [ + { + name: '', + alias: '', + members: [ + { + type: 'std::vector', + name: 'len', + arraySize: -1, + arraySizeList: [] + } + ] + } + ] + rootInfo = { + parseObj: { + enums: [], + unions: unions, + structs: [], + classes: [], + funcs: [] + }, + rawFilePath: 'e:\\test.h', + fileName: 'test', + }; + resStr = genDts.getDtsUnions(rootInfo); + assert.strictEqual(resStr, 'export type = Array ;\n\n'); + //3.unions.members为空 + unions = [ + { + name: 'UnionObj', + alias: '', + members: [] + } + ] + rootInfo = { + parseObj: { + enums: [], + unions: unions, + structs: [], + classes: [], + funcs: [] + }, + rawFilePath: 'e:\\test.h', + fileName: 'test', + }; + resStr = genDts.getDtsUnions(rootInfo); + assert.strictEqual(resStr, 'export type UnionObj = ;\n\n'); + //4.没有unions.name属性 + unions = [ + { + alias: '', + members: [ + { + type: 'char32_t', + name: 'str', + arraySize: -1, + arraySizeList: [] + } + ] + } + ] + rootInfo = { + parseObj: { + enums: [], + unions: unions, + structs: [], + classes: [], + funcs: [] + }, + rawFilePath: 'e:\\test.h', + fileName: 'test', + }; + resStr = genDts.getDtsUnions(rootInfo); + assert.strictEqual(resStr, 'export type undefined = string ;\n\n'); + //5.没有unions.alias属性 + unions = [ + { + name: 'UnionObj', + alias: '', + members: [ + { + type: 'int', + name: 'len', + arraySize: -1, + arraySizeList: [] + } + ] + } + ] + rootInfo = { + parseObj: { + enums: [], + unions: unions, + structs: [], + classes: [], + funcs: [] + }, + rawFilePath: 'e:\\test.h', + fileName: 'test', + }; + resStr = genDts.getDtsUnions(rootInfo); + assert.strictEqual(resStr, 'export type UnionObj = number ;\n\n'); + //6.unions.name为空,unions.alias不为空 + unions = [ + { + name: '', + alias: 'UnionObj', + members: [ + { + type: 'int', + name: 'len', + arraySize: -1, + arraySizeList: [] + } + ] + } + ] + rootInfo = { + parseObj: { + enums: [], + unions: unions, + structs: [], + classes: [], + funcs: [] + }, + rawFilePath: 'e:\\test.h', + fileName: 'test', + }; + resStr = genDts.getDtsUnions(rootInfo); + assert.strictEqual(resStr, 'export type = number ;\n\n'); + //7.type为中文 + unions = [ + { + name: '', + alias: 'UnionObj', + members: [ + { + type: '绿色', + name: '汉字', + arraySize: -1, + arraySizeList: [] + } + ] + } + ] + rootInfo = { + parseObj: { + enums: [], + unions: unions, + structs: [], + classes: [], + funcs: [] + }, + rawFilePath: 'e:\\test.h', + fileName: 'test', + }; + resStr = genDts.getDtsUnions(rootInfo); + assert.strictEqual(resStr, 'export type = any ;\n\n'); + //8.type为乱码 + unions = [ + { + name: '', + alias: 'UnionObj', + members: [ + { + type: 'uiob@#^6cja', + name: 'len', + arraySize: -1, + arraySizeList: [] + } + ] + } + ] + rootInfo = { + parseObj: { + enums: [], + unions: unions, + structs: [], + classes: [], + funcs: [] + }, + rawFilePath: 'e:\\test.h', + fileName: 'test', + }; + resStr = genDts.getDtsUnions(rootInfo); + assert.strictEqual(resStr, 'export type = any ;\n\n'); + //8.type为日文 + unions = [ + { + name: '', + alias: 'UnionObj', + members: [ + { + type: 'あさ', + name: 'len', + arraySize: -1, + arraySizeList: [] + } + ] + } + ] + rootInfo = { + parseObj: { + enums: [], + unions: unions, + structs: [], + classes: [], + funcs: [] + }, + rawFilePath: 'e:\\test.h', + fileName: 'test', + }; + resStr = genDts.getDtsUnions(rootInfo); + assert.strictEqual(resStr, 'export type = any ;\n\n'); + }); + + //4, 测试错误情况 + test('getDtsUnions_test_4', () => { + //1.传入参数null + let res = true; + try { + genDts.getDtsUnions(null); + } catch (error) { + res = false; + } + assert.strictEqual(res, false); + //2.传入参数undefined + let res2 = true; + try { + genDts.getDtsUnions(undefined); + } catch (error) { + res2 = false; + } + assert.strictEqual(res2, false); + // 3.没有parseObj.unions属性 + let rootInfo: GenInfo = { + parseObj: { + enums: [], + structs: [], + classes: [], + funcs: [], + }, + rawFilePath: 'e:\\test.h', + fileName: 'test', + } + let res3 = true; + try { + genDts.getDtsUnions(rootInfo); + } catch (error) { + res3 = false; + } + assert.strictEqual(res3, false); + // 4. 没有unions.members属性 + rootInfo = { + parseObj: { + enums: [], + structs: [], + unions: [{ + name: 'UnionObj', + alias: '', + }], + classes: [], + funcs: [] + }, + rawFilePath: 'e:\\test.h', + fileName: 'test', + } + let res4 = true; + try { + genDts.getDtsUnions(rootInfo); + } catch (error) { + res4 = false; + } + assert.strictEqual(res4, false); + }); +}) \ No newline at end of file