Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The old algorithm iterated on the destination datastructures. This meant that tricky look ahead was required to handle all cases. By iterating on the source datastructure instead we can vastly simplify the logic for converting a source type into a destination type. This commit changes the type mismatch errors to indicate the actual problem with the types. Additional test cases now catch the problems seen by coreos/go-systemd. Fixes #80
- Loading branch information
1 parent
692d228
commit 3c37a67
Showing
2 changed files
with
231 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters