Skip to content

Commit

Permalink
indent
Browse files Browse the repository at this point in the history
Signed-off-by: Cary Phillips <[email protected]>
  • Loading branch information
cary-ilm committed Nov 19, 2024
1 parent b1146d3 commit a3d49a6
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions src/test/OpenEXRTest/testAttributes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -619,18 +619,12 @@ struct TestType

static void assert_count (int dc, int d, int cc, int ao, int mc, int mao)
{
std::cout << "dc: " << dc << ", default_constructor: " << default_constructor << std::endl;

std::cout << "d: " << d << ", destructor: " << destructor << std::endl;

std::cout << "cc: " << cc << ", copy_constructor: " << copy_constructor << std::endl;

std::cout << "ao: " << ao << ", assignment_operator: " << assignment_operator << std::endl;

std::cout << "mc: " << mc << ", move_constructor: " << move_constructor << std::endl;

std::cout << "mao: " << mao << ", move_assignment_operator: " << move_assignment_operator << std::endl;

std::cout << "default_constructor: is " << default_constructor << ", should be " << dc << std::endl;
std::cout << "destructor: is " << destructor << ", should be " << d << std::endl;
std::cout << "copy_constructor: is " << copy_constructor << ", should be " << cc << std::endl;
std::cout << "assignment_operator: is " << assignment_operator << ", should be " << ao << std::endl;
std::cout << "move_constructor: is " << move_constructor << ", should be " << mc << std::endl;
std::cout << "move_assignment_operator: is " << move_assignment_operator << ", should be " << mao << std::endl;

assert (dc == default_constructor);
assert (d == destructor);
Expand Down Expand Up @@ -760,32 +754,39 @@ testTypedAttribute ()
// Test the attribute type
//

std::cout << "TestTypedAttribute a;" << std::endl;
TestTypedAttribute a;
TestType::assert_count (1, 0, 0, 0, 0, 0);
TestType::reset ();

{
std::cout << "TestType x;" << std::endl;
TestType x;
}
TestType::assert_count (1, 1, 0, 0, 0, 0);
TestType::reset ();

std::cout << "TestTypedAttribute b (a);" << std::endl;
TestTypedAttribute b (a);
TestType::assert_count (0, 0, 1, 0, 0, 0);
TestType::reset ();

std::cout << "a = b;" << std::endl;
a = b;
TestType::assert_count (0, 0, 0, 1, 0, 0);
TestType::reset ();

std::cout << "a = std::move (b);" << std::endl;
a = std::move (b);
TestType::assert_count (0, 0, 0, 0, 0, 1);
TestType::reset ();

std::cout << "a = testFunc ();" << std::endl;
a = testFunc ();
TestType::assert_count (1, 1, 0, 0, 0, 1);
TestType::reset ();

std::cout << "a = testArg (b);" << std::endl;
a = testArg (b);
TestType::assert_count (0, 2, 1, 0, 1, 1);
TestType::reset ();
Expand All @@ -801,7 +802,7 @@ testAttributes (const std::string& tempDir)
cout << "Testing built-in attributes" << endl;

testTypedAttribute ();

#if XXX
const int W = 217;
const int H = 197;

Expand All @@ -815,6 +816,7 @@ testAttributes (const std::string& tempDir)
longNames (pf, filename.c_str (), W, H);

print_type (OPENEXR_IMF_NAMESPACE::TypedAttribute<int> ());
#endif

cout << "ok\n" << endl;
}
Expand Down

0 comments on commit a3d49a6

Please sign in to comment.