// Generated by ReScript, PLEASE EDIT WITH CARE

import * as Test from "./Test.mjs";
import * as Stdlib from "@rescript/runtime/lib/es6/Stdlib.mjs";
import * as Stdlib_JsExn from "@rescript/runtime/lib/es6/Stdlib_JsExn.mjs";
import * as Primitive_exceptions from "@rescript/runtime/lib/es6/Primitive_exceptions.mjs";

function panicTest() {
  let caught;
  try {
    caught = Stdlib.panic("uh oh");
  } catch (raw_err) {
    let err = Primitive_exceptions.internalToException(raw_err);
    if (err.RE_EXN_ID === "JsExn") {
      caught = Stdlib_JsExn.message(err._1);
    } else {
      throw err;
    }
  }
  Test.run([
    [
      "Stdlib_ErrorTests.res",
      6,
      22,
      43
    ],
    "Should resolve test"
  ], caught, (prim0, prim1) => prim0 === prim1, "Panic! uh oh");
}

panicTest();

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