You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The test suite for YAML::Tiny now tests not only compatibility with
YAML.pm but also with YAML::Syck.
It's thrown up half a dozen cases where Syck doesn't match YAML.pm.
To see them all, grab the latest YAML::Tiny and enable the YAML::Syck
testing in t/lib/MyTests.pm.
I've commented them out for now, until they work.
Adam K
I have a proposal. Right now we're cross-certifying YAML and JSON modules. I think this is the
wrong approach.
What's needed is 2 CPAN modules:
Test::YAML::Spec qw($yaml_module_name)
and
Test::JSON::Spec qw($json_module_name);
The modules would be responsible for testing all of the known spec in each direction. We could
store these tests in Data::Dumper format if needed, along side their expected output.
What do you think?
Todd
I think you are underestimating what it would take to test "all" of the
YAML specification.
As for YAML::Tiny, it isn't there to test compatibility with the YAML
specification. It's there to test only the subset that it supports.
Writing a compliance test for JSON may well be possible though.
I'm not sure how you'd define the tests for things like boolean true and
false though, which Perl doesn't support.
Adam K
On Mon Jul 19 18:24:15 2010, TODDR wrote:
> I have a proposal. Right now we're cross-certifying YAML and JSON
> modules. I think this is the
> wrong approach.
>
> What's needed is 2 CPAN modules:
> Test::YAML::Spec qw($yaml_module_name)
> and
> Test::JSON::Spec qw($json_module_name);
>
> The modules would be responsible for testing all of the known spec in
> each direction. We could
> store these tests in Data::Dumper format if needed, along side their
> expected output.
>
> What do you think?
>
> Todd
On Mon Jul 19 22:46:16 2010, ADAMK wrote:
> I think you are underestimating what it would take to test "all" of
the
> YAML specification.
>
> As for YAML::Tiny, it isn't there to test compatibility with the YAML
> specification. It's there to test only the subset that it supports.
>
> Writing a compliance test for JSON may well be possible though.
>
> I'm not sure how you'd define the tests for things like boolean true
and
> false though, which Perl doesn't support.
You could have an annotated YAML test suite, so that e.g. there was a
t/yaml-tiny/ part of it that would be the only part you would import,
but others would test the rest (including YAML::Tiny). It could work
similarly to how the Perl 6 "fuzz" tests work, where multiple
implementations are being tested with the same test suite using
annotations.
There would be a lot of value in doing something like that.
The text was updated successfully, but these errors were encountered:
Migrated from rt.cpan.org#20970 (status was 'open')
Requestors:
From [email protected] on 2006-08-13 12:33:18:
From [email protected] on 2010-07-16 03:38:46:
From [email protected] on 2010-07-19 22:24:15:
From [email protected] on 2010-07-20 02:46:16:
From [email protected] on 2010-07-23 23:35:40:
The text was updated successfully, but these errors were encountered: