mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
.upptst
git-svn-id: svn://ultimatepp.org/upp/trunk@12293 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
71027d7320
commit
ff791fdeb3
4 changed files with 19 additions and 3 deletions
|
|
@ -48,7 +48,7 @@ void Test(const char *path, int filetype)
|
|||
const Array<CppItem>& ma = base[i];
|
||||
for(int j = 0; j < ma.GetCount(); j++) {
|
||||
const CppItem& m = ma[j];
|
||||
out << '\t' << CppItemKindAsString(m.kind) << ", name: " << m.name << ", qitem: " << m.qitem
|
||||
out << '\t' << CppItemKindAsString(m.kind) << ", name: " << m.name << ", qitem: " << m.qitem
|
||||
<< ", qtype: " << m.qtype
|
||||
<< ", qptype: " << m.qptype
|
||||
<< ", natural: " << m.natural
|
||||
|
|
@ -56,7 +56,7 @@ void Test(const char *path, int filetype)
|
|||
<< ", using " << m.using_namespaces;
|
||||
if(m.isptr)
|
||||
out << ", pointer";
|
||||
out << "\n";
|
||||
out << "\n";
|
||||
}
|
||||
out << "}\n";
|
||||
}
|
||||
|
|
@ -89,6 +89,12 @@ void Test(const char *path, int filetype)
|
|||
|
||||
CONSOLE_APP_MAIN {
|
||||
StdLogSetup(LOG_COUT|LOG_FILE);
|
||||
|
||||
if(CommandLine().GetCount()) {
|
||||
int ii = atoi(CommandLine()[0]);
|
||||
String p = GetDataFile("test" + AsString(ii) + ".in");
|
||||
Test(p, FILE_H);
|
||||
}
|
||||
|
||||
for(int i = 0; i < 10000; i++) {
|
||||
String p = GetDataFile("test" + AsString(i) + ".in");
|
||||
|
|
|
|||
|
|
@ -95,7 +95,9 @@ file
|
|||
test44.in,
|
||||
test44.out,
|
||||
test45.in,
|
||||
test45.out;
|
||||
test45.out,
|
||||
test46.in,
|
||||
test46.out;
|
||||
|
||||
mainconfig
|
||||
"" = "",
|
||||
|
|
|
|||
2
autotest/CppParser/test46.in
Normal file
2
autotest/CppParser/test46.in
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
Vector<Vector<int> > test1;
|
||||
Vector<Vector<int>> test2;
|
||||
6
autotest/CppParser/test46.out
Normal file
6
autotest/CppParser/test46.out
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<globals> {
|
||||
VARIABLE, name: test1, qitem: test1, qtype: Vector<Vector<int>>, qptype: , natural: Vector<Vector<int> > test1, line 1, using
|
||||
VARIABLE, name: test2, qitem: test2, qtype: Vector<Vector<int>>, qptype: , natural: Vector<Vector<int>> test2, line 2, using
|
||||
}
|
||||
<locals> {
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue