Skip to content

Commit

Permalink
Updated codecov.yml file
Browse files Browse the repository at this point in the history
  • Loading branch information
spirosmaggioros committed Aug 1, 2024
1 parent 365b011 commit ffc77a5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
4 changes: 3 additions & 1 deletion codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,6 @@ ignore:
- "third_party/catch.hpp"
- "third_party/json.hpp"
- "third_party/matplotlibcpp.h"
- "src/visualization/*"
- "src/visualization/graph_visual/graph_visualization.h"
- "src/visualization/list_visual/list_visualization.h"
- "src/visualization/tree_visual/tree_visualization.h"
8 changes: 8 additions & 0 deletions tests/linalg/mat1d/mat_1d.cc
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,14 @@ TEST_CASE("Testing != operator for Mat1d class") {
REQUIRE(mat3 != mat4);
}

TEST_CASE("Testing operator << for Mat1d class") {
Mat1d<int, 5> mat({1, 2, 3, 4, 5});
CHECK_NOTHROW(std::cout << mat << '\n');

Mat1d<char, 5> mat2({'a', 'b', 'c', 'd', 'e'});
CHECK_NOTHROW(std::cout << mat2 << '\n');
}

// TEST_CASE("testing constructor with one value for Mat1d class [1]") {
// Mat1d<int, 5> mat(5);
// for(auto it = mat.begin(); it != mat.end(); it++){
Expand Down

0 comments on commit ffc77a5

Please sign in to comment.