parent
41541775e9
commit
26ce9d73e6
@ -0,0 +1,25 @@
|
||||
import { fromPython, toPython } from "@/utilities/index";
|
||||
|
||||
describe("fromPythonConversion", () => {
|
||||
it("should convert a true value", () => {
|
||||
expect(fromPython("True")).toBe(true);
|
||||
});
|
||||
|
||||
it("should convert a false value", () => {
|
||||
expect(fromPython("False")).toBe(false);
|
||||
});
|
||||
|
||||
it("should convert an undefined value", () => {
|
||||
expect(fromPython(undefined)).toBe(false);
|
||||
});
|
||||
});
|
||||
|
||||
describe("toPythonConversion", () => {
|
||||
it("should convert a true value", () => {
|
||||
expect(toPython(true)).toBe("True");
|
||||
});
|
||||
|
||||
it("should convert a false value", () => {
|
||||
expect(toPython(false)).toBe("False");
|
||||
});
|
||||
});
|
Loading…
Reference in new issue