deno.land / std@0.177.1 / datetime / is_leap_test.ts

is_leap_test.ts
نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.import { assert } from "../testing/asserts.ts";import { isLeap } from "./is_leap.ts";
Deno.test({ name: "[std/datetime] isLeap", fn() { assert(isLeap(1992)); assert(isLeap(2000)); assert(!isLeap(2003)); assert(!isLeap(2007)); },});
std

Version Info

Tagged at
11 months ago