-
-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add 'operator<<' for tinyusdz::Interpolation
- Loading branch information
Showing
7 changed files
with
47 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#ifdef _MSC_VER | ||
#define NOMINMAX | ||
#endif | ||
|
||
#define TEST_NO_MAIN | ||
#include "acutest.h" | ||
|
||
#include "unit-pprint.h" | ||
#include "prim-types.hh" | ||
#include "value-types.hh" | ||
#include "value-pprint.hh" | ||
#include "pprinter.hh" | ||
|
||
using namespace tinyusdz; | ||
|
||
void value_type_pprint_test(void) { | ||
|
||
{ | ||
std::stringstream ss; | ||
tinyusdz::Interpolation interp = tinyusdz::Interpolation::Vertex; | ||
ss << interp; | ||
TEST_CHECK(ss.str() == "vertex"); | ||
} | ||
|
||
{ | ||
value::normal3f v{1.0f, 2.0f, 3.f}; | ||
std::string s = to_string(v); | ||
TEST_CHECK(s == "(1, 2, 3)"); | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#pragma once | ||
|
||
void value_type_pprint_test(void); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters