@@ -61,6 +61,14 @@ defmodule Kernel.CLITest do
61
61
end )
62
62
end
63
63
64
+ @ tag :tmp_dir
65
+ test "file smoke test" , context do
66
+ file = Path . join ( context . tmp_dir , "hello_world!.exs" )
67
+ File . write! ( file , "IO.puts :hello_world123" )
68
+ { output , 0 } = System . cmd ( elixir_executable ( ) , [ file ] )
69
+ assert output =~ "hello_world123"
70
+ end
71
+
64
72
test "--eval smoke test" do
65
73
{ output , 0 } = System . cmd ( elixir_executable ( ) , [ "--eval" , "IO.puts :hello_world123" ] )
66
74
assert output =~ "hello_world123"
@@ -70,8 +78,8 @@ defmodule Kernel.CLITest do
70
78
71
79
assert output =~ "hello_world123"
72
80
73
- { output , 0 } = System . cmd ( elixir_executable ( ) , [ "-e" , "IO.puts :hello_world123" ] )
74
- assert output =~ "hello_world123"
81
+ # Check for exclamation mark handling on Windows
82
+ assert { _output , 0 } = System . cmd ( elixir_executable ( ) , [ "-e" , "URI.new!(~s||)" ] )
75
83
76
84
{ output , 0 } = System . cmd ( iex_executable ( ) , [ "-e" , "IO.puts :hello_world123; System.halt()" ] )
77
85
assert output =~ "hello_world123"
0 commit comments