mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
Unit tests: Prefer constructor to SetUp() in fixtures.
This commit is contained in:
@@ -21,7 +21,7 @@ namespace nt {
|
||||
|
||||
class WireEncoderTest : public ::testing::Test {
|
||||
protected:
|
||||
virtual void SetUp() {
|
||||
WireEncoderTest() {
|
||||
v_empty = std::make_shared<Value>();
|
||||
v_boolean = Value::MakeBoolean(true);
|
||||
v_double = Value::MakeDouble(1.0);
|
||||
|
||||
Reference in New Issue
Block a user