Fix clang compile

This commit is contained in:
Vinnie Falco
2013-08-01 15:54:24 -07:00
parent 83c3beb2ed
commit cf2c43e7ab

View File

@@ -367,7 +367,7 @@ public:
checkRelease (input, shouldPass);
}
void ncheck (String const& input)
void negcheck (String const& input)
{
check (input, false);
}
@@ -381,28 +381,28 @@ public:
check ("2147483647.2147483647.2147483647"); // max int
// negative values
ncheck ("-1.2.3");
ncheck ("1.-2.3");
ncheck ("1.2.-3");
negcheck ("-1.2.3");
negcheck ("1.-2.3");
negcheck ("1.2.-3");
// missing parts
ncheck ("");
ncheck ("1");
ncheck ("1.");
ncheck ("1.2");
ncheck ("1.2.");
ncheck (".2.3");
negcheck ("");
negcheck ("1");
negcheck ("1.");
negcheck ("1.2");
negcheck ("1.2.");
negcheck (".2.3");
// whitespace
ncheck (" 1.2.3");
ncheck ("1 .2.3");
ncheck ("1.2 .3");
ncheck ("1.2.3 ");
negcheck (" 1.2.3");
negcheck ("1 .2.3");
negcheck ("1.2 .3");
negcheck ("1.2.3 ");
// leading zeroes
ncheck ("01.2.3");
ncheck ("1.02.3");
ncheck ("1.2.03");
negcheck ("01.2.3");
negcheck ("1.02.3");
negcheck ("1.2.03");
}
static StringArray ids ()