File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -209,7 +209,6 @@ fn main() {
209
209
mut tsession := testing.new_test_session (cmd_prefix)
210
210
tsession.files << all_test_files
211
211
tsession.skip_files << skip_test_files
212
- tsession.skip_files << 'vlib/v/tests/option_print_errors_test.v'
213
212
mut werror := false
214
213
mut sanitize_memory := false
215
214
mut sanitize_address := false
Original file line number Diff line number Diff line change 1
1
fn test_error_can_be_converted_to_string () {
2
- assert 'Option{ error: " an error" } ' == error ('an error' ).str ()
2
+ assert 'an error' == error ('an error' ).str ()
3
3
}
4
4
5
5
fn test_error_can_be_assigned_to_a_variable () {
6
6
f := error ('an error' )
7
- assert 'Option{ error: " an error" } ' == f.str ()
7
+ assert 'an error' == f.msg
8
8
}
9
9
10
10
fn test_error_can_be_printed () {
@@ -16,5 +16,5 @@ fn test_error_can_be_printed() {
16
16
fn test_error_can_be_interpolated_in_a_string () {
17
17
f := error ('an error' )
18
18
s := 'hi $f '
19
- assert s == 'hi Option{ error: " an error" } '
19
+ assert s == 'hi an error'
20
20
}
You can’t perform that action at this time.
0 commit comments