"official/projects/vit/configs/image_classification.py" did not exist on "bea8998b1974015a01e5aa0e2d80a1c6623798a7"
getIpv4Address.test.ts 353 Bytes
Newer Older
liuzhe-lz's avatar
liuzhe-lz committed
1
2
3
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

4
import assert from 'assert';
liuzhe-lz's avatar
liuzhe-lz committed
5
6
7
8
9
10
11
12
import { getIPV4Address } from '../../common/utils';

it('getIpv4Address', async () => {
    const ip1 = await getIPV4Address();
    const ip2 = await getIPV4Address();
    assert.match(ip1, /^\d+\.\d+\.\d+\.\d+$/);
    assert.equal(ip1, ip2);
});