blob: b387c14e822ed0f55e5015c84913a422c48dacbe [file] [log] [blame]
/*----------------------------------------------------------------------------*/
/* 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