// Generated by ReScript, PLEASE EDIT WITH CARE

import * as Mocha from "mocha";
import * as Belt_Float from "@rescript/runtime/lib/es6/Belt_Float.mjs";
import * as Test_utils from "./test_utils.mjs";

Mocha.describe("Belt_float_test", () => {
  Mocha.test("fromInt", () => {
    Test_utils.eq("File \"belt_float_test.res\", line 8, characters 7-14", 1, 1.0);
    Test_utils.eq("File \"belt_float_test.res\", line 9, characters 7-14", -1, -1.0);
  });
  Mocha.test("toInt", () => {
    Test_utils.eq("File \"belt_float_test.res\", line 13, characters 7-14", 1, 1);
    Test_utils.eq("File \"belt_float_test.res\", line 14, characters 7-14", 1, 1);
    Test_utils.eq("File \"belt_float_test.res\", line 15, characters 7-14", 1, 1);
    Test_utils.eq("File \"belt_float_test.res\", line 16, characters 7-14", -1, -1);
    Test_utils.eq("File \"belt_float_test.res\", line 17, characters 7-14", -1, -1);
    Test_utils.eq("File \"belt_float_test.res\", line 18, characters 7-14", -1, -1);
  });
  Mocha.test("fromString", () => {
    Test_utils.eq("File \"belt_float_test.res\", line 22, characters 7-14", Belt_Float.fromString("1"), 1.0);
    Test_utils.eq("File \"belt_float_test.res\", line 23, characters 7-14", Belt_Float.fromString("-1"), -1.0);
    Test_utils.eq("File \"belt_float_test.res\", line 24, characters 7-14", Belt_Float.fromString("1.7"), 1.7);
    Test_utils.eq("File \"belt_float_test.res\", line 25, characters 7-14", Belt_Float.fromString("-1.0"), -1.0);
    Test_utils.eq("File \"belt_float_test.res\", line 26, characters 7-14", Belt_Float.fromString("-1.5"), -1.5);
    Test_utils.eq("File \"belt_float_test.res\", line 27, characters 7-14", Belt_Float.fromString("-1.7"), -1.7);
    Test_utils.eq("File \"belt_float_test.res\", line 28, characters 7-14", Belt_Float.fromString("not a float"), undefined);
  });
  Mocha.test("toString", () => {
    Test_utils.eq("File \"belt_float_test.res\", line 32, characters 7-14", String(1.0), "1");
    Test_utils.eq("File \"belt_float_test.res\", line 33, characters 7-14", String(-1.0), "-1");
    Test_utils.eq("File \"belt_float_test.res\", line 34, characters 7-14", String(-1.5), "-1.5");
  });
  Mocha.test("operators", () => {
    Test_utils.eq("File \"belt_float_test.res\", line 39, characters 7-14", 2.0 + 3.0, 5.0);
    Test_utils.eq("File \"belt_float_test.res\", line 40, characters 7-14", 2.0 - 3.0, -1.0);
    Test_utils.eq("File \"belt_float_test.res\", line 41, characters 7-14", 2.0 * 3.0, 6.0);
    Test_utils.eq("File \"belt_float_test.res\", line 42, characters 7-14", 3.0 / 2.0, 1.5);
  });
});

let F;

export {
  F,
}
/*  Not a pure module */
