Beispiel #1
0
// This is used to generate the test set. It is NOT part of the test
// itself.
void genData1()
{
  Hash robo("N0VT8AYfLEu2hFufocgj9ykAQoNEgcQwzLW7m1Tfc-cj");
  Hash out1("psjM8uDq9pmNUZQHCFw8zK4-ayXT5-gpFuksShg-GPUo");
  Hash out2("g2lF9D0PACSgcFZUtHpxhrd6jbdnJmfUyXQ0uwO1VZo-");

  Hash::DirMap dir;
  dir["out_robot.txt"] = robo;
  dir["out_file1.txt"] = out1;
  dir["out_file2.txt"] = out2;
  dir["out_file3.txt"] = out1;

  Hash dirHash = Dir::write(dir, "_outdir1.dat");
  OutFileStream out("_outdir1.hash");
  out.write(dirHash.getData(), 40);
}
Beispiel #2
0
void genData2()
{
  Hash out1("psjM8uDq9pmNUZQHCFw8zK4-ayXT5-gpFuksShg-GPUo");
  Hash out2("2-ZutRu-hTIPSAkddcskIPrYFVYK-J9oFSujhDD7bjEn");
  Hash out3("sJjzhl8Vh7vq-hJYYbvYjPKlvPAWc6olCd3Mk_MMv_Qk");
  Hash arcfile("-M2zyJL1Xt9rJYII9fzgh0gS9tHhklFbOTt1wY__Qy9RAg");

  Hash::DirMap adir;
  adir["outfile1.txt"] = out1;
  adir["outfile2.txt"] = out2;
  adir["outfile3.txt"] = out3;

  Hash arcdir = Dir::write(adir, "_arcdir2.dat");

  Hash::DirMap dir;
  dir["out_file1.txt"] = out1;
  dir["out_file2.txt"] = out2;
  dir["out_file4.txt"] = out3;

  Hash dirHash = Dir::write(dir, "_outdir2.dat");
  OutFileStream out("_outdir2.hash");
  out.write(dirHash.getData(), 40);
}