This commit is contained in:
David Lechner
2020-05-22 19:54:48 -05:00
committed by David Lechner
parent 2a0cba80b8
commit dd9d789e9a
51 changed files with 171 additions and 0 deletions
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2020 The Pybricks Authors
/**
* Asserts that an assumption is true. This is used to detect programmer errors
* and should never actually throw in a correctly written program.
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2020 The Pybricks Authors
import { count, createCountFunc } from './iter';
test('count', () => {
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2020 The Pybricks Authors
/**
* Creates an iterator that counts infinitely (to Number.MAX_SAFE_INTEGER really)
* starting from 0.
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2020 The Pybricks Authors
import { fmod, sumComplement32 } from './math';
describe('fmod', () => {
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2020 The Pybricks Authors
/**
* Compute modulo using floored division
* @param a first operand
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2020 The Pybricks Authors
import { polyfillBluetoothRemoteGATTCharacteristic } from './web-bluetooth';
describe('polyfillBluetoothRemoteGATTCharacteristic', () => {
+3
View File
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2020 The Pybricks Authors
/**
* Current definition of BluetoothRemoteGATTCharacteristic doesn't include
* new Web Bluetooth APIs.