Skip to content

Commit c0646d9

Browse files
authored
Merge pull request #355 from taboege/bisectable-dwym
Bisectable: "DWIM" β†’ "do what you mean" in message
2 parents 36faa5b + 50ef020 commit c0646d9

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

β€Žxbin/Bisectable.p6

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ multi method irc-to-me($msg where .text ~~ &bisect-cmd) {
6767
$old = $<maybe-rev>[0];
6868
$new = $_ with $<maybe-rev>[1];
6969
$code = $<maybe-code>;
70-
$msg.reply: β€œUsing old=$old new=$new in an attempt to DWIM”
70+
$msg.reply: β€œUsing old=$old new=$new in an attempt to do what you mean”
7171
}
7272
self.process: $msg, ~$code, ~$old, ~$new
7373
}

β€Žxt/bisectable.t

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -111,29 +111,29 @@ $t.test(:50timeout, β€˜mixed term styles’,
111111
β€œ{$t.our-nick}, bisect log: https://whatever.able/fakeupload”,
112112
β€œ{$t.our-nick}, (2016-03-18) https://github.com/rakudo/rakudo/commit/6d120cab6d0bf55a3c96fd3bd9c2e841e7eb99b0”);
113113

114-
# DWIM
114+
# DWIM / DWYM
115115

116116
$t.test(β€˜forgot the right syntax (comma)’,
117117
β€˜bisect: 2016.02,2016.03 say 42’,
118-
β€œ{$t.our-nick}, Using old=2016.02 new=2016.03 in an attempt to DWIM”,
118+
β€œ{$t.our-nick}, Using old=2016.02 new=2016.03 in an attempt to do what you mean”,
119119
β€œ{$t.our-nick}, On both starting points (old=2016.02 new=2016.03) the exit code is 0 and the output is identical as well”,
120120
β€œ{$t.our-nick}, Output on both points: Β«42␀»”);
121121

122122
$t.test(β€˜forgot the right syntax (space)’,
123123
β€˜bisect: 2016.02 2016.03 say 42’,
124-
β€œ{$t.our-nick}, Using old=2016.02 new=2016.03 in an attempt to DWIM”,
124+
β€œ{$t.our-nick}, Using old=2016.02 new=2016.03 in an attempt to do what you mean”,
125125
β€œ{$t.our-nick}, On both starting points (old=2016.02 new=2016.03) the exit code is 0 and the output is identical as well”,
126126
β€œ{$t.our-nick}, Output on both points: Β«42␀»”);
127127

128128
$t.test(β€˜forgot the right syntax (comma+space)’,
129129
β€˜bisect: 2016.02 , 2016.03 say 42’,
130-
β€œ{$t.our-nick}, Using old=2016.02 new=2016.03 in an attempt to DWIM”,
130+
β€œ{$t.our-nick}, Using old=2016.02 new=2016.03 in an attempt to do what you mean”,
131131
β€œ{$t.our-nick}, On both starting points (old=2016.02 new=2016.03) the exit code is 0 and the output is identical as well”,
132132
β€œ{$t.our-nick}, Output on both points: Β«42␀»”);
133133

134134
$t.test(β€˜forgot the right syntax (one revision only)’,
135135
β€˜bisect: 2016.02 say 42’,
136-
β€œ{$t.our-nick}, Using old=2016.02 new=HEAD in an attempt to DWIM”,
136+
β€œ{$t.our-nick}, Using old=2016.02 new=HEAD in an attempt to do what you mean”,
137137
/^ <me($t)>β€˜, On both starting points (old=2016.02 new=’<sha>β€˜) the exit code is 0 and the output is identical as well’ $/,
138138
β€œ{$t.our-nick}, Output on both points: Β«42␀»”);
139139

@@ -159,7 +159,7 @@ $t.test(β€˜non-revisions are ignored (two revisions)’,
159159

160160
$t.test(β€˜some non-revisions are ignored (one is correct)’,
161161
β€˜bisect: 2016.05 2017.13 .say # heh’,
162-
β€œ{$t.our-nick}, Using old=2016.05 new=HEAD in an attempt to DWIM”,
162+
β€œ{$t.our-nick}, Using old=2016.05 new=HEAD in an attempt to do what you mean”,
163163
/^ <me($t)>β€˜, On both starting points (old=2016.05 new=’<sha>β€˜) the exit code is 0 and the output is identical as well’ $/,
164164
β€œ{$t.our-nick}, Output on both points: Β«2017.13␀»”);
165165

0 commit comments

Comments
Β (0)