예제 #1
0
 //	public Io_url[] Src_fils() {return src_fils;} public Io_line_rdr_fxt Src_fils_(Io_url[] v)
 // {src_fils = v; return this;} Io_url[] src_fils;
 public Io_line_rdr_fxt tst_Match(String match, String expd) {
   rdr.Key_gen_(Io_line_rdr_key_gen_.first_pipe);
   boolean match_v = rdr.Match(Bry_.new_u8(match));
   String actl = match_v ? String_.new_u8(rdr.Bfr(), rdr.Key_pos_bgn(), rdr.Key_pos_end()) : "";
   Tfds.Eq(expd, actl);
   return this;
 }
예제 #2
0
 public Io_line_rdr_fxt tst_Read_til_lines(int count, String... expd) {
   lines.Clear();
   for (int i = 0; i < expd.length; i++) expd[i] = expd[i] + Op_sys.Lnx.Nl_str();
   for (int i = 0; i < count; i++) {
     if (rdr.Read_next())
       lines.Add(String_.new_u8(rdr.Bfr(), rdr.Itm_pos_bgn(), rdr.Itm_pos_end()));
     else break;
   }
   Tfds.Eq_ary_str(expd, lines.To_str_ary());
   return this;
 }
예제 #3
0
 private void Tst_find_last_lte(String[] ary, String comp, String expd) {
   Tfds.Eq(expd, Xoi_mirror_parser.Find_last_lte(ary, comp));
 }
예제 #4
0
 private void Tst_parse(String raw, String[] expd) {
   Xoi_mirror_parser parser = new Xoi_mirror_parser();
   Tfds.Eq_ary_str(expd, parser.Parse(raw));
 }
예제 #5
0
 void tst_CalcBase16FromString(String raw, String expd) {
   IoStream stream = IoStream_.mem_txt_(Io_url_.Empty, raw);
   String actl = HashAlgo_.Sha1.CalcHash(ConsoleDlg_.Null, stream);
   Tfds.Eq(expd, actl);
 }
예제 #6
0
 public void Test_x_to_gfui(String key, String expd) {
   Tfds.Eq(expd, parser.Xto_gfui(key));
 }