deno.land / std@0.166.0 / semver / minor_test.ts

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Copyright Isaac Z. Schlueter and Contributors. All rights reserved. ISC license.// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.import { assertEquals } from "../testing/asserts.ts";import * as semver from "./mod.ts";
Deno.test("minor", function () { // [range, version] // Version should be detectable despite extra characters const versions: [string, number][] = [ ["1.1.3", 1], [" 1.1.3 ", 1], [" 1.2.3-4 ", 2], [" 1.3.3-pre ", 3], ["v1.5.3", 5], [" v1.8.3 ", 8], ["\t1.13.3", 13], ];
versions.forEach(function (tuple) { const range = tuple[0]; const version = tuple[1]; const msg = `minor(${range}) = ${version}`; assertEquals(semver.minor(range), version, msg); });});
std
Deno standard library
GitHub Repositorydenoland/deno_std
GitHub Stars
2458

Version Info

Tagged at
2 months ago