Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add more gsl::span tests [copilot] (#1189)
* Add more gsl::span tests [copilot] This PR adds comprehensive unit tests for `gsl::span` to ensure its correctness and consistency. The following tests have been added: 1. **Empty Span Tests**: - Tests to verify the behavior of an empty `gsl::span` and `gsl::span<const int>`. 2. **Conversion Tests**: - Tests to check the conversion between different types of `gsl::span`. 3. **Comparison Operator Tests**: - Tests to verify the comparison operators for `gsl::span`. 4. **Deduction Guide Tests**: - Tests to compare the behavior of `gsl::span` and `std::span` deduction guides for various types of arrays and containers. These tests help ensure that `gsl::span` behaves correctly in various scenarios and is consistent with `std::span`. This PR was created with the help of GitHub Copilot. **Changes**: - Added tests for empty span. - Added tests for conversions. - Added tests for comparison operators. - Added tests for deduction guides. **Testing**: - All new tests have been added to the existing test suite. - Run the test suite using `ctest` to ensure all tests pass.This PR adds comprehensive unit tests for `gsl::span` to ensure its correctness and consistency. The following tests have been added: 1. **Empty Span Tests**: - Tests to verify the behavior of an empty `gsl::span` and `gsl::span<const int>`. 2. **Conversion Tests**: - Tests to check the conversion between different types of `gsl::span`. 3. **Comparison Operator Tests**: - Tests to verify the comparison operators for `gsl::span`. 4. **Deduction Guide Tests**: - Tests to compare the behavior of `gsl::span` and `std::span` deduction guides for various types of arrays and containers. These tests help ensure that `gsl::span` behaves correctly in various scenarios and is consistent with `std::span`. This PR was created with the help of GitHub Copilot. **Changes**: - Added tests for empty span. - Added tests for conversions. - Added tests for comparison operators. - Added tests for deduction guides. **Testing**: - All new tests have been added to the existing test suite. - Run the test suite using `ctest` to ensure all tests pass. * fix tests for pre-C++17
- Loading branch information