-
Notifications
You must be signed in to change notification settings - Fork 41
create tests #18
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
base: main
Are you sure you want to change the base?
create tests #18
Conversation
gemtechd
left a comment
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.
Where are your tests?
| throw new Error('missing data') | ||
| } | ||
| if(typeof(point1)!= 'object' |typeof(point2)!='object'){ | ||
| throw new Error('argument must by type point') |
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.
write a test that gets an array
| if(line1==undefined || line2==undefined){ | ||
| throw new Error("missing data") | ||
| } | ||
| if (line1.slope === line2.slope) { |
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.
what happens if the slope of line1 or line2 are not defined?
| throw new Error("missing data") | ||
| } | ||
| const proxyLine = new Line({ point1: line.point1, point2: point }) | ||
| proxyLine.calculateSlope() |
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.
what happens when line.slope or line.n are undefined?
|
I can't see any test files... |
|
i am confused and do not understand what the problem .
i got feedback on my code and now i am working on it.
thanks -
shifra berkovich-silberberg
בתאריך יום ג׳, 23 ביולי 2024 ב-11:04 מאת gemtechd <
***@***.***>:
… I can't see any test files...
What do you see from your user?
—
Reply to this email directly, view it on GitHub
<#18 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BJ5PY6ACVIN6Y56OPU2E5UDZNYFBNAVCNFSM6AAAAABLJWPLDKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENBUGUZDSNZZGY>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
|
I saw only the code to giv eyou feedback on it |
No description provided.