File: test_I_logandc2.cc

package info (click to toggle)
cln 1.3.4-4
  • links: PTS
  • area: main
  • in suites: buster
  • size: 10,724 kB
  • sloc: cpp: 80,930; sh: 11,982; ansic: 3,278; makefile: 1,313
file content (14 lines) | stat: -rw-r--r-- 274 bytes parent folder | download | duplicates (13)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include "test_I.h"

int test_I_logandc2 (int iterations)
{
	int error = 0;
	int i;
	// Check against logand.
	for (i = iterations; i > 0; i--) {
		cl_I a = testrandom_I();
		cl_I b = testrandom_I();
		ASSERT2(logandc2(a,b) == logand(a,lognot(b)), a,b);
	}
	return error;
}