Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/gtests/functions/FN_cpp_type_test.cc')
-rw-r--r--tests/gtests/functions/FN_cpp_type_test.cc11
1 files changed, 8 insertions, 3 deletions
diff --git a/tests/gtests/functions/FN_cpp_type_test.cc b/tests/gtests/functions/FN_cpp_type_test.cc
index 811e1a5d783..33e6fbee7f6 100644
--- a/tests/gtests/functions/FN_cpp_type_test.cc
+++ b/tests/gtests/functions/FN_cpp_type_test.cc
@@ -12,7 +12,6 @@
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- *
*/
#include "testing/testing.h"
@@ -20,7 +19,7 @@
#include "FN_cpp_type.hh"
namespace blender {
-namespace FN {
+namespace fn {
static const int default_constructed_value = 1;
static const int copy_constructed_value = 2;
@@ -85,6 +84,12 @@ TEST(cpp_type, Alignment)
EXPECT_EQ(CPPType_TestType.alignment(), alignof(TestType));
}
+TEST(cpp_type, Is)
+{
+ EXPECT_TRUE(CPPType_TestType.is<TestType>());
+ EXPECT_FALSE(CPPType_TestType.is<int>());
+}
+
TEST(cpp_type, DefaultConstruction)
{
int buffer[10] = {0};
@@ -301,5 +306,5 @@ TEST(cpp_type, FillUninitialized)
EXPECT_EQ(buffer2[9], 0);
}
-} // namespace FN
+} // namespace fn
} // namespace blender