Skip to content

Conversation

@sh-silberberg
Copy link

No description provided.

Copy link
Owner

@gemtechd gemtechd left a 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')
Copy link
Owner

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) {
Copy link
Owner

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()
Copy link
Owner

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?

@gemtechd
Copy link
Owner

I can't see any test files...
What do you see from your user?

@sh-silberberg sh-silberberg requested a review from gemtechd July 23, 2024 08:30
@sh-silberberg
Copy link
Author

sh-silberberg commented Jul 23, 2024 via email

@gemtechd
Copy link
Owner

I saw only the code to giv eyou feedback on it
but I mentioned that I need also the test files
you can push them next time

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants