Skip to content

Instantly share code, notes, and snippets.

@54BarrosCreations
54BarrosCreations / map.java
Created September 10, 2017 23:28 — 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