@Test
	public void equalsTest() {
		//trueTests
		for (int i = 0; i < TESTS; i++) {
			double x = rand.nextInt();
			double y = rand.nextInt();
			assertTrue(new Vector(x, y).equals(new Vector(x, y)));
		}
		
		//falseTests
		for (int i = 0; i < TESTS; i++) {
			double x1 = rand.nextInt();
			double y1 = rand.nextInt();
			double x2 = rand.nextInt();
			double y2 = rand.nextInt();
			Vector v1 = new Vector(x1, y1);
			Vector v2 = new Vector(x2, y2);
			if (x1 == x2 && y1 == y2)
				assertTrue(v1.equals(v2));
			else
				assertFalse(v1.equals(v2));
		}
	}