title: How best to compare two arrays in C++ with unit tests to verify they match?
body: <p>Currently, I've got a program which reads and extracts multiple pieces of data from a file, and i would like to ensure those values correctly match the expected values, I'm aware of how this should work in other programming languages such as python with lists and tuples etc, however i am unsure as to the best approach to use unit tests within C++ whilst keeping the code as minimal and efficient as possible. I've currently got multiple arrays all of which i wish to verify that they meet their expected values, so i can test the program with differing input files. </p>
  
  <p>To describe this, in essence, i wish to verify the contents of e.g. </p>
  
  <pre><code>int arrayone [5] = { 11, 12, 13, 14, 15 };
  </code></pre>
  
  <p>are equal to 
      { 11, 12, 13, 14, 15 } </p>
  
  <p>and to complete the unit test successfully if the values are equal, and to fail if they are not equal or not in the same order. Thus, i am looking for the best method to approach this.  </p>