Skip to content
Myr

test: minimium viable test suite

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Mark Stosberg · committed by markstos · parent 933be9f · Browse files · 2 files+35 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Trailers

  • Fixes: #422

Diff stats

2 files+35 added−0 removed

  • tests:+24 added−0 removed
  • other:+11 added−0 removed

2 files+35 added−0 removed

added:test/match-mode-fzf.fish+24 added
1#!/usr/bin/fish23set got45# Given lines of input as $input and a search string as $search,6# run Fuzzel and set the returned string in $got7function test_fzf_mode --argument-names input search8 rm -f out.txt910 echo -e "$input" \11 | fuzzel --dmenu --match-mode=fzf --search "$search" >out.txt &12 # Wait for fuzzel to launch13 sleep .114 wtype -k Return15 # wait for fuzzel to exit16 sleep .117 set got (cat out.txt)18end1920test_fzf_mode "hamburger\nflag: bulgaria\nbug\njunk\ntrunk" bug21@test "exact matches should rank higher than fuzzy matches" $got = bug2223test_fzf_mode "longer entry\nlonger\nlong" long24@test "shorter matches should match first" $got = long
modified:README.md+11 added