Sha256: bfddc7113e3ce61b6e8a5c476774fc1b0638c3af8c400e095a1663dec1f500e3

Contents?: true

Size: 1005 Bytes

Versions: 79

Compression:

Stored size: 1005 Bytes

Contents

// This file was auto-generated based on version 1.1.0 of the canonical data.

module GigasecondTest

open FsUnit.Xunit
open Xunit
open System

open Gigasecond

[<Fact>]
let ``Date only specification of time`` () =
    add (DateTime(2011, 4, 25)) |> should equal (DateTime(2043, 1, 1, 1, 46, 40))

[<Fact(Skip = "Remove to run test")>]
let ``Second test for date only specification of time`` () =
    add (DateTime(1977, 6, 13)) |> should equal (DateTime(2009, 2, 19, 1, 46, 40))

[<Fact(Skip = "Remove to run test")>]
let ``Third test for date only specification of time`` () =
    add (DateTime(1959, 7, 19)) |> should equal (DateTime(1991, 3, 27, 1, 46, 40))

[<Fact(Skip = "Remove to run test")>]
let ``Full time specified`` () =
    add (DateTime(2015, 1, 24, 22, 0, 0)) |> should equal (DateTime(2046, 10, 2, 23, 46, 40))

[<Fact(Skip = "Remove to run test")>]
let ``Full time with day roll-over`` () =
    add (DateTime(2015, 1, 24, 23, 59, 59)) |> should equal (DateTime(2046, 10, 3, 1, 46, 39))

Version data entries

79 entries across 79 versions & 1 rubygems

Version Path
trackler-2.2.1.159 tracks/fsharp/exercises/gigasecond/GigasecondTest.fs
trackler-2.2.1.158 tracks/fsharp/exercises/gigasecond/GigasecondTest.fs
trackler-2.2.1.157 tracks/fsharp/exercises/gigasecond/GigasecondTest.fs
trackler-2.2.1.156 tracks/fsharp/exercises/gigasecond/GigasecondTest.fs
trackler-2.2.1.155 tracks/fsharp/exercises/gigasecond/GigasecondTest.fs
trackler-2.2.1.154 tracks/fsharp/exercises/gigasecond/GigasecondTest.fs
trackler-2.2.1.153 tracks/fsharp/exercises/gigasecond/GigasecondTest.fs
trackler-2.2.1.152 tracks/fsharp/exercises/gigasecond/GigasecondTest.fs
trackler-2.2.1.151 tracks/fsharp/exercises/gigasecond/GigasecondTest.fs
trackler-2.2.1.150 tracks/fsharp/exercises/gigasecond/GigasecondTest.fs
trackler-2.2.1.149 tracks/fsharp/exercises/gigasecond/GigasecondTest.fs
trackler-2.2.1.148 tracks/fsharp/exercises/gigasecond/GigasecondTest.fs
trackler-2.2.1.147 tracks/fsharp/exercises/gigasecond/GigasecondTest.fs
trackler-2.2.1.146 tracks/fsharp/exercises/gigasecond/GigasecondTest.fs
trackler-2.2.1.145 tracks/fsharp/exercises/gigasecond/GigasecondTest.fs
trackler-2.2.1.144 tracks/fsharp/exercises/gigasecond/GigasecondTest.fs
trackler-2.2.1.143 tracks/fsharp/exercises/gigasecond/GigasecondTest.fs
trackler-2.2.1.142 tracks/fsharp/exercises/gigasecond/GigasecondTest.fs
trackler-2.2.1.141 tracks/fsharp/exercises/gigasecond/GigasecondTest.fs
trackler-2.2.1.140 tracks/fsharp/exercises/gigasecond/GigasecondTest.fs