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: Open Source License public class Main { public static void assertEquals(double x, double y) { assertEquals(x, y, 1e-10);//from ww w.java 2 s .c om } public static void assertEquals(double x, double y, double tol) { assert Math.abs(x - y) < tol : x + " != " + y; } }