mfgnik

Untitled

Jan 14th, 2021
439
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. TEST_CASE("Factorization") {
  3.     std::vector<std::pair<int, int>> factorization{{2, 1}};
  4.     REQUIRE(Factorize(2) == factorization);
  5.    
  6.     factorization = {{2, 3}};
  7.    
  8.     REQUIRE(Factorize(8) == factorization);
  9.  
  10.     factorization = {{2, 1}, {3, 1}};
  11.  
  12.     REQUIRE(Factorize(6) == factorization);
  13. }
RAW Paste Data