.autotest

git-svn-id: svn://ultimatepp.org/upp/trunk@11065 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2017-05-10 20:49:53 +00:00
parent 156e3ccbac
commit a095242797
2 changed files with 32 additions and 1 deletions

View file

@ -20,8 +20,15 @@ CONSOLE_APP_MAIN
h.Set(pos, b);
}
for(int i = 0; i < v.GetCount(); i++)
Bits hh;
String s = StoreAsString(h);
LoadFromString(hh, s);
LoadFromString(h, s);
for(int i = 0; i < v.GetCount(); i++) {
ASSERT(h.Get(i) == v[i]);
ASSERT(hh.Get(i) == v[i]);
}
}
{
@ -59,5 +66,11 @@ CONSOLE_APP_MAIN
DUMP(n);
}
{
Bits x;
x.Set(4, 1);
DUMP(x);
}
LOG("--------- OK");
}

View file

@ -74,5 +74,23 @@ CONSOLE_APP_MAIN
ASSERT(r.Execute().GetCount() == 0);
ASSERT(r.IsSuccess());
}
{
HttpRequest h("https://journeyman.cz/");
String s = h.Execute();
DUMP(h.GetReasonPhrase());
DUMP(h.GetContent());
ASSERT(s.Find("<script type=\"text/javascript\" src=\"//c.imedia.cz/js/retargeting.js\"></script>") >= 0);
}
{
HttpRequest h("https://journeyman.cz/");
h.Timeout(0);
String s = h.Execute();
DUMP(h.GetReasonPhrase());
DUMP(h.GetContent());
ASSERT(s.Find("<script type=\"text/javascript\" src=\"//c.imedia.cz/js/retargeting.js\"></script>") >= 0);
}
LLOG("*********** Everything is OK");
}