// RegressionTest.cpp : Defines the entry point for the console application.
// Copyright (c) 2015 Nonki Takahashi. The MIT License.
// Version 0.1
//
#include "stdafx.h"
#include <iostream>
#include "../BVector/BVector.h"
int _tmain(int argc, _TCHAR* argv[])
{
CBVector a(4);
a.setValue(2, 1);
a.setValue(3, 1);
cout << "a=" << a.toString() << endl;
int v[] = { 0, 1, 0, 1 };
CBVector b(4, v);
cout << "b=" << b.toString() << endl;
cout << "a.getValue(2)=" << to_string(a.getValue(2)) << endl;
cout << "a.or(b)=" << a.or(b).toString() << endl;
cout << "a.and(b)=" << a.and(b).toString() << endl;
cout << "a.abs()=" << to_string(a.abs()) << endl;
cout << "a.inv()=" << a.inv().toString() << endl;
cout << "a.diff(b)=" << a.diff(b).toString() << endl;
cout << "a.xor(b)=" << a.xor(b).toString() << endl;
cout << "a.mul(0)=" << a.mul(0).toString() << endl;
cout << "a.dot(b)=" << to_string(a.dot(b)) << endl;
cout << endl;
system("pause");
return 0;
}