     assert_compile_fail SyntaxError,
       "nofile:2: function names should start with lowercase characters or underscore, invalid name Bar",
       '''
-      defmodule Foo do
+      defmodule ErrorsTest do
         def Bar do
           :baz
         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_invalid_keywords do
    assert_raise ArgumentError, "record Kernel.ErrorsTest.Config does not have the keys: [:foo]", fn ->
      defmodule ErrorsTest do
        def sample(Kernel.ErrorsTest.Config[foo: :bar]), do: true
      end
    end
