AssertEqualsExact

From ApCoCoAWiki
Revision as of 17:09, 22 June 2010 by 79.208.158.76 (talk) (New page: <command> <title>AssertEqualsExact</title> <short_description>Checks if two values are exactly the same.</short_description> <syntax> $apcocoa/ts/assert.AssertEqualsExact(Result: TYPE, Exp...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

AssertEqualsExact

Checks if two values are exactly the same.

Syntax

$apcocoa/ts/assert.AssertEqualsExact(Result: TYPE, Expected: TYPE, ErrMsg: STRING)

Description

This function checks if the two values 'Result' and 'Expected' are exactly the same. If not it throws an error and prints the errors message.

  • @param Condition: Boolean value of a condition

  • @param ErrMsg: Error message

Example

F:=x^2+x+1;
G:=x-1;
$apcocoa/ts/assert.AssertTrue(F,G, "F does not equal G.");