File tree Expand file tree Collapse file tree 1 file changed +0
-5
lines changed
crates/oxc_codegen/tests/integration Expand file tree Collapse file tree 1 file changed +0
-5
lines changed Original file line number Diff line number Diff line change @@ -69,20 +69,15 @@ fn no_invalid_tokens_beyond_source() {
6969 let src_line = token. get_src_line ( ) as usize ;
7070 let src_col = token. get_src_col ( ) as usize ;
7171
72- // Split source into lines
7372 let lines: Vec < & str > = content. split ( '\n' ) . collect ( ) ;
74-
75- // Verify line is within bounds
7673 assert ! (
7774 src_line < lines. len( ) ,
7875 "Invalid token: line {src_line} is beyond source line count {} for source '{source_text}'" ,
7976 lines. len( ) ,
8077 ) ;
8178
82- // Verify column is within line bounds (UTF-16 column count)
8379 let line_content = lines[ src_line] ;
8480 let line_len_utf16: usize = line_content. chars ( ) . map ( char:: len_utf16) . sum ( ) ;
85-
8681 assert ! (
8782 src_col < line_len_utf16,
8883 "Invalid token: column {src_col} is beyond line length {line_len_utf16} for line '{line_content}' in source '{source_text}'" ,
You can’t perform that action at this time.
0 commit comments