Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add tests for empty string Version
  • Loading branch information
lizmat committed Nov 4, 2014
1 parent 0277bfb commit c3c8571
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion S02-literals/version.t
@@ -1,6 +1,6 @@
use v6;
use Test;
plan 28;
plan 30;

is v1.2.3, '1.2.3', 'version literal stringification';
is v1.2.3+, '1.2.3+', 'version literal stringification';
Expand Down Expand Up @@ -31,3 +31,6 @@ is v1.2 cmp v1.10, Less, "cmp isn't Stringy-based";
ok v1.2 eqv v1.2.0, 'trailing zeroes are equivalent';
ok v1.2.0 eqv v1.2, 'trailing zeroes are equivalent';
ok v1.2.0 eqv v1.2.0.0.0.0.0, 'trailing zeroes are equivalent';

is Version.new(""), '', "can we handle empty string versions";
is Version.new("").gist, 'v', "can we handle empty string versions";

0 comments on commit c3c8571

Please sign in to comment.