Giter Club home page Giter Club logo

Comments (3)

hakunin avatar hakunin commented on May 29, 2024

Using the code from example, all of these pass:

    abs_diff_eq!(1.1, 1.0);
    abs_diff_eq!(1.1, 1.0, epsilon = f64::EPSILON);

    relative_eq!(1.1, 1.0);
    relative_eq!(1.1, 1.0, epsilon = f64::EPSILON);
    relative_eq!(1.1, 1.0, max_relative = 1.0);
    relative_eq!(1.1, 1.0, epsilon = f64::EPSILON, max_relative = 1.0);
    relative_eq!(1.1, 1.0, max_relative = 1.0, epsilon = f64::EPSILON);

    ulps_eq!(1.1, 1.0);
    ulps_eq!(1.1, 1.0, epsilon = f64::EPSILON);
    ulps_eq!(1.1, 1.0, max_ulps = 4);
    ulps_eq!(1.1, 1.0, epsilon = f64::EPSILON, max_ulps = 4);
    ulps_eq!(1.1, 1.0, max_ulps = 4, epsilon = f64::EPSILON);

My Cargo.toml:

approx = "0.3.2"
bincode = "1.2"
circular-queue = "0.2.2"
chrono = { version = "0.4", features = ["serde"] }
clap = "2.33.0"
#crossbeam = "0.7"
#crossbeam-utils = "0.6.6"
csv = "1.1"
prettytable-rs = "^0.8"
rand = "0.6.5"
rayon = "1.1"
regex = "0.1.41"
serde = { version = "1", features = ["derive"] }
serde_json = "1.0"
strum = "0.16.0"
strum_macros = "0.16.0"
ta-lib-wrapper = "0.2.0"
time = "0.1.12"

Can I run any diagnosting for you?

from approx.

hakunin avatar hakunin commented on May 29, 2024

Aaahhh, I need to run the assert_ prefixed functions!

from approx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.