Brian Silverman | 8fce748 | 2020-01-05 13:18:21 -0800 | [diff] [blame] | 1 | /*----------------------------------------------------------------------------*/ |
| 2 | /* Copyright (c) 2015-2018 FIRST. All Rights Reserved. */ |
| 3 | /* Open Source Software - may be modified and shared by FRC teams. The code */ |
| 4 | /* must be accompanied by the FIRST BSD license file in the root directory of */ |
| 5 | /* the project. */ |
| 6 | /*----------------------------------------------------------------------------*/ |
| 7 | |
| 8 | #include "gtest/gtest.h" |
| 9 | #include "hal/HAL.h" |
| 10 | #include "hal/Solenoid.h" |
| 11 | |
| 12 | namespace hal { |
| 13 | TEST(HALTests, RuntimeType) { |
| 14 | EXPECT_EQ(HAL_RuntimeType::HAL_Mock, HAL_GetRuntimeType()); |
| 15 | } |
| 16 | |
| 17 | TEST(HALSOLENOID, SolenoidTest) { |
| 18 | int32_t status = 0; |
| 19 | HAL_InitializeSolenoidPort(0, &status); |
| 20 | EXPECT_NE(status, 0); |
| 21 | } |
| 22 | } // namespace hal |