Skip to content

Commit bb2d605

Browse files
committed
tests: cleanup obsolete TODOs about cgen errors
1 parent 5ce4f95 commit bb2d605

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

vlib/builtin/string_test.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1612,7 +1612,7 @@ fn test_last_index() {
16121612
assert 'Zabcabca'.last_index('Z')? == 0
16131613
x := 'Zabcabca'.last_index('Y')
16141614
assert x == none
1615-
// TODO: `assert 'Zabcabca'.index_last('Y') == none` is a cgen error, 2023/12/04
1615+
assert 'Zabcabca'.last_index('Y') == none
16161616
}
16171617

16181618
fn test_last_index_u8() {

vlib/v/tests/comptime/comptime_kinds_test.v

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,5 @@ fn test_kind_function() {
194194
assert_function(test_kind_function)
195195
assert_not_function(123)
196196
assert_function('abc'.contains)
197-
i := 5
198-
assert_function(i.str) // TODO: 5.str currently leads to a cgen error
197+
assert_function(5.str)
199198
}

0 commit comments

Comments
 (0)