Skip to content

Instantly share code, notes, and snippets.

@patrot
patrot / map.java
Created August 31, 2021 02:41 — forked from seadowg/map.java
HashMap built naively with TDD (and Tests)
// The following code is a series of test that were written in the order you'll read them. After
// each test was written it was run against the HashMap and the implementation was updated if it
// failed. The HashMap code is the final implementation that was built naively to pass each test.
// The Tests:
public class HashMapTest {
private HashMap map;
// Set up an empty map before each test
0 info it worked if it ends with ok
1 verbose cli [ 'C:\\GitProjects\\bevo\\trunk\\bevo-web\\build\\nodejs\\node-v0.12.2-windows-x64\\bin\\node.exe',
1 verbose cli 'C:\\GitProjects\\bevo\\trunk\\bevo-web\\build\\nodejs\\node-v0.12.2-linux-x86\\lib\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'install' ]
2 info using [email protected]
3 info using [email protected]
4 warn package.json @ No description
5 warn package.json @ No repository field.
6 warn package.json @ No README data
7 verbose install where, deps [ 'C:\\GitProjects\\bevo\\trunk\\bevo-web',