mirror of
https://github.com/correl/doom-modeline.git
synced 2024-11-27 03:00:07 +00:00
Update env parse tests
This commit is contained in:
parent
d7d006d91f
commit
aca6c96c6e
1 changed files with 6 additions and 6 deletions
|
@ -32,27 +32,27 @@
|
||||||
|
|
||||||
(ert-deftest doom-modeline-env--ruby/parse-ruby-version-string ()
|
(ert-deftest doom-modeline-env--ruby/parse-ruby-version-string ()
|
||||||
(should
|
(should
|
||||||
(string= (doom-modeline-env--ruby "ruby 2.3.3p222 (2016-11-21 revision 56859) [x86_64-darwin16]")
|
(string= (doom-modeline-env--ruby-parse "ruby 2.3.3p222 (2016-11-21 revision 56859) [x86_64-darwin16]")
|
||||||
"2.3.3")))
|
"2.3.3")))
|
||||||
|
|
||||||
(ert-deftest doom-modeline-env--elixir/parse-elixr-version-string ()
|
(ert-deftest doom-modeline-env--elixir/parse-elixr-version-string ()
|
||||||
(should
|
(should
|
||||||
(string= (doom-modeline-env--elixir "IEx 1.7.4 (compiled with Erlang/OTP 21)")
|
(string= (doom-modeline-env--elixir-parse "IEx 1.7.4 (compiled with Erlang/OTP 21)")
|
||||||
"1.7.4")))
|
"1.7.4")))
|
||||||
|
|
||||||
(ert-deftest doom-modeline-env--rustc/parse-rustc-version-string ()
|
(ert-deftest doom-modeline-env--rustc/parse-rustc-version-string ()
|
||||||
(should
|
(should
|
||||||
(string= (doom-modeline-env--rustc "rustc 1.32.0-nightly (14997d56a 2018-12-05)")
|
(string= (doom-modeline-env--rust-parse "rustc 1.32.0-nightly (14997d56a 2018-12-05)")
|
||||||
"1.32.0")))
|
"1.32.0")))
|
||||||
|
|
||||||
(ert-deftest doom-modeline-env--go/parse-go-version-string ()
|
(ert-deftest doom-modeline-env--go/parse-go-version-string ()
|
||||||
(should
|
(should
|
||||||
(string= (doom-modeline-env--go "go version go1.11.4 darwin/amd64")
|
(string= (doom-modeline-env--go-parse "go version go1.11.4 darwin/amd64")
|
||||||
"1.11.4")))
|
"1.11.4")))
|
||||||
|
|
||||||
(ert-deftest doom-modeline-env--perl/parse-perl-version-string ()
|
(ert-deftest doom-modeline-env--perl/parse-perl-version-string ()
|
||||||
(should
|
(should
|
||||||
(string= (doom-modeline-env--perl
|
(string= (doom-modeline-env--perl-parse
|
||||||
"This is perl 5, version 18, subversion 2 (v5.18.2) built for darwin-thread-multi-2level
|
"This is perl 5, version 18, subversion 2 (v5.18.2) built for darwin-thread-multi-2level
|
||||||
(with 2 registered patches, see perl -V for more detail)
|
(with 2 registered patches, see perl -V for more detail)
|
||||||
|
|
||||||
|
@ -68,7 +68,7 @@ Internet, point your browser at http://www.perl.org/, the Perl Home Page.")
|
||||||
|
|
||||||
(ert-deftest doom-modeline-env--python/parse-python-version-string ()
|
(ert-deftest doom-modeline-env--python/parse-python-version-string ()
|
||||||
(should
|
(should
|
||||||
(string= (doom-modeline-env--python "Python 2.7.15")
|
(string= (doom-modeline-env--python-parse "Python 2.7.15")
|
||||||
"2.7.15")))
|
"2.7.15")))
|
||||||
|
|
||||||
;;; doom-modeline-env-test.el ends here
|
;;; doom-modeline-env-test.el ends here
|
||||||
|
|
Loading…
Reference in a new issue