Type name assertion
Passes if the runtime type name of x matches the given
string (e.g. "Int", "String",
"DataFrame").
x (Any): The value to
inspect.
type_name (String): Expected type
name.
Expect_pass when types match; Expect_hold
on NA; Expect_stop on errors or type mismatch.
assert(expect_type(42, "Int"))
assert(expect_type("hello", "String"))