A ScalaTest tag that enables us to focus attention on particular tests rather than running all of them each time.
Parse and evaluate term using the specified mechanism (which is assumed to already have been set) then compare to result.
Parse and evaluate term using the specified mechanism (which is assumed to already have been set) then compare to result. Fail if the parsing fails or the comparison with the result fails.
Test the assertion on all available evaluation mechanisms.
Test the assertion on all available evaluation mechanisms. Same as single result version, except that result1 is expected for mechanisms that evaluate inside lambdas and result2 is expected for those that don't.
Test the assertion on all available evaluation mechanisms.
Compute the tipe of the expression and check to see if the specified message is produced.
Compute the tipe of the expression and check to see if the specified message is produced. We test both of the analysis methods.
Assert that a received message at the given zero-based index conforms
to an expected one in that it reports the same message label at the same
position.
Assert that a received message at the given zero-based index conforms
to an expected one in that it reports the same message label at the same
position.
Assert that the received list of messsages has recorded the expected
messages in the same order.
Assert that the received list of messsages has recorded the expected
messages in the same order.
Parse and type check the expression and expect no messages.
Analogous to ScalaTest's assertResult but it uses optsame to compare
the two values instead of equality.
Analogous to ScalaTest's assertResult but it uses optsame to compare
the two values instead of equality.
Analogous to ScalaTest's assertResult but it uses same to compare
the two values instead of equality.
Analogous to ScalaTest's assertResult but it uses same to compare
the two values instead of equality.
Analogous to ScalaTest's assertResult but it uses optsame to compare
the two values instead of equality.
Analogous to ScalaTest's assertResult but it uses optsame to compare
the two values instead of equality.
Parse a string and if the parse succeeds, pass the result of the parse to a function for further processing or checking.
Parse a string and if the parse succeeds, pass the result of the parse
to a function for further processing or checking. str is the string to
be parsed and parser is the parser to parse it with. func accepts the
result value of the parse and returns whatever it likes which is returned
from assertParseCheck. Fail if the parse succeeds but doesn't consume
all of str or if the parse fails.
Assert that a parsing operation should not result in success.
Assert that a parsing operation should not result in success.
Try to parse str as a T using parser, which is expected
to not succeed, giving either a fatal error or failure (as specified
by the iserr parameter, which defaults to failure). Fail the test
if the parsing operation succeeds. Furthermore, fail the test if it
fails, but the error or failure is not indicated at the given line
and column location or doesn't contain the given message msg.
Assert that a parsing operation should be performed correctly.
Assert that a parsing operation should be performed correctly.
Try to parse str as a T using parser, which is expected
to succeed and to produce the expected value. Fail if p doesn't
produce the expected value or if parser doesn't consume all of the
input.
Parse a string and if the parse succeeds, return the result of the parse.
Parse a string and if the parse succeeds, return the result of the parse.
str is the string to be parsed and parser is the parser to parse it
with.
Pretty-print term then compare to result.
Parse and pretty-print resulting term then compare to result.
Assert true if the two expressions are the same modulo variable renaming, otherwise assert a failure.
Analogous to ScalaTest's assertResult but it uses same to compare
the two values instead of equality.
Analogous to ScalaTest's assertResult but it uses same to compare
the two values instead of equality.
Compute errors of e check to make sure the relevant message is reported.
Compute errors of e check to make sure the relevant message is reported. Use
errors to actually perform the check.
Canonicalise an expression so that its binding variable names are given by the depth of their binder in the whole expression.
Canonicalise an expression so that its binding variable names are given by the depth of their binder in the whole expression. Unbound vars are not changed.
Fail a test with a message about finding something and expecting something else.
Fail a test with a message about finding something and expecting something else.
Fail a test with a message about reaching the end of the input.
Fail a test with a message about reaching the end of the input.
Fail a test with a message detailing a parse error.
Fail a test with a message detailing a parse error.
Fail a test with a message detailing a parse failure.
Fail a test with a message detailing a parse failure.
(Changed in version 2.9.0) The p0 call-by-name arguments is evaluated at most once per constructed Parser object, instead of on every need that arises during parsing.
ScalaTest by default only shows the unqualified class name when it displays the name of the suite.
ScalaTest by default only shows the unqualified class name when it displays the name of the suite. If a suite class name is used in more than one package we can't tell them apart. Here we override the name that is printed so that we get a project relative source file name as well.
This definition assumes that the test suite resides in the library project, that the name of the suite class is the same as the basename of the file and that the file is located in the folder given by the package name.
Please use the afterAll(ConfigMap) method of trait BeforeAndAfterAllConfigMap instead.
This method has been deprecated in favor of macro assertion and will be removed in a future version of ScalaTest. If you need this, please copy the source code into your own trait instead.
This method has been deprecated in favor of macro assertion and will be removed in a future version of ScalaTest. If you need this, please copy the source code into your own trait instead.
This method has been deprecated in favor of macro assumption and will be removed in a future version of ScalaTest. If you need this, please copy the source code into your own trait instead.
This method has been deprecated in favor of macro assumption and will be removed in a future version of ScalaTest. If you need this, please copy the source code into your own trait instead.
Please use the beforeAll(ConfigMap) method of trait BeforeAndAfterAllConfigMap instead.
This expect method has been deprecated. Please replace all invocations of expect with an identical invocation of assertResult instead.
This expect method has been deprecated. Please replace all invocations of expect with an identical invocation of assertResult instead.
This expectResult method has been deprecated. Please replace all invocations of expectResult with an identical invocation of assertResult instead.
This expectResult method has been deprecated. Please replace all invocations of expectResult with an identical invocation of assertResult instead.
(Since version 2.10.0) lastNoSuccess was not thread-safe and will be removed in 2.11.0
(Since version 2.10.0) lastNoSuccess was not thread-safe and will be removed in 2.11.0
Lambda calculus tests.