Skip to content

Add the test cases for iterator verification(Range, FixedFilter)#54

Merged
coeff-aij merged 1 commit intocoord-e:mainfrom
coeff-aij:iterator-verification
Mar 9, 2026
Merged

Add the test cases for iterator verification(Range, FixedFilter)#54
coeff-aij merged 1 commit intocoord-e:mainfrom
coeff-aij:iterator-verification

Conversation

@coeff-aij
Copy link
Collaborator

@coeff-aij coeff-aij commented Mar 7, 2026

Currently, Thrust can support verification for iterators without generics. This PR extends the test suite to include:

  • Range iterator: Verification of a call to next() and a simple while let loop.
  • FixedFilter adapter: A non-generic version of the Filter adapter where type parameters and the Boolean function predicate are hard-coded.

@coeff-aij coeff-aij changed the title add: test cases for iterator verification(Range, FixedFilter) Add the est cases for iterator verification(Range, FixedFilter) Mar 7, 2026
@coeff-aij coeff-aij changed the title Add the est cases for iterator verification(Range, FixedFilter) Add the test cases for iterator verification(Range, FixedFilter) Mar 7, 2026
@coeff-aij coeff-aij force-pushed the iterator-verification branch from 4cfdf00 to fbbc760 Compare March 7, 2026 08:13
@coeff-aij coeff-aij requested a review from coord-e March 7, 2026 08:30
Copy link
Owner

@coord-e coord-e left a comment

Choose a reason for hiding this comment

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

Can you add some tests/ui/fail/ cases by simply changing the assertions to falsy ones as a simple sanity check to ensure we haven't run into any unsoundness?


assert!(count == 5);
assert!(range.start == count);
} No newline at end of file
Copy link
Owner

Choose a reason for hiding this comment

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

please add trailing newline

@coeff-aij coeff-aij force-pushed the iterator-verification branch from fbbc760 to b7cd967 Compare March 8, 2026 23:21
@coeff-aij coeff-aij requested a review from coord-e March 8, 2026 23:25
@coeff-aij
Copy link
Collaborator Author

I've added negative tests and trailing newline. And I also removed unnecessary mut qualifiers.

@coeff-aij coeff-aij merged commit 5f86bd3 into coord-e:main Mar 9, 2026
3 checks passed
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