Re: [SCXML] bad tests with inline values

David Junger <[email protected]>
Newsgroups gmane.comp.web.voice
Message-ID <[email protected]>
Le 19 mar 2014 à 15:06, Jim Barnett <[email protected]> a écrit :

> I'm not sure that I understand the conclusion of this discussion.  Do we have agreement on what to do with the tests?

I think the gist is that it looks better if the value in the condition is exactly (including the type) the value you used to define the data. If you want to do anything, just fix that, i.e. either use quotes in the data or don't use quotes in the condition.
But it doesn't break the test to compare a string with a number as long as you keep writing the condition as an equivalence (==), which you should keep doing.

			David
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.