Add dtype_of<T>() function, update the tests
diff --git a/example/example20.py b/example/example20.py
index 7dd60e3..c581cf3 100644
--- a/example/example20.py
+++ b/example/example20.py
@@ -4,7 +4,7 @@
import numpy as np
from example import (
create_rec_simple, create_rec_packed, create_rec_nested, print_format_descriptors,
- print_rec_simple, print_rec_packed, print_rec_nested
+ print_rec_simple, print_rec_packed, print_rec_nested, print_dtypes
)
@@ -12,6 +12,7 @@
np.testing.assert_equal(arr, np.array(data, dtype=dtype))
print_format_descriptors()
+print_dtypes()
simple_dtype = np.dtype({'names': ['x', 'y', 'z'],
'formats': ['?', 'u4', 'f4'],