assertThat(String.format("Failed at (%d, %d)", 8,8), rslt.get(8,8), is(0));
}
@Test
public void testValueCircle4() {
Renderer r = new ParallelRenderer();
Aggregator<Integer,Integer> combiner = new Numbers.Count<>();
Aggregates<Integer> aggs = new RefFlatAggregates<Integer>(9,9,0);
aggs.set(4, 4, 4);
Spreader<Integer> spread2 = new General.Spread.ValueCircle<>();
General.Spread<Integer> transfer2 = new General.Spread<Integer>(spread2, combiner);
Specialized<Integer,Integer> s2 = transfer2.specialize(aggs);
Aggregates<Integer> rslt = r.transfer(aggs, s2);
assertThat(String.format("Failed at (%d, %d)", 0,0), rslt.get(0,0), is(0));
assertThat(String.format("Failed at (%d, %d)", 1,1), rslt.get(1,1), is(0));
assertThat(String.format("Failed at (%d, %d)", 3,3), rslt.get(3,3), is(4));
assertThat(String.format("Failed at (%d, %d)", 3,5), rslt.get(3,5), is(4));