+ unlink(data_bin_file)
+})
+
+test_that("serialization + getDataInFile retrieve original data / from connection",
+{
+ #dataset 300 lignes / 50 columns
+ data_csv = system.file("testdata","de_serialize.csv",package="epclust")
+ nbytes = 8
+ endian = "big"
+ data_ascii = as.matrix(read.csv(test_series, sep=";", header=FALSE)) #for ref
+
+ #Simulate serialization in one single call
+ serialize(data_csv, data_bin_file, 350, ";", nbytes, endian)
+ expect_equal(file.info(data_bin_file)$size, 300*50*8+8)
+ for (indices in list(c(1,3,5), 3:13, c(5,20,50), c(75,130:135), 196:200))