Files
allwpilib/wpilibc/src/test/native/cpp/JoystickTest.cpp

26 lines
688 B
C++
Raw Normal View History

// Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
#include "frc/Joystick.h" // NOLINT(build/include_order)
2021-08-05 22:04:51 -04:00
#include "JoystickTestMacros.h"
#include "frc/simulation/JoystickSim.h"
#include "gtest/gtest.h"
using namespace frc;
// https://github.com/wpilibsuite/allwpilib/issues/1550
TEST(JoystickTest, FastDeconstruction) {
Joystick joystick{0};
}
2021-08-05 22:04:51 -04:00
AXIS_TEST(Joystick, X)
AXIS_TEST(Joystick, Y)
AXIS_TEST(Joystick, Z)
AXIS_TEST(Joystick, Throttle)
AXIS_TEST(Joystick, Twist)
2021-08-05 22:04:51 -04:00
BUTTON_TEST(Joystick, Trigger)
BUTTON_TEST(Joystick, Top)