From b18915df62befc1a37b3b29b4d12e0c71dc30c18 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Sat, 5 Dec 2020 08:52:08 +0200 Subject: [PATCH] tests: cleanup long running repl tests (replaced by faster ordinary tests in vlib/v/tests/) --- vlib/v/tests/repl/array.repl | 7 ------- vlib/v/tests/repl/comment.repl | 6 ------ vlib/v/tests/repl/default_printing.repl | 5 ++--- vlib/v/tests/repl/multiple_decl.repl | 8 -------- vlib/v/tests/repl/multiple_println.repl | 7 ------- vlib/v/tests/repl/naked_strings.repl | 2 -- vlib/v/tests/repl/println.repl | 8 ++------ 7 files changed, 4 insertions(+), 39 deletions(-) delete mode 100644 vlib/v/tests/repl/array.repl delete mode 100644 vlib/v/tests/repl/comment.repl delete mode 100644 vlib/v/tests/repl/multiple_decl.repl delete mode 100644 vlib/v/tests/repl/multiple_println.repl diff --git a/vlib/v/tests/repl/array.repl b/vlib/v/tests/repl/array.repl deleted file mode 100644 index 40fdfa1e87..0000000000 --- a/vlib/v/tests/repl/array.repl +++ /dev/null @@ -1,7 +0,0 @@ -mut a := [1, 2, 3] -b := [4, 5] -a << b -a = a.filter(it%2==0) -a -===output=== -[2, 4] diff --git a/vlib/v/tests/repl/comment.repl b/vlib/v/tests/repl/comment.repl deleted file mode 100644 index 0850e31f50..0000000000 --- a/vlib/v/tests/repl/comment.repl +++ /dev/null @@ -1,6 +0,0 @@ -mut a := [1,2,3] // comment -// test comment -a << 4 -a -===output=== -[1, 2, 3, 4] diff --git a/vlib/v/tests/repl/default_printing.repl b/vlib/v/tests/repl/default_printing.repl index 9c55b7e14e..96aed0e961 100644 --- a/vlib/v/tests/repl/default_printing.repl +++ b/vlib/v/tests/repl/default_printing.repl @@ -1,6 +1,5 @@ -num := 1 str := 'Hello' +num := 1 num -str ===output=== 1 -Hello + diff --git a/vlib/v/tests/repl/multiple_decl.repl b/vlib/v/tests/repl/multiple_decl.repl deleted file mode 100644 index e7b2ba8ebd..0000000000 --- a/vlib/v/tests/repl/multiple_decl.repl +++ /dev/null @@ -1,8 +0,0 @@ -name := 'Bob' age := 20 large_number := i64(9999999999) -println(name) -println(age) -println(large_number) -===output=== -Bob -20 -9999999999 diff --git a/vlib/v/tests/repl/multiple_println.repl b/vlib/v/tests/repl/multiple_println.repl deleted file mode 100644 index 48cd3ab260..0000000000 --- a/vlib/v/tests/repl/multiple_println.repl +++ /dev/null @@ -1,7 +0,0 @@ -println('Hello World') -println('Foo Bar') -println('dlroW olleH') -===output=== -Hello World -Foo Bar -dlroW olleH diff --git a/vlib/v/tests/repl/naked_strings.repl b/vlib/v/tests/repl/naked_strings.repl index 3769ccc964..ce11783915 100644 --- a/vlib/v/tests/repl/naked_strings.repl +++ b/vlib/v/tests/repl/naked_strings.repl @@ -1,5 +1,3 @@ -'abc' 'abc'+'xyz' ===output=== -abc abcxyz diff --git a/vlib/v/tests/repl/println.repl b/vlib/v/tests/repl/println.repl index d200ff4677..e772234935 100644 --- a/vlib/v/tests/repl/println.repl +++ b/vlib/v/tests/repl/println.repl @@ -1,7 +1,3 @@ -println('Hello, world!') -println('Привет, мир!') -println('你好世界') +println('Hello, world! | Привет, мир! | 你好世界') ===output=== -Hello, world! -Привет, мир! -你好世界 +Hello, world! | Привет, мир! | 你好世界