-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Calc function with test #42
base: Chalunin_Artem_Romanovich
Are you sure you want to change the base?
Calc function with test #42
Conversation
rpgsaga/saga/src/MathCalc.ts
Outdated
const xDeltaLocal: number = 0.4; | ||
const xArray: number[] = [1.9, 2.15, 2.34, 2.74, 3.16]; | ||
|
||
function getBaseLog(x: number, y: number) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Добавь возвращаемый тип
rpgsaga/saga/src/MathCalc.ts
Outdated
return Math.log(y) / Math.log(x); | ||
} | ||
|
||
type List = number[]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Не вижу смысла в этом объявлении типа
it('should return 5 as result of 2 and 3 sum', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Этот тест можно удалить, это пример
No description provided.