File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
lib/elixir/test/elixir/kernel Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -94,6 +94,14 @@ defmodule Kernel.CLI.CompileTest do
9494 assert :string . str ( output , bar ) > 0 , "expected bar.ex to miss module Foo"
9595 assert :string . str ( output , 'elixir_compiler' ) == 0 , "expected elixir_compiler to not be in output"
9696 end
97+
98+ test :compile_missing_patterns do
99+ fixture = fixture_path "compile_sample.ex"
100+ output = elixirc ( '#{ fixture } non_existing.ex -o #{ tmp_path } ' )
101+ assert :string . str ( output , 'non_existing.ex' ) > 0 , "expected non_existing.ex to be mentionned"
102+ assert :string . str ( output , 'compile_sample.ex' ) == 0 , "expected compile_sample.ex to not be mentionned"
103+ refute File . exists? ( tmp_path ( "Elixir.CompileSample.beam" ) ) , "expected the sample to not be compiled"
104+ end
97105end
98106
99107defmodule Kernel.CLI.ParallelCompilerTest do
You can’t perform that action at this time.
0 commit comments