mirror of
https://github.com/sharkdp/bat
synced 2024-11-23 20:33:06 +00:00
Add test for less 529
This commit is contained in:
parent
e400ebd1bd
commit
8d0b8a227b
1 changed files with 13 additions and 0 deletions
13
src/less.rs
13
src/less.rs
|
@ -28,6 +28,19 @@ Homepage: http://www.greenwoodsoftware.com/less";
|
|||
assert_eq!(Some(487), parse_less_version(output));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_parse_less_version_529() {
|
||||
let output = b"less 529 (Spencer V8 regular expressions)
|
||||
Copyright (C) 1984-2017 Mark Nudelman
|
||||
|
||||
less comes with NO WARRANTY, to the extent permitted by law.
|
||||
For information about the terms of redistribution,
|
||||
see the file named README in the less distribution.
|
||||
Homepage: http://www.greenwoodsoftware.com/less";
|
||||
|
||||
assert_eq!(Some(529), parse_less_version(output));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_parse_less_version_551() {
|
||||
let output = b"less 551 (PCRE regular expressions)
|
||||
|
|
Loading…
Reference in a new issue