10 points for alex kocharin (assuming he didn't cheat)
for the purposes of this survey it's semver.sasisfies(semverRange, semverValue)

On Fri, May 31, 2013 at 8:05 AM, dhruvbird <[email protected]> wrote:
>
>
> On Thursday, May 30, 2013 12:52:47 PM UTC-7, Dominic wrote:
>>
>> without looking in the documentation or trying it in the repl
>>
>> what do you expect to be the results of these tests on semver ranges?
>>
>> A. semver.satisfies('~1.2.3', '1.2.4')
>
>
> True, because 1.2.3 seems to be approximately 1.2.4
>
>>
>> B. semver.satisfies('~1.2', '1.3.0')
>
>
> False, since 1.3.0 is not approximately 1.2
>
>>
>> C. semver.satisfies('~1.2', '1.2.6')
>
>
> True.
>
>>
>>
>> D. semver.satisfies('1.2', '1.3.0')
>
>
> True, since I assume that 1.3.0 is 1.2.x and more.
>
>>
>>
>> E. semver.satisfies('1.2', '1.2.4')
>
>
> True again.
>
>
>>
>>
>> please don't look at the documentation, the question is:
>>
>> what do you think it means?
>
>
> ~1.2.3 probably means a version around 1.2.3 with the rev. possibly
> different. I expect only revisions >= 3 to match though.
>
>
>
>
> --
> --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "nodejs" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

-- 
-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to