fstpackage / fsttable

An interface to fast on-disk data tables stored with the fst format
GNU Affero General Public License v3.0
27 stars 4 forks source link

Row selection unit tests #30

Open martinblostein opened 6 years ago

martinblostein commented 6 years ago

Suite of tests consisting of iterated simple row selections and permutations to make sure that the proxy_table updates correctly.

Along these lines:

dt <- data.table(x = 1:10)
ft <-fsttable::fst_table(fst::write_fst(dt, tempfile))
ft[2:6][3:2][1] # expect 4

("Subissue of #4)

MarcusKlik commented 6 years ago

Yes, perfect. And we can add a series of helper functions to compare a datatableinterface object with a second datatableinterface or an in-memory data.table (like this one).