blob: b387c14e822ed0f55e5015c84913a422c48dacbe [file] [log] [blame]
Brian Silverman8fce7482020-01-05 13:18:21 -08001/*----------------------------------------------------------------------------*/
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
12namespace hal {
13TEST(HALTests, RuntimeType) {
14 EXPECT_EQ(HAL_RuntimeType::HAL_Mock, HAL_GetRuntimeType());
15}
16
17TEST(HALSOLENOID, SolenoidTest) {
18 int32_t status = 0;
19 HAL_InitializeSolenoidPort(0, &status);
20 EXPECT_NE(status, 0);
21}
22} // namespace hal