Created
January 30, 2023 23:34
-
-
Save cindywu/54cccc54efea2446051a0aa1223adac3 to your computer and use it in GitHub Desktop.
roman numeral test file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const romanToInt = require("./solution"); | |
test("III to equal 3", () => { | |
expect(romanToInt("III")).toBe(3); | |
}); | |
test("IV to equal 4", () => { | |
expect(romanToInt("IV")).toBe(4); | |
}); | |
test("IX to equal 9", () => { | |
expect(romanToInt("IX")).toBe(9); | |
}); | |
test("LVIII to equal 58", () => { | |
expect(romanToInt("LVIII")).toBe(58); | |
}); | |
test("XL to equal 40", () => { | |
expect(romanToInt("XL")).toBe(40); | |
}); | |
test("CM to equal 900", () => { | |
expect(romanToInt("CM")).toBe(900); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment