mirror of
https://github.com/junegunn/fzf.git
synced 2025-12-10 06:31:54 +08:00
Most of the "expected" strings in terminal.go test were changed to "text/template" values. Quotes in those string were parametrized in the templates. Two functions handling templates were added for convenience. Templates has the advantage of: - parametrize repetitive strings inside "expected" values - inner and outer quotes were parametrized in templates - long and confusing test values are more readable - templates can be localized for other operating systems
1.2 KiB
1.2 KiB