@@ -0,0 +1,691 @@
+package org.numenta.nupic.datagen;%0A%0Aimport static org.junit.Assert.assertTrue;%0A%0Aimport java.util.Arrays;%0Aimport java.util.List;%0A%0Aimport org.junit.Test;%0Aimport org.numenta.nupic.util.ArrayUtils;%0Aimport org.numenta.nupic.util.Tuple;%0A%0A%0Apublic class SequenceMachineTest %7B%0A%0A    @Test%0A    public void testGenerateNumbers() %7B%0A        int%5B%5D expected = %7B 4, 6, 2, 1, 7, 20, 21, 22, 23, 24, -1, 14, 16, 12, 11, 17, 20, 21, 22, 23, 24, -1 %7D;%0A        %0A        SequenceMachine sm = new SequenceMachine(null);%0A        List%3CInteger%3E result = sm.generateNumbers(2, 10, new Tuple(5, 10));%0A        %0A        assertTrue(Arrays.equals(expected, ArrayUtils.toPrimitive(result.toArray(new Integer%5B0%5D))));%0A    %7D%0A%0A%7D%0A

Add SequenceMachineTest