Get rid of remaining compiler warnings during test

This commit is contained in:
Marcel Otto 2020-04-05 01:33:42 +02:00
parent 611ada00a2
commit c4791af2ad
2 changed files with 6 additions and 2 deletions

View file

@ -18,6 +18,9 @@ defmodule RDF.TestSuite do
strict: false strict: false
end end
@compile {:no_warn_undefined, RDF.TestSuite.NS.MF}
@compile {:no_warn_undefined, RDF.TestSuite.NS.RDFT}
alias NS.MF alias NS.MF
alias RDF.{Turtle, Graph, Description, IRI} alias RDF.{Turtle, Graph, Description, IRI}

View file

@ -235,7 +235,6 @@ defmodule RDF.Vocabulary.NamespaceTest do
inbits inbits
inlist inlist
receive receive
__block__
__info__ __info__
__MODULE__ __MODULE__
__FILE__ __FILE__
@ -243,6 +242,8 @@ defmodule RDF.Vocabulary.NamespaceTest do
__ENV__ __ENV__
__CALLER__ __CALLER__
] ]
# This one also passes the tests, but causes some warnings:
# __block__
end end
alias NSofEdgeCases.Example alias NSofEdgeCases.Example
alias TestNS.EX alias TestNS.EX
@ -262,7 +263,7 @@ defmodule RDF.Vocabulary.NamespaceTest do
assert Example.inbits == ~I<http://example.com/ex#inbits> assert Example.inbits == ~I<http://example.com/ex#inbits>
assert Example.inlist == ~I<http://example.com/ex#inlist> assert Example.inlist == ~I<http://example.com/ex#inlist>
assert Example.receive == ~I<http://example.com/ex#receive> assert Example.receive == ~I<http://example.com/ex#receive>
assert Example.__block__ == ~I<http://example.com/ex#__block__> # assert Example.__block__ == ~I<http://example.com/ex#__block__>
assert Example.__info__ == ~I<http://example.com/ex#__info__> assert Example.__info__ == ~I<http://example.com/ex#__info__>
assert Example.__MODULE__ == ~I<http://example.com/ex#__MODULE__> assert Example.__MODULE__ == ~I<http://example.com/ex#__MODULE__>
assert Example.__FILE__ == ~I<http://example.com/ex#__FILE__> assert Example.__FILE__ == ~I<http://example.com/ex#__FILE__>