Skip to content

Commit 44d5909

Browse files
committed
ownership: fix tests
1 parent a85d534 commit 44d5909

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

‎vlib/v/slow_tests/inout/os.out‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
c_and_v_type_interoperability.md
22
docs.md
3+
ownership.md
34
packaging_v_for_distributions.md
45
upcoming.md
56
vscode.md

‎vlib/v2/types/checker_ownership_test.v‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ fn main() {
473473
"
474474
exit_code, output := run_ownership_check(code)
475475
assert exit_code != 0, 'should fail: s moved into struct field'
476-
assert output.contains('use of moved value: `s`'), 'got: '
476+
assert output.contains('use of moved value: `s`'), 'got: ${output}'
477477
}
478478

479479
fn test_ownership_move_into_array_literal() {
@@ -486,7 +486,7 @@ fn main() {
486486
"
487487
exit_code, output := run_ownership_check(code)
488488
assert exit_code != 0, 'should fail: s moved into array literal'
489-
assert output.contains('use of moved value: `s`'), 'got: '
489+
assert output.contains('use of moved value: `s`'), 'got: ${output}'
490490
}
491491

492492
fn test_ownership_move_into_array_append() {
@@ -500,7 +500,7 @@ fn main() {
500500
"
501501
exit_code, output := run_ownership_check(code)
502502
assert exit_code != 0, 'should fail: s moved into array append'
503-
assert output.contains('use of moved value: `s`'), 'got: '
503+
assert output.contains('use of moved value: `s`'), 'got: ${output}'
504504
}
505505

506506
fn test_ownership_move_into_map_literal() {
@@ -513,5 +513,5 @@ fn main() {
513513
"
514514
exit_code, output := run_ownership_check(code)
515515
assert exit_code != 0, 'should fail: s moved into map literal'
516-
assert output.contains('use of moved value: `s`'), 'got: '
516+
assert output.contains('use of moved value: `s`'), 'got: ${output}'
517517
}

0 commit comments

Comments
 (0)