(ns same.klipse (:require-macros [same :refer [with-comparator]]) (:require [same :refer [ish? zeroish? not-zeroish? set-comparator!]] [same.compare :refer [compare-ulp]] [same.ish :refer [default-comparator]]))

Click here to make these examples interactive with ClojureScript.

This documentation is deprecated, please use cljdoc.org.

same/ish 0.1.5

Released under the MIT License

A Clojure library for approximate comparison of floating point numbers in tests.

Installation

To install, add the following dependency to your project or build file:

[same/ish "0.1.5"]

Topics

Namespaces

same

Deprecated in favor of same.core namespace.

Public variables and functions:

same.compare

Default comparator functions.

Public variables and functions:

same.core

Main public API namespace.

Public variables and functions:

same.diff

Generating diffs of different types.

Public variables and functions:

same.ish

Comparing different types for same-ish-ness.

Public variables and functions:

same.platform

Platform-specific code, to try to minimise reader conditionals in the rest of the codebase.