package bfrc.examples;

import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import java.util.function.Consumer;

class Examples {

	public static final Map<String, Example> EXAMPLES;

	// forbid instantiation
	private Examples() {
	}

	static {
		Map<String, Example> map = new HashMap<>();
		Consumer<String> add = name -> map.put(name, new Example(name));

		// TODO make excluded tests executable
		add.accept("bottles");
		//add.accept("factor");
		//add.accept("fibs");
		add.accept("fizzbuzz");
		add.accept("hello_world");
		//add.accept("life");
		//add.accept("mandelbrot");
		add.accept("squares");

		EXAMPLES = Collections.unmodifiableMap(map);
	}
}

@@ -72,33 +72,11 @@
 Hash
-Map;%0Aimport java.util.Map
+Set
 ;%0Aim
@@ -94,25 +94,11 @@
 til.
-function.Consumer
+Set
 ;%0A%0Ac
@@ -135,28 +135,20 @@
 c final 
-Map%3CString, 
+Set%3C
 Example%3E
@@ -226,20 +226,12 @@
 %7B%0A%09%09
-Map%3CString, 
+Set%3C
 Exam
@@ -235,19 +235,19 @@
 xample%3E 
-map
+set
  = new H
@@ -253,81 +253,14 @@
 Hash
-Map%3C%3E();%0A%09%09Consumer%3CString%3E add = name -%3E map.put(name, new Example(name)
+Set%3C%3E(
 );%0A%0A
@@ -302,26 +302,35 @@
 table%0A%09%09
-add.accept
+set.add(new Example
 (%22bottle
@@ -332,32 +332,42 @@
 ottles%22)
+)
 ;%0A%09%09//
-add.accept
+set.add(new Example
 (%22factor
@@ -372,32 +372,42 @@
 or%22)
+)
 ;%0A%09%09//
-add.accept
+set.add(new Example
 (%22fibs%22)
 ;%0A%09%09
@@ -402,30 +402,40 @@
 (%22fibs%22)
+)
 ;%0A%09%09
-add.accept
+set.add(new Example
 (%22fizzbu
@@ -438,30 +438,40 @@
 zzbuzz%22)
+)
 ;%0A%09%09
-add.accept
+set.add(new Example
 (%22hello_
@@ -481,32 +481,42 @@
 ld%22)
+)
 ;%0A%09%09//
-add.accept
+set.add(new Example
 (%22life%22)
 ;%0A%09%09
@@ -515,24 +515,34 @@
 fe%22)
+)
 ;%0A%09%09//
-add.accept
+set.add(new Example
 (%22ma
@@ -555,22 +555,32 @@
 ot%22)
+)
 ;%0A%09%09
-add.accept
+set.add(new Example
 (%22sq
@@ -586,16 +586,17 @@
 quares%22)
+)
 ;%0A%0A%09%09EXA
@@ -631,15 +631,15 @@
 able
-Map(map
+Set(set
 );%0A%09

simplify Examples