mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-09-07 10:34:54 -06:00
.autotest
git-svn-id: svn://ultimatepp.org/upp/trunk@11065 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
156e3ccbac
commit
a095242797
2 changed files with 32 additions and 1 deletions
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue