Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[version.t] wildcards and smart-matching
  • Loading branch information
moritz committed May 12, 2012
1 parent 8ee4713 commit 29b5ad1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions S02-literals/version.t
Expand Up @@ -16,6 +16,9 @@ ok v1.2 ~~ v1.2.0, 'smart-matching treats trailing 0 correctly (right)';
ok v1.2 ~~ v1.0+, 'smart-matching and plus (+1)';
ok v1.2 ~~ v1.2+, 'smart-matching and plus (+2)';
ok v5 ~~ v1.2+, '+ scopes to the whole version, not just the last chunk';
ok v5.2.3 ~~ v5.2.*, '* wildcard (1+)';
ok v5.2 ~~ v5.2.*, '* wildcard (2+)';
ok v5.2.3 ~~ v5.3.*, '* wildcard (-)';
nok v1.2 ~~ v1.3+, 'smart-matching and plus (-)';
ok v1.2.3 ~~ v1, 'smart-matching only cares about the length of the LHS';
nok v1.2.3 ~~ v2, '... but it can still fail';
Expand Down

0 comments on commit 29b5ad1

Please sign in to comment.