Skip to content

Commit fa0eba0

Browse files
committed
Interpreter.Brainf__k: Use execute() to fix test failure
1 parent e7ceb53 commit fa0eba0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/Interpreter/Brainf__k.vimspec

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@ Describe Interpreter.Brainf__k
77

88
Describe .run_vim_parse_execute()
99
It shows hello world
10-
redir => output
11-
silent call BF.run_vim_parse_execute("++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.")
12-
redir END
10+
let script = '++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.'
11+
let output = execute(printf('call BF.run_vim_parse_execute("%s")', script))
1312
Assert Equals(output, "Hello World!\n")
1413
End
1514
End

0 commit comments

Comments
 (0)