From 8d0b8a227be8fbf053dba04344b454355ad28194 Mon Sep 17 00:00:00 2001 From: sharkdp Date: Mon, 23 Dec 2019 13:00:39 +0100 Subject: [PATCH] Add test for less 529 --- src/less.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/less.rs b/src/less.rs index d7c60f2a..f7429333 100644 --- a/src/less.rs +++ b/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)