// Path: combinatorics/src/main/java/com/xiantrimble/combinatorics/Utils.java
// public static final <E> List<E> list(final E... elements) {
//   FastList<E> list = new FastList<E>();
//   for (E element : elements) {
//     list.add(element);
//   }
//   return list;
// }


import static org.junit.Assert.assertEquals;
import java.util.ArrayList;
import java.util.List;
import org.junit.Test;
import static com.xiantrimble.combinatorics.Utils.list;
/**
 * Copyright (C) 2012 Christian Trimble (xiantrimble@gmail.com)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *         http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.xiantrimble.combinatorics;




public abstract class AbstractPermutationsIteratorTest
{
  protected static Integer ONE = 1;
  protected static Integer TWO = 2;
  protected static Integer THREE = 3;
  protected static Integer FOUR = 4;
  protected static Integer FIVE = 5;
  protected static Integer SIX = 6;
  protected static Integer SEVEN = 7;
  protected static Integer EIGHT = 8;
  
  @SuppressWarnings("unchecked")
  @Test
  public void threePermThree() {
// Path: combinatorics/src/main/java/com/xiantrimble/combinatorics/Utils.java
// public static final <E> List<E> list(final E... elements) {
//   FastList<E> list = new FastList<E>();
//   for (E element : elements) {
//     list.add(element);
//   }
//   return list;
// }


// Path: combinatorics/src/test/java/com/xiantrimble/combinatorics/AbstractPermutationsIteratorTest.java
import static org.junit.Assert.assertEquals;
import java.util.ArrayList;
import java.util.List;
import org.junit.Test;
import static com.xiantrimble.combinatorics.Utils.list;

/**
 * Copyright (C) 2012 Christian Trimble (xiantrimble@gmail.com)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *         http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.xiantrimble.combinatorics;




public abstract class AbstractPermutationsIteratorTest
{
  protected static Integer ONE = 1;
  protected static Integer TWO = 2;
  protected static Integer THREE = 3;
  protected static Integer FOUR = 4;
  protected static Integer FIVE = 5;
  protected static Integer SIX = 6;
  protected static Integer SEVEN = 7;
  protected static Integer EIGHT = 8;
  
  @SuppressWarnings("unchecked")
  @Test
  public void threePermThree() {
    List<List<Integer>> actual = createPermutations(list(ONE, TWO, THREE), 3);