Sha256: 5afb6173935fcbdcc6236d87d2fe3543eee4d807226f46419fec547dfe2bb3b9
Contents?: true
Size: 821 Bytes
Versions: 6
Compression:
Stored size: 821 Bytes
Contents
$here = Split-Path -Parent $MyInvocation.MyCommand.Path $sut = (Split-Path -Leaf $MyInvocation.MyCommand.Path) -replace '\.tests\.', '.' . "$here\$sut" Describe "LeapYear Tests" { It "tests leap year" { Test-LeapYear(1996) | Should be $true } It "tests standard and odd year" { Test-LeapYear(1997) | Should be $false } It "tests standard even year" { Test-LeapYear(1998) | Should be $false } It "tests standard ninteenth century" { Test-LeapYear(1900) | Should be $false } It "tests standard eighteenth year" { Test-LeapYear(1800) | Should be $false } It "tests leap twenty fourth century" { Test-LeapYear(2400) | Should be $true } It "tests leap year 2000" { Test-LeapYear(2000) | Should be $true } }
Version data entries
6 entries across 6 versions & 1 rubygems