YAML4R 0.26 tests fail

Hello,

Has anyone else tried the YAML4R library? I seem to get 3 failures when
running the tests/basic.rb. I’m not sure if it is because i have test::unit
and do not have RUnit which seems to be what these tests where made for.

The list of failures is quite a lot of text so I won’t post it here unless no
one else has experienced the same problem.


Signed,
Holden Glova

I just downloaded version 0.26 what I thought was a week ago, seems there is
already a 0.30 version! Great work on the rapid releases - I will try that
one out and see how that goes. Sorry for the noise.


Signed,
Holden Glova

···

On Mon, 29 Jul 2002 21:38, Holden Glova wrote:

Hello,

Has anyone else tried the YAML4R library? I seem to get 3 failures when
running the tests/basic.rb. I’m not sure if it is because i have test::unit
and do not have RUnit which seems to be what these tests where made for.

The list of failures is quite a lot of text so I won’t post it here unless
no one else has experienced the same problem.

Hmm, nope version 0.30 seems worse, I now get 13 tests failing in
tests/basic.rb. I must be doing something wrong - any pointers would be
greatly appreciated.


Signed,
Holden Glova

···

On Mon, 29 Jul 2002 21:38, Holden Glova wrote:

Hello,

Has anyone else tried the YAML4R library? I seem to get 3 failures when
running the tests/basic.rb. I’m not sure if it is because i have test::unit
and do not have RUnit which seems to be what these tests where made for.

The list of failures is quite a lot of text so I won’t post it here unless
no one else has experienced the same problem.

Per the author’s recommendation: don’t use the tests/basic.rb. The new
tests are in yts. tests/basic.rb hasn’t been updated.

From the README:

To run the new YamlTestingSuite:

cd yts
ruby yts.rb
···

On Monday 29 July 2002 03:19 am, Holden Glova wrote:

Hmm, nope version 0.30 seems worse, I now get 13 tests failing in
tests/basic.rb. I must be doing something wrong - any pointers
would be greatly appreciated.


Ned Konz
http://bike-nomad.com
GPG key ID: BEEA7EFE

Hello,

Has anyone else tried the YAML4R library? I seem to get 3 failures when
running the tests/basic.rb. I’m not sure if it is because i have test::unit
and do not have RUnit which seems to be what these tests where made for.

Holden:

Hey, thanks for pickin up the library. It’s a minefield right now, as it’s
in such heavy daily development. I’m just about to release 0.33, which has
a bunch of fixes to whitespace and newline edge cases. Also, thanks to
Tobias Peters’ report, round tripping should work a lot better. Robert Wagner
also clued me in on problems with foreign characters and headless documents
in the emitter. I’m getting closer everyday, though.

The list of failures is quite a lot of text so I won’t post it here unless
no one else has experienced the same problem.

Hmm, nope version 0.30 seems worse, I now get 13 tests failing in
tests/basic.rb. I must be doing something wrong - any pointers would be
greatly appreciated.

Please know that these releases are constantly changing (as the specification
is always changing as well), so I can’t guarantee that all of the tests are
going to pass for you. 13 test failures on 0.30 seems wrong, though.

One suggestion is to try:

./install.rb --force

This recompiles the Racc grammar and installs a fresh yaml4r.rb. If this
doesn’t work, please send me the test failures and I’ll gladly see if I
can get to the bottom of it.

You know how it works: everything looks awesome when I run it all for
release. I think I’ve got my bases covered and then… keput!

Be strong,

_why

···

Holden Glova (dsafari@paradise.net.nz) wrote:

Quick follow-up to the last message. YAML4R 1/3 is out. Changes from 0.30
are listed below in YAML format.

I’ve also had some users say they think YAML4R is an idiotic name and I can
see their point. I’ve thought about changing the name to Rype. “Ruby’s
Yaml Parser and Emitter.” Any other ideas would be nice. I don’t want to
cause confusion with other projects like Rite that have similiar phonetics.

Cheers!

_why

#YAML:1.0 #TAB:NONE

  • version: 0.33
    date: 2002-07-29
    changes:

    • Better String#to_yaml, uses the parser’s implicit type checker now!
    • Headless documents now skipping the initial newline properly.
    • Turned off SortKeys by default; still turned on in the tests.
  • version: 0.32
    date: 2002-07-28
    changes:

    • Opened up unquoted strings to more characters, is closer to spec now.
    • Round tripping started with YTS.
    • Problems with foreign characters fixed. Thanks, Robert Wagner.
    • Problems with Array#to_yaml and Hash#to_yaml not giving a newline when nested. Again, RW.
    • Bugs in positive timezones with Time#to_yaml fixed by Tobias Peters!
  • version: 0.31
    date: 2002-07-27
    changes:

    • Fixed bug in multiline quoted strings.
    • Added YTS cases for odd newline and spaced block scalars.

— >
For those who are curious about YAML, the above can be loaded into
YAML4R, if saved in a CHANGELOG file, like so:

require 'YAML4R’
clog = YAML4R::load( File.open( ‘CHANGELOG’ ) )

The ‘clog’ variable will now contain an Array of Hashes. If you
look over the CHANGELOG, you’ll see that it’s basically a list
with the dash ‘-’ representing the entries in the list. The
contents of the entries are indented. Each entry is a mapping,
represented by : pairs (such as ‘version: 0.31’).

Now try saving the CHANGELOG back out from Ruby!

File.open( ‘CHANGELOG.2’ ).write( clog.to_yaml )

That’s YAML: simple, readable plain-text data structures!