tests: cleanup obsolete TODOs about cgen errors

This commit is contained in:
Delyan Angelov 2025-05-31 07:53:12 +03:00
parent 5ce4f95f0a
commit bb2d605653
No known key found for this signature in database
GPG key ID: 66886C0F12D595ED
2 changed files with 2 additions and 3 deletions

View file

@ -1612,7 +1612,7 @@ fn test_last_index() {
assert 'Zabcabca'.last_index('Z')? == 0
x := 'Zabcabca'.last_index('Y')
assert x == none
// TODO: `assert 'Zabcabca'.index_last('Y') == none` is a cgen error, 2023/12/04
assert 'Zabcabca'.last_index('Y') == none
}
fn test_last_index_u8() {

View file

@ -194,6 +194,5 @@ fn test_kind_function() {
assert_function(test_kind_function)
assert_not_function(123)
assert_function('abc'.contains)
i := 5
assert_function(i.str) // TODO: 5.str currently leads to a cgen error
assert_function(5.str)
}