mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-24 00:11:14 +01:00
add test cases for hb_unwrap_type
This commit is contained in:
1 parent
168ceeac49
commit
3c792c2aa5
1 file changed
+5
@@ -29,6 +29,8 @@
|
||||
|
||||
#include <type_traits>
|
||||
|
||||
template <typename T> struct U { typedef T type; };
|
||||
|
||||
int
|
||||
main (int argc, char **argv)
|
||||
{
|
||||
@@ -122,6 +124,9 @@ main (int argc, char **argv)
|
||||
static_assert (hb_is_trivial (X), "");
|
||||
static_assert (hb_is_trivial (Y), "");
|
||||
|
||||
static_assert (hb_is_signed (hb_unwrap_type (U<U<U<int>>>)), "");
|
||||
static_assert (hb_is_unsigned (hb_unwrap_type (U<U<U<U<unsigned>>>>)), "");
|
||||
|
||||
/* TODO Add more meaningful tests. */
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in new issue
Block a user