TEST(Scalar,write){constautodir="./tmp/sdk_test";Storagestorage;// write disk every timestorage.meta.cycle=1;storage.SetDir(dir);autotablet=storage.AddTablet("scalar0");components::Scalar<int>scalar(tablet);scalar.SetCaption("train");scalar.AddRecord(0,std::vector<int>({12}));// read from diskStorageReaderreader(dir);autoscalar_reader=reader.tablet("scalar0");autocaptioins=scalar_reader.captions();ASSERT_EQ(captioins.size(),1);ASSERT_EQ(captioins.front(),"train");ASSERT_EQ(scalar_reader.total_records(),1);autorecord=scalar_reader.record(0);// check the first entry of first recordautovs=record.data<int>(0).GetMulti();ASSERT_EQ(vs.size(),1);ASSERT_EQ(vs.front(),12);