mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-10 02:13:58 +01:00
15 lines
355 B
JavaScript
15 lines
355 B
JavaScript
TCAD.struct.tests = {};
|
|
|
|
TCAD.struct.tests.testHashTable = function() {
|
|
|
|
var map = new TCAD.struct.HashTable(TCAD.struct.stringEq, TCAD.struct.stringHash);
|
|
map.put("John", "Doe");
|
|
map.put("Patric", "Kane");
|
|
map.put("Andrew", "Wozniak");
|
|
|
|
console.log(map.get("John"));
|
|
console.log(map.get("Patric"));
|
|
console.log(map.get("Andrew"));
|
|
|
|
};
|
|
|