1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

update tests and examples after the mutability fix

This commit is contained in:
Alexander Medvednikov
2019-11-06 06:57:04 +03:00
parent b720bb2e77
commit f6d06fcda2
6 changed files with 27 additions and 26 deletions

View File

@ -172,7 +172,7 @@ fn test_replace() {
assert b.replace('B', '') == 'onetwothree'
b = '**char'
assert b.replace('*char', 'byteptr') == '*byteptr'
mut c :='abc'
c :='abc'
assert c.replace('','-') == c
}
@ -403,7 +403,7 @@ fn test_capitalize() {
}
fn test_title() {
mut s := 'hello world'
s := 'hello world'
assert s.title() == 'Hello World'
s.to_upper()
assert s.title() == 'Hello World'
@ -500,6 +500,7 @@ fn test_atoi() {
fn test_raw_inter() {
world := 'world'
println(world)
s := r'hello\n$world'
assert s == r'hello\n$world'
assert s.contains('$')