From 3b929cdd0389be06127c848a4918b84f550fcd5a Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Wed, 13 Nov 2019 20:39:58 +0300 Subject: [PATCH] update repls tests --- vlib/compiler/tests/repl/chained_fields.repl | 18 +++++++++--------- vlib/compiler/tests/repl/error_nosave.repl | 2 +- .../tests/repl/immutable_len_fields.repl | 6 +++--- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/vlib/compiler/tests/repl/chained_fields.repl b/vlib/compiler/tests/repl/chained_fields.repl index 540ce4486e..fcc433fb48 100644 --- a/vlib/compiler/tests/repl/chained_fields.repl +++ b/vlib/compiler/tests/repl/chained_fields.repl @@ -32,47 +32,47 @@ /*(17)*/ e.v << 1 // Error (e immutable) ===output=== -.vrepl_temp.v:27:14: cannot modify immutable field `len` (type `string`) +cannot modify immutable field `len` (type `string`) declare the field with `mut:` struct string { mut: len int } -.vrepl_temp.v:30:14: cannot modify immutable field `a` (type `B`) +cannot modify immutable field `a` (type `B`) declare the field with `mut:` struct B { mut: a A } -.vrepl_temp.v:29:12: cannot modify immutable field `a` (type `B`) +cannot modify immutable field `a` (type `B`) declare the field with `mut:` struct B { mut: a A } -.vrepl_temp.v:41:14: cannot modify immutable field `a` (type `B`) +cannot modify immutable field `a` (type `B`) declare the field with `mut:` struct B { mut: a A } -.vrepl_temp.v:42:16: cannot modify immutable field `a` (type `B`) +cannot modify immutable field `a` (type `B`) declare the field with `mut:` struct B { mut: a A } -.vrepl_temp.v:44:15: `c2` is immutable -.vrepl_temp.v:53:12: cannot modify immutable field `e` (type `F`) +`c2` is immutable +cannot modify immutable field `e` (type `F`) declare the field with `mut:` struct F { mut: e []E } -.vrepl_temp.v:54:17: cannot modify immutable field `e` (type `F`) +cannot modify immutable field `e` (type `F`) declare the field with `mut:` struct F { mut: e []E } -.vrepl_temp.v:57:17: `e` is immutable (can't <<) +`e` is immutable (can't <<) diff --git a/vlib/compiler/tests/repl/error_nosave.repl b/vlib/compiler/tests/repl/error_nosave.repl index fb6a5158b5..52dbe52694 100644 --- a/vlib/compiler/tests/repl/error_nosave.repl +++ b/vlib/compiler/tests/repl/error_nosave.repl @@ -1,5 +1,5 @@ a 33 ===output=== -.vrepl_temp.v:3:9: undefined: `a` +undefined: `a` 33 diff --git a/vlib/compiler/tests/repl/immutable_len_fields.repl b/vlib/compiler/tests/repl/immutable_len_fields.repl index e5332a950b..137b58f356 100644 --- a/vlib/compiler/tests/repl/immutable_len_fields.repl +++ b/vlib/compiler/tests/repl/immutable_len_fields.repl @@ -9,19 +9,19 @@ ints.len = 0 // Error (field len immutable) println('BYE') ===output=== -.vrepl_temp.v:3:5: cannot modify immutable field `len` (type `string`) +cannot modify immutable field `len` (type `string`) declare the field with `mut:` struct string { mut: len int } -.vrepl_temp.v:4:5: cannot modify immutable field `len` (type `array`) +cannot modify immutable field `len` (type `array`) declare the field with `mut:` struct array { mut: len int } -.vrepl_temp.v:5:8: cannot modify immutable field `len` (type `array`) +cannot modify immutable field `len` (type `array`) declare the field with `mut:` struct array { mut: