mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
The old headers were moved into folders because doing so avoids polluting the system include directories. Folder names were also normalized to lowercase.
23 lines
815 B
C++
23 lines
815 B
C++
/*----------------------------------------------------------------------------*/
|
|
/* Copyright (c) 2015-2018 FIRST. All Rights Reserved. */
|
|
/* Open Source Software - may be modified and shared by FRC teams. The code */
|
|
/* must be accompanied by the FIRST BSD license file in the root directory of */
|
|
/* the project. */
|
|
/*----------------------------------------------------------------------------*/
|
|
|
|
#include "gtest/gtest.h"
|
|
#include "hal/HAL.h"
|
|
#include "hal/Solenoid.h"
|
|
|
|
namespace hal {
|
|
TEST(HALTests, RuntimeType) {
|
|
EXPECT_EQ(HAL_RuntimeType::HAL_Mock, HAL_GetRuntimeType());
|
|
}
|
|
|
|
TEST(HALSOLENOID, SolenoidTest) {
|
|
int32_t status = 0;
|
|
HAL_InitializeSolenoidPort(0, &status);
|
|
EXPECT_NE(status, 0);
|
|
}
|
|
} // namespace hal
|