Here you can find the source of assertEquals(double x, double y)
public static void assertEquals(double x, double y)
//package com.java2s; //License from project: Apache License public class Main { public static void assertEquals(double x, double y) { assertEquals(x, y, 1e-10);/*from w ww . j a v a 2 s.c o m*/ } public static void assertEquals(double x, double y, double tol) { assert approxEquals(x, y, tol) : x + " != " + y; } public static boolean approxEquals(double x, double y, double tol) { return Math.abs(x - y) < tol; } public static boolean approxEquals(double x, double y) { return approxEquals(x, y, 1e-10); } }