Skip to content

test cases util functions - #1661

Open
khoang05 wants to merge 1 commit into
flexflow:masterfrom
khoang05:vector-tests
Open

test cases util functions#1661
khoang05 wants to merge 1 commit into
flexflow:masterfrom
khoang05:vector-tests

Conversation

@khoang05

@khoang05 khoang05 commented Jul 28, 2026

Copy link
Copy Markdown

Adds test cases for generate_vector, extend_vector, and concat_vectors.


This change is Reviewable

@elliottslaughter elliottslaughter left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks good to me, just some minor formatting and cleanup to do.

Thanks for submitting this!

#include <vector>

using namespace ::FlexFlow;
// checks rhs gets added to the end of lhs

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I think this is sufficiently clear, so we can remove this comment. Make sure to add a blank line here.


CHECK(lhs == correct);
}
// checks that lhs stays the same when the rhs is empty

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Also remove this comment and add a blank line.


CHECK(result == correct);
}
SUBCASE("non-empty vector") {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I'd add a blank line before this one.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants