mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
string: fix trim_right
This commit is contained in:
@@ -294,6 +294,13 @@ fn test_trim_left() {
|
||||
assert s.trim_left(' ') == 'module main'
|
||||
}
|
||||
|
||||
fn test_trim_right() {
|
||||
mut s := 'module main'
|
||||
assert s.trim_right(' ') == 'module main'
|
||||
s = 'module main '
|
||||
assert s.trim_right(' ') == 'module main'
|
||||
}
|
||||
|
||||
fn test_all_after() {
|
||||
s := 'fn hello'
|
||||
q := s.all_after('fn ')
|
||||
|
||||
Reference in New Issue
Block a user