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.2.1.46 tracks/dart/exercises/leap/test/leap_test.dart
trackler-2.2.1.45 tracks/dart/exercises/leap/test/leap_test.dart
trackler-2.2.1.44 tracks/dart/exercises/leap/test/leap_test.dart
trackler-2.2.1.43 tracks/dart/exercises/leap/test/leap_test.dart
trackler-2.2.1.42 tracks/dart/exercises/leap/test/leap_test.dart
trackler-2.2.1.41 tracks/dart/exercises/leap/test/leap_test.dart
trackler-2.2.1.40 tracks/dart/exercises/leap/test/leap_test.dart
trackler-2.2.1.39 tracks/dart/exercises/leap/test/leap_test.dart
trackler-2.2.1.38 tracks/dart/exercises/leap/test/leap_test.dart
trackler-2.2.1.37 tracks/dart/exercises/leap/test/leap_test.dart
trackler-2.2.1.36 tracks/dart/exercises/leap/test/leap_test.dart
trackler-2.2.1.35 tracks/dart/exercises/leap/test/leap_test.dart
trackler-2.2.1.34 tracks/dart/exercises/leap/test/leap_test.dart
trackler-2.2.1.33 tracks/dart/exercises/leap/test/leap_test.dart
trackler-2.2.1.32 tracks/dart/exercises/leap/test/leap_test.dart
trackler-2.2.1.31 tracks/dart/exercises/leap/test/leap_test.dart
trackler-2.2.1.30 tracks/dart/exercises/leap/test/leap_test.dart
trackler-2.2.1.29 tracks/dart/exercises/leap/test/leap_test.dart
trackler-2.2.1.28 tracks/dart/exercises/leap/test/leap_test.dart
trackler-2.2.1.27 tracks/dart/exercises/leap/test/leap_test.dart