2015-07-14 20:37:52 -07:00
|
|
|
/*----------------------------------------------------------------------------*/
|
2018-01-02 09:20:21 -08:00
|
|
|
/* Copyright (c) 2015-2018 FIRST. All Rights Reserved. */
|
2015-07-14 20:37:52 -07:00
|
|
|
/* Open Source Software - may be modified and shared by FRC teams. The code */
|
2016-01-02 03:02:34 -08:00
|
|
|
/* must be accompanied by the FIRST BSD license file in the root directory of */
|
|
|
|
|
/* the project. */
|
2015-07-14 20:37:52 -07:00
|
|
|
/*----------------------------------------------------------------------------*/
|
|
|
|
|
|
2017-08-18 21:35:53 -07:00
|
|
|
#include "HAL/HAL.h"
|
|
|
|
|
#include "HAL/Solenoid.h"
|
|
|
|
|
#include "gtest/gtest.h"
|
2016-09-25 16:50:13 -07:00
|
|
|
|
2017-08-18 21:35:53 -07:00
|
|
|
namespace hal {
|
|
|
|
|
TEST(HALTests, RuntimeType) {
|
|
|
|
|
EXPECT_EQ(HAL_RuntimeType::HAL_Mock, HAL_GetRuntimeType());
|
|
|
|
|
}
|
2016-11-01 22:33:12 -07:00
|
|
|
|
2017-08-18 21:35:53 -07:00
|
|
|
TEST(HALSOLENOID, SolenoidTest) {
|
|
|
|
|
int32_t status = 0;
|
|
|
|
|
HAL_InitializeSolenoidPort(0, &status);
|
|
|
|
|
EXPECT_NE(status, 0);
|
2015-07-14 20:37:52 -07:00
|
|
|
}
|
2017-08-18 21:35:53 -07:00
|
|
|
} // namespace hal
|