Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emitter: Output space after an alias mapping key #185

Merged
merged 1 commit into from
Jun 1, 2020

Conversation

perlpunk
Copy link
Member

@perlpunk perlpunk commented May 31, 2020

Before:

a: &b x
*b: c

Now:

a: &b x
*b : c

Passing emitter tests:

  • 26DV: Whitespace around colon in mappings
  • E76Z: Aliases in Implicit Block Mapping
  • X38W: Aliases in Flow Objects

Test manually because make test-suite will overwrite changes in the skiplist:

./tests/run-parser-test-suite tests/run-test-suite/data/26DV/in.yaml | ./tests/run-emitter-test-suite
./tests/run-parser-test-suite tests/run-test-suite/data/E76Z/in.yaml | ./tests/run-emitter-test-suite
./tests/run-parser-test-suite tests/run-test-suite/data/X38W/in.yaml | ./tests/run-emitter-test-suite

Or edit tests/run-test-suite/test/blacklist/libyaml-emitter and do:

(cd tests/run-test-suite; prove -lv test)

@perlpunk perlpunk added this to Backlog in Release 0.2.5 May 31, 2020
@perlpunk perlpunk marked this pull request as ready for review May 31, 2020 13:31
@perlpunk perlpunk moved this from Backlog to Review in Release 0.2.5 May 31, 2020
@perlpunk perlpunk requested a review from ingydotnet May 31, 2020 13:48
Before:
    a: &b x
    *b: c

Now:
    a: &b x
    *b : c

Passing tests:
* 26DV: Whitespace around colon in mappings
* E76Z: Aliases in Implicit Block Mapping
* X38W: Aliases in Flow Objects

Test manually because `make test-suite` will overwrite changes in the skiplist:

    ./tests/run-parser-test-suite tests/run-test-suite/data/26DV/in.yaml | ./tests/run-emitter-test-suite
    ./tests/run-parser-test-suite tests/run-test-suite/data/E76Z/in.yaml | ./tests/run-emitter-test-suite
    ./tests/run-parser-test-suite tests/run-test-suite/data/X38W/in.yaml | ./tests/run-emitter-test-suite

Or edit tests/run-test-suite/test/blacklist/libyaml-emitter and do:

    (cd tests/run-test-suite; prove -lv test)

Also I added some newlines to yaml.h to help identifying states by number.
@perlpunk perlpunk changed the base branch from master to release/0.2.5 June 1, 2020 09:55
@perlpunk perlpunk merged commit 6e2fa97 into yaml:release/0.2.5 Jun 1, 2020
@perlpunk perlpunk moved this from Review to Merged to release branch in Release 0.2.5 Jun 1, 2020
@perlpunk perlpunk deleted the alias-key-space branch June 1, 2020 21:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Release 0.2.5
  
Merged to release branch
Development

Successfully merging this pull request may close these issues.

None yet

2 participants