+
Skip to content

Using an undefined variable should result in an error #292

Open
@vgheo

Description

@vgheo

Current behaviour when using an undefined variable is that it evaluates to null.
Arguably, this is never the user's intention.
Rather, this is the case when the variable name was mis-spelled, or forgot to be renamed in an inconsistent refactoring.

Concordion should raise an error in such a case.

<html xmlns:concordion="http://www.concordion.org/2007/concordion">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
	<p>
	   When using an undefined variable var
	   then an <span concordion:assertEquals="#var">error</span> is reported.
 	</p>
</body>
</html>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载