     assert_compile_fail CompileError,
       "nofile:2: function bar/0 undefined",
       '''
-      defmodule Foo do
+      defmodule ErrorsTest do
         def foo, do: bar
       end
       '''


  test :private_macro do
    assert_compile_fail UndefinedFunctionError,
      "undefined function: Foo.foo/0",
      '''
      defmodule Foo do
        defmacrop foo, do: 1
        defmacro bar, do: __MODULE__.foo
        defmacro baz, do: bar


  test :invalid_access_protocol_not_alias do
    assert_raise ArgumentError, "the access protocol cannot be used inside match clauses (for example, on the left hand side of a match or in function signatures)", fn ->
      defmodule ErrorsTest do
        def sample(config[integer: 0]), do: true
      end
    end
