Test::S...::Number(3)
π Test::S...::Number(3) π
okay bestie, welcome to Test::Stream::Compare::Number, a page straight out of the User Contributed Perl Documentation. pull up a chair, we're comparing numbers today π
β¨ NAME β¨
Test::Stream::Compare::Number β compare 2 values as numbers π’
π¨ DEPRECATED π¨
ngl this is the part where I hold your hand. this whole distribution is deprecated π in favor of Test2, Test2::Suite, and Test2::Workflow.
want the glow-up guide? the conversion steps live in Test::Stream::Manual::ToTest2. go read that, bestie, it's the move π«Ά
πΈ DESCRIPTION πΈ
so what does this do? it's used to compare 2 numbers. that's it, that's the vibe. you can also check that 2 numbers are not the same, if you're feeling spicy β¨
Note: this will fail if the received value is undefined π it must be a number, no exceptions.
Note: this will fail if the comparison generates a non-numeric value warning β and that warning will not be shown. why? because it has to get a number, periodt. the warning stays hidden because it would report to a useless line and filename, but the test diagnostics do show both values, so you're not totally left hanging π
π₯ SOURCE π₯
the source code repository for Test::Stream lives right here, no cap:
http://github.com/Test-More/Test-Stream/
π MAINTAINERS π
- Chad Granum
<exodist@cpan.org>
π AUTHORS π
- Chad Granum
<exodist@cpan.org>
π COPYRIGHT π
Copyright 2015 Chad Granum <exodist7@gmail.com>.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See:
http://dev.perl.org/licenses/
and that's the whole page, bestie π
this version shipped as part of perl v5.42.0, dated 2025-07-25, and yeah, it's filed under Test::S...::Number(3). slay, go forth and compare responsibly π¦π
π¦ where this page comes from
- fedora 43: perl-Test-Stream 1.302027-35.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms