commit | 9e1ff6141875f02c73a3c1751243b20d12c4f814 | [log] [tgz] |
---|---|---|
author | Garett Tok Ern Liang <36098015+walnutdust@users.noreply.github.com> | Mon Aug 31 20:53:10 2020 +0800 |
committer | GitHub <noreply@github.com> | Mon Aug 31 14:53:10 2020 +0200 |
tree | 158f363c4671bbb75bd30db949fca5924b60bc97 | |
parent | 953890cf4d4de4604940baac57793098f8b39bb0 [diff] |
Fixed bug in adding to empty map values, when it is followed by other content. (#63)
A library for YAML manipulation while preserving comments.
Disclaimer: This is not an officially supported Google product.
A simple usage example:
import 'package:yaml_edit/yaml_edit.dart'; void main() { final yamlEditor = YamlEditor('{YAML: YAML}'); yamlEditor.assign(['YAML'], "YAML Ain't Markup Language"); print(yamlEditor); // Expected output: // {YAML: YAML Ain't Markup Language} }
Testing is done in two strategies: Unit testing (/test/editor_test.dart
) and Golden testing (/test/golden_test.dart
). More information on Golden testing and the input/output format can be found at /test/testdata/README.md
.
These tests are automatically run with pub run test
.