summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRyan Geary <rtgnj42@gmail.com>2020-06-08 22:48:33 -0400
committerRyan Geary <rtgnj42@gmail.com>2020-06-08 22:52:47 -0400
commitfc6a2ddbdad215644306a3d2d2c1961c3eeb849e (patch)
tree3b495ac42857264265c178a2668e3e60fe400e1d /src
parent263f64e674cc59699616371fe1e72dcb1b7a8ba5 (diff)
Add regression tests for #16
Diffstat (limited to 'src')
-rw-r--r--src/choice.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/choice.rs b/src/choice.rs
index a2ce12a..b7a74de 100644
--- a/src/choice.rs
+++ b/src/choice.rs
@@ -1071,6 +1071,11 @@ mod tests {
fn print_neg_2_to_end_character_wise_rust_syntax_exclusive() {
test_fn(vec!["choose", "-2..", "-c"], "abcd\n", "cd");
}
+
+ #[test]
+ fn print_2_exclusive() {
+ test_fn(vec!["choose", "2", "-x"], "a b c d", "c");
+ }
}
mod is_reverse_range_tests {