commit | aa97132f21b1758f5104fd3148349db3b36008f1 | [log] [tgz] |
---|---|---|
author | Garett Tok Ern Liang <36098015+walnutdust@users.noreply.github.com> | Fri Oct 30 18:58:21 2020 +0800 |
committer | GitHub <noreply@github.com> | Fri Oct 30 11:58:21 2020 +0100 |
tree | 7a3cd2699eccc6d127928261f2f3b26bed571942 | |
parent | d10e9cc69a06679e3f416b217d7cfc454563a9b3 [diff] |
Fixed bug with adding empty map (#78) * Fixed bug with adding empty map * Added comments to clarify change
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
.