commit | bd96cbf646a7c5823fb57a6e3a48ccd122e29d51 | [log] [tgz] |
---|---|---|
author | Sam Rawlins <sam.rawlins@gmail.com> | Thu Mar 17 03:42:51 2022 -0700 |
committer | GitHub <noreply@github.com> | Thu Mar 17 11:42:51 2022 +0100 |
tree | 35fc7b0c7aa73c88786954261db52a885af0db97 | |
parent | 0ae689745e5796e12d77f93f7c2b2bfff7310489 [diff] |
Fix example usage in README and dartdoc (#17)
A library for YAML manipulation while preserving comments.
A simple usage example:
import 'package:yaml_edit/yaml_edit.dart'; void main() { final yamlEditor = YamlEditor('{YAML: YAML}'); yamlEditor.update(['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
.