Skip to content

Commit 52567df

Browse files
author
Bruno Sutic
committed
Fix tests for a stored search that matches git SHAs
1 parent 279db60 commit 52567df

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
### master
44
- if installed use `gawk` instead of `awk` (@metcalfc)
5+
- add stored search for matching git SHAs (@jbnicolai)
56

67
### v2.1.0, Jan 01, 2015
78
- combine send-keys calls to reduce flickering (@toupeira)

test/helpers/expect_copycat_helpers.exp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ proc tmux_ctrl_g {} {
2525
sleep 0.7
2626
}
2727

28-
proc tmux_ctrl_h {} {
29-
send ""
28+
proc tmux_alt_h {} {
29+
send "h"
3030
sleep 0.7
3131
}
3232

test/test_git_hash_search.exp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ enter_test_git_repo
77
# Match regular SHA-1 hashes
88
#---------------------------
99
git_log_reverse
10-
tmux_ctrl_g
11-
assert_highlighted "29a71f6749a5413f42445372052e612e937b23d6" "match regular SHA-1 hashes"
10+
tmux_alt_h
11+
assert_highlighted "935929c4c7265666e41e727f97a87d1af00a8b40" "match regular SHA-1 hashes"
1212

1313
#Match shortened SHA-1 hashes
1414
#----------------------------
1515
git_log_reverse_short
16-
tmux_ctrl_g
17-
assert_highlighted "29a71f6" "match shortened SHA-1 hashes"
16+
tmux_alt_h
17+
assert_highlighted "935929c" "match shortened SHA-1 hashes"
1818

1919
# quit
2020
#-----

0 commit comments

Comments
 (0)