mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-29 19:30:36 +02:00
version.test: incorrect test logic
Since string-contains returns an integer on success, this test was reporting unresolved instead of pass on success. * test-suite/tests/version.test ("version reporting works"): fix boolean check logic
This commit is contained in:
parent
462d3c85ed
commit
b572f187af
1 changed files with 5 additions and 5 deletions
|
@ -1,7 +1,7 @@
|
|||
;;;; version.test --- test suite for Guile's version functions -*- scheme -*-
|
||||
;;;; Greg J. Badros <gjb@cs.washington.edu>
|
||||
;;;;
|
||||
;;;; Copyright (C) 2000,2001,2006,2010,2020 Free Software Foundation, Inc.
|
||||
;;;; Copyright (C) 2000,2001,2006,2010,2020,2025 Free Software Foundation, Inc.
|
||||
;;;;
|
||||
;;;; This library is free software; you can redistribute it and/or
|
||||
;;;; modify it under the terms of the GNU Lesser General Public
|
||||
|
@ -26,7 +26,7 @@
|
|||
(and (string? (major-version))
|
||||
(string? (minor-version))
|
||||
(string? (micro-version))
|
||||
(string-contains (version)
|
||||
(string-append (major-version) "."
|
||||
(minor-version) "."
|
||||
(micro-version))))))
|
||||
(equal? 0 (string-contains (version)
|
||||
(string-append (major-version) "."
|
||||
(minor-version) "."
|
||||
(micro-version)))))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue