text stringlengths 0 2.2M |
|---|
#include "VirtualDevice.h"
|
IMPLEMENT_CLASS_INFO(VirtualDevice)
|
VirtualDevice::VirtualDevice(const kstl::string& name,CLASS_NAME_TREE_ARG) : InputDevice(name,PASS_CLASS_NAME_TREE_ARG)
|
{
|
}
|
VirtualDevice::~VirtualDevice()
|
{
|
}
|
void VirtualDevice::UpdateDevice()
|
{
|
}
|
/*
|
This file is part of the MiLi Minimalistic Library.
|
Copyright (C) Hugo Arregui, FuDePAN 2011
|
Distributed under the Boost Software License, Version 1.0.
|
(See accompanying file LICENSE_1_0.txt in the root directory or
|
copy at http://www.boost.org/LICENSE_1_0.txt)
|
MiLi IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
|
SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
|
FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
|
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
DEALINGS IN THE SOFTWARE.
|
This is a test file.
|
*/
|
#include "google/gtest/gtest.h"
|
#include "google/gmock/gmock.h"
|
#include "mili/mili.h"
|
using namespace mili;
|
TEST(ArithUtilsTest, bchain)
|
{
|
ASSERT_TRUE(bchain(1) < 2 < 3);
|
int x(10);
|
ASSERT_EQ(x, (5 >= bchain(4) < 10));
|
}
|
TEST(ArithUtilsTest, power)
|
{
|
ASSERT_EQ(4, power<2>(2));
|
}
|
TEST(ArithUtilsTest, power_negative_base)
|
{
|
ASSERT_EQ(.25, power < -2 > (2));
|
}
|
TEST(ArithUtilsTest, cubic_root)
|
{
|
ASSERT_EQ(3, cubic_root(27));
|
}
|
TEST(ArithUtilsTest, in_range)
|
{
|
ASSERT_FALSE(in_range(3.141692f, 10.0f, 11.0f));
|
}
|
TEST(ArithUtilsTest, implies)
|
{
|
ASSERT_TRUE(implies(true, true));
|
ASSERT_FALSE(implies(true, false));
|
ASSERT_TRUE(implies(false, true));
|
ASSERT_TRUE(implies(false, false));
|
}
|
TEST(ArithUtilsTest, is_lossless_sum)
|
{
|
ASSERT_FALSE(is_lossless_sum_bigsmall(1e80, 0.0001));
|
ASSERT_FALSE(is_lossless_sum(1e80, 0.0001));
|
ASSERT_FALSE(is_lossless_sum(0.0001, 1e80));
|
}
|
/*
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
*
|
* This source code is licensed under the MIT-style license found in the
|
* LICENSE file in the root directory of this source tree.
|
*/
|
#include "flashlight/lib/audio/feature/Derivatives.h"
|
#include <cstddef>
|
#include <stdexcept>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.