Skip to content

Conversation

@SiyaoIsHiding
Copy link
Contributor

I will try to add some tests :)

@joao-r-reis
Copy link
Collaborator

Oh I should have clarified, it's not 100% ready for review yet, I only just tested the simplest happy path, there's a ton of test cases to cover yet and proper error handling. Thanks for helping out with these tests though!

public CqlVector(int dimension)
{
if (dimension < 0)
if (dimension <= 0) // C* only allows positive dimension
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah I was planning on testing this but good to get some confirmation thanks!

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll add a check to the other ctor to make sure the provided array is not empty

Copy link
Collaborator

@joao-r-reis joao-r-reis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

@joao-r-reis joao-r-reis merged commit 81a35c3 into datastax:CSHARP-1014 Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants