Skip to content

Commit

Permalink
Add a comment about duplication
Browse files Browse the repository at this point in the history
  • Loading branch information
KornevNikita committed Aug 24, 2023
1 parent 83184c5 commit 86b8b7e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/accessor/generic_accessor_api_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,7 @@ class run_api_tests {
SECTION(
get_section_name<dims>(type_name, access_mode_name, target_name,
"Check api for ranged accessor with offset")) {
// Partially duplicates tests/accessor/host_accessor_api_common.h
// The maximum value of the linear_index variable should not be more
// than CHAR_MAX (usually 127 for schar). Otherwise the test fails here
// with the char type:
Expand Down
1 change: 1 addition & 0 deletions tests/accessor/host_accessor_api_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ class run_api_tests {
SECTION(get_section_name<dims>(
type_name, access_mode_name,
"Check api for ranged host_accessor with offset")) {
// Partially duplicates tests/accessor/generic_accessor_api_common.h
// The maximum value of the linear_index variable should not be more
// than CHAR_MAX (usually 127 for schar). Otherwise the test fails here
// with the char type:
Expand Down

0 comments on commit 86b8b7e

Please sign in to comment.