Closed rorlic closed 2 years ago
The Triple and Quads tests in the DataFactory tests use literals without double-quotes insinuated that a Literal can be created as follows:
new Literal('abc')
This is an internal data structure that is not exposed; the dataFactory
interface should be used, which exposes .literal
.
The Triple and Quads tests in the DataFactory tests use literals without double-quotes insinuated that a Literal can be created as follows:
however the Literal
value
is defined as:which will return
a
as thevalue
, notabc
: A simple test proves that:results in:
Can I assume that the tests are wrong and should all contain literals as follows?
Or can a
Literal
be created as an unquoted string, and is thevalue
implementation not correct?