From 7446d8dc44b4ec42eec467449a2d510c07b20e4f Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Thu, 4 Mar 2021 20:35:17 +0300 Subject: [PATCH] strings: test Builder's cut_last on windows --- vlib/strings/builder_test.v | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/vlib/strings/builder_test.v b/vlib/strings/builder_test.v index ad78c61683..b30d676a8f 100644 --- a/vlib/strings/builder_test.v +++ b/vlib/strings/builder_test.v @@ -30,15 +30,14 @@ fn test_sb() { sb = strings.new_builder(10) sb.write_string('x = $x y = $y') assert sb.str() == 'x = 10 y = 20' - $if !windows { - // TODO msvc bug - sb = strings.new_builder(10) - sb.write_string('123456') - last_2 := sb.cut_last(2) - assert last_2 == '56' - final_sb := sb.str() - assert final_sb == '1234' - } + //$if !windows { + sb = strings.new_builder(10) + sb.write_string('123456') + last_2 := sb.cut_last(2) + assert last_2 == '56' + final_sb := sb.str() + assert final_sb == '1234' + //} } const (