text: #include "../Common.h"
  
  #include <carl/numbers/PrimeFactory.h>
  #include <carl/numbers/numbers.h>
  
  template<typename T>
  class PrimeFactory: public testing::Test {};
  
  TYPED_TEST_CASE(PrimeFactory, IntegerTypes);
  
  TYPED_TEST(PrimeFactory, integers)
  {
      carl::PrimeFactory<TypeParam> primefact;
      EXPECT_EQ(TypeParam(2), primefact.nextPrime());
      EXPECT_EQ(TypeParam(3), primefact.nextPrime());
      EXPECT_EQ(TypeParam(5), primefact.nextPrime());
  	EXPECT_EQ(TypeParam(7), primefact.nextPrime());
  	EXPECT_EQ(TypeParam(11), primefact.nextPrime());
  	EXPECT_EQ(TypeParam(13), primefact.nextPrime());
  	EXPECT_EQ(TypeParam(17), primefact.nextPrime());
  }
  