CMake/Tests/StringFileTest/StringFile.cxx
Kitware Robot d9fd2f5402 Revise C++ coding style using clang-format
Run the `Utilities/Scripts/clang-format.bash` script to update
all our C++ code to a new style defined by `.clang-format`.
Use `clang-format` version 3.8.

* If you reached this commit for a line in `git blame`, re-run the blame
  operation starting at the parent of this commit to see older history
  for the content.

* See the parent commit for instructions to rebase a change across this
  style transition commit.
2016-05-16 16:05:19 -04:00

33 lines
1005 B
C++

#include <stdio.h>
#include <string.h>
#include "OutputFile.h"
int main(int, char* [])
{
int res = 0;
res += CheckMethod(rmvar, "CMake");
res += CheckMethod(rmallvar, "CMake;cmake;CMake");
res += CheckMethod(rrepvar, "People should use CMake and CMake");
res += CheckMethod(repvar, "People should use CMake");
res += CheckMethod(substringres, "Everybody should use CMake");
res += CheckMethod(nceqvar, "0");
res += CheckMethod(lengthres, "26");
res += CheckMethod(ceqvar, "1");
res += CheckMethod(cneqvar, "1");
res += CheckMethod(ncneqvar, "0");
res += CheckMethod(nclvar, "0");
res += CheckMethod(clvar, "1");
res += CheckMethod(cgvar, "1");
res += CheckMethod(ncgvar, "0");
res += CheckMethod(savar, "Cmake");
res += CheckMethod(tuvar, "CMAKE");
res += CheckMethod(tlvar, "cmake");
res += CheckMethod(relpath, "../../X11R6/bin/xnest");
res += CheckMethod(configvar,
"@$@$junk =~ s/#$xyz#/$foo_bar{$wibble}->{$xyz}/;@@");
return res;
}