commit | 2fdfbdb696abad4c4a4d469ad2a713966dbfd63e | [log] [tgz] |
---|---|---|
author | Mohamed Ishad <ishad.19@cse.mrt.ac.lk> | Tue Feb 28 17:54:30 2023 +0530 |
committer | GitHub <noreply@github.com> | Tue Feb 28 13:24:30 2023 +0100 |
tree | 4461fc55ec4027f537ff73dfff5b30dd09e6b0cf | |
parent | 494ad7c4029f002db6795a54013e1b72f64d8613 [diff] |
Fix for issue #23 (#34) * Fix for selecting the correct index in insertion * Add new test cases * Add more tests and format corrections
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
.