File: test_I_lognor.cc

package info (click to toggle)
cln 1.3.7-1
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 10,996 kB
  • sloc: cpp: 80,860; sh: 5,138; ansic: 3,174; makefile: 1,274
file content (14 lines) | stat: -rw-r--r-- 270 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_lognor (int iterations)
{
	int error = 0;
	int i;
	// Check against logior.
	for (i = iterations; i > 0; i--) {
		cl_I a = testrandom_I();
		cl_I b = testrandom_I();
		ASSERT2(lognor(a,b) == lognot(logior(a,b)), a,b);
	}
	return error;
}