From bb2d6056535468b81e5749337ece8fcc1fe557fb Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Sat, 31 May 2025 07:53:12 +0300 Subject: [PATCH] tests: cleanup obsolete TODOs about cgen errors --- vlib/builtin/string_test.v | 2 +- vlib/v/tests/comptime/comptime_kinds_test.v | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/vlib/builtin/string_test.v b/vlib/builtin/string_test.v index d8c83575e..180b08084 100644 --- a/vlib/builtin/string_test.v +++ b/vlib/builtin/string_test.v @@ -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() { diff --git a/vlib/v/tests/comptime/comptime_kinds_test.v b/vlib/v/tests/comptime/comptime_kinds_test.v index b887fbb2c..1bcef17a5 100644 --- a/vlib/v/tests/comptime/comptime_kinds_test.v +++ b/vlib/v/tests/comptime/comptime_kinds_test.v @@ -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) } -- 2.39.5