File: testPredicate.cpp

package info (click to toggle)
dmrgpp 6.06-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 113,900 kB
  • sloc: cpp: 80,986; perl: 14,772; ansic: 2,923; makefile: 83; sh: 17
file content (13 lines) | stat: -rw-r--r-- 304 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
#include "PredicateAwesome.h"
#include <cstdlib>

int main(int argc, char** argv)
{
	if (argc < 3)
		return 1;
	PsimagLite::String predicate(argv[1]);

	PsimagLite::replaceAll(predicate, "c", "5");
	PsimagLite::PredicateAwesome<> pAwesome(predicate);
	std::cout << pAwesome.isTrue("l", atoi(argv[2]));
}