From dc684698185efd86ce4b575b1bfda2729d5c54d3 Mon Sep 17 00:00:00 2001 From: Subhomoy Haldar Date: Tue, 12 Jul 2022 01:17:32 +0530 Subject: [PATCH] use trimmed output for comparison (#15032) --- vlib/v/builder/builder_test.v | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vlib/v/builder/builder_test.v b/vlib/v/builder/builder_test.v index 354f6f1e1f..9961dbf63a 100644 --- a/vlib/v/builder/builder_test.v +++ b/vlib/v/builder/builder_test.v @@ -39,17 +39,17 @@ fn test_conditional_executable_removal() ? { original_file_list := os.ls(dir)? new_file_list := arrays.concat(original_file_list, executable) - assert os.execute('${os.quoted_path(@VEXE)} run .').output == 'Hello World!\n' + assert os.execute('${os.quoted_path(@VEXE)} run .').output.trim_space() == 'Hello World!' assert arrays_are_equivalent(os.ls(dir)?, original_file_list) assert os.execute('${os.quoted_path(@VEXE)} .').output == '' - assert os.execute('./$executable').output == 'Hello World!\n' + assert os.execute('./$executable').output.trim_space() == 'Hello World!' assert arrays_are_equivalent(os.ls(dir)?, new_file_list) - assert os.execute('${os.quoted_path(@VEXE)} run .').output == 'Hello World!\n' + assert os.execute('${os.quoted_path(@VEXE)} run .').output.trim_space() == 'Hello World!' assert arrays_are_equivalent(os.ls(dir)?, new_file_list) }