strings: builder: add clear (#14328)

This commit is contained in:
David 'Epper' Marshall 2022-05-08 00:15:42 -04:00 committed by GitHub
parent b04d46770b
commit aef95721a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 9 deletions

View file

@ -39,6 +39,9 @@ fn test_sb() {
assert last_2 == '56'
final_sb := sb.str()
assert final_sb == '1234'
sb.clear()
assert sb.str() == ''
//}
}