@@ -86,20 +86,20 @@ def test_get_commands_from_arguments():
8686 assert_equal (smartdispatch .get_commands_from_arguments (args ), ["echo 1" ])
8787
8888 # Test two arguments
89- args = smartdispatch .unfold_arguments (["echo [1, 2]" ])
89+ args = smartdispatch .unfold_arguments (["echo [1 2]" ])
9090 assert_equal (smartdispatch .get_commands_from_arguments (args ), ["echo 1" , "echo 2" ])
9191
92- args = smartdispatch .unfold_arguments (["echo test [1, 2] yay" ])
92+ args = smartdispatch .unfold_arguments (["echo test [1 2] yay" ])
9393 assert_equal (smartdispatch .get_commands_from_arguments (args ), ["echo test 1 yay" , "echo test 2 yay" ])
9494
95- args = smartdispatch .unfold_arguments (["echo test[1, 2]" ])
95+ args = smartdispatch .unfold_arguments (["echo test[1 2]" ])
9696 assert_equal (smartdispatch .get_commands_from_arguments (args ), ["echo test1" , "echo test2" ])
9797
98- args = smartdispatch .unfold_arguments (["echo test[1, 2]yay" ])
98+ args = smartdispatch .unfold_arguments (["echo test[1 2]yay" ])
9999 assert_equal (smartdispatch .get_commands_from_arguments (args ), ["echo test1yay" , "echo test2yay" ])
100100
101101 # Test multiple folded arguments
102- args = smartdispatch .unfold_arguments (["python my_command.py" , "[0.01, 0.000001, 0.00000000001]" , "-1" , "[omicron, mu]" ])
102+ args = smartdispatch .unfold_arguments (["python my_command.py" , "[0.01 0.000001 0.00000000001]" , "-1" , "[omicron mu]" ])
103103 assert_equal (smartdispatch .get_commands_from_arguments (args ), ["python my_command.py 0.01 -1 omicron" ,
104104 "python my_command.py 0.01 -1 mu" ,
105105 "python my_command.py 0.000001 -1 omicron" ,
@@ -108,7 +108,7 @@ def test_get_commands_from_arguments():
108108 "python my_command.py 0.00000000001 -1 mu" ])
109109
110110 # Test multiple unfolded arguments and not unfoldable brackets
111- args = smartdispatch .unfold_arguments (["python my_command.py [0.01, 0.000001, 0.00000000001] -1 \[[42, 133\ ,666]\] slow [omicron, mu]" ])
111+ args = smartdispatch .unfold_arguments (["python my_command.py [0.01 0.000001 0.00000000001] -1 \[[42 133,666]\] slow [omicron mu]" ])
112112 assert_equal (smartdispatch .get_commands_from_arguments (args ), ["python my_command.py 0.01 -1 [42] slow omicron" ,
113113 "python my_command.py 0.01 -1 [42] slow mu" ,
114114 "python my_command.py 0.01 -1 [133,666] slow omicron" ,
0 commit comments