mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-12 01:23:52 +00:00
add test for util.hex
This commit is contained in:
committed by
David Lechner
parent
5da915851c
commit
59c14a3ad7
@@ -0,0 +1,10 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
// Copyright (c) 2020 The Pybricks Authors
|
||||
|
||||
import { hex } from '.';
|
||||
|
||||
test('hex', () => {
|
||||
expect(hex(0, 2)).toBe('0x00');
|
||||
expect(hex(1, 4)).toBe('0x0001');
|
||||
expect(hex(2, 8)).toBe('0x00000002');
|
||||
});
|
||||
Reference in New Issue
Block a user