Exemple #1
0
 def check_types(self):
     df_ltypes = self.df.ltypes
     py_ltypes = tuple(dt.ltype(x) for x in self.types)
     if df_ltypes != py_ltypes:
         print("ERROR: types mismatch")
         print("  dt types: %r" % (df_ltypes, ))
         print("  py types: %r" % (py_ltypes, ))
         sys.exit(1)
Exemple #2
0
def test_stype_ltypes(c_stypes):
    from datatable import stype, ltype
    for st in stype:
        assert st.ltype is ltype(c_stypes[st.code]["ltype"].lower())