Sha256: efa19eccf56d95ea3276c7eb8ecfbc3af1fbee66f3ec125048cfde01b29172c6

Contents?: true

Size: 740 Bytes

Versions: 61

Compression:

Stored size: 740 Bytes

Contents

import "package:test/test.dart";
import "package:leap/leap.dart";

void main() {
  group("Year", () {
    test("is not very common", () {
      final year = new Year(2015);

      expect(year.isLeap(), equals(false));
    });

    test("is introduced every 4 years to adjust about a day", () {
      final year = new Year(2016);

      expect(year.isLeap(), equals(true));
    }, skip: true);

    test("is skipped every 100 years to remove an extra day", () {
      final year = new Year(2100);

      expect(year.isLeap(), equals(false));
    }, skip: true);

    test("is reintroduced every 400 years to adjust another day", () {
      final year = new Year(2000);

      expect(year.isLeap(), equals(true));
    }, skip: true);
  });
}

Version data entries

61 entries across 61 versions & 1 rubygems

Version Path
trackler-2.1.0.49 tracks/dart/exercises/leap/test/leap_test.dart