Advertisement
mfgnik

Untitled

Jan 14th, 2021
584
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.31 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement