mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2025-07-05 00:01:37 +08:00
RomanToDecimal : Fix import (typo).
This commit is contained in:
@ -8,7 +8,7 @@ const values = {
|
||||
M: 1000
|
||||
}
|
||||
|
||||
function romanToDecimal (romanNumber) {
|
||||
export function romanToDecimal (romanNumber) {
|
||||
let prev = ' '
|
||||
|
||||
let sum = 0
|
||||
@ -32,5 +32,3 @@ function romanToDecimal (romanNumber) {
|
||||
}
|
||||
return sum
|
||||
}
|
||||
|
||||
export { romanToDecimal }
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { romanToDecimal } from '../romanToDecimal'
|
||||
import { romanToDecimal } from '../RomanToDecimal'
|
||||
|
||||
describe('romanToDecimal', () => {
|
||||
it('XXIIVV', () => {
|
||||
|
Reference in New Issue
Block a user