forked from wpilibsuite/allwpilib
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make hex string conversion constexpr and add test stubs
- Loading branch information
Showing
8 changed files
with
129 additions
and
32 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// 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 <gtest/gtest.h> | ||
|
||
#include "frc/util/Color8Bit.h" | ||
|
||
TEST(Color8BitTest, ConstructDefault) {} | ||
|
||
TEST(Color8BitTest, ConstructFromInts) {} | ||
|
||
TEST(Color8BitTest, ConstructFromColor) {} | ||
|
||
TEST(Color8BitTest, ImplicitConversionToColor) {} | ||
|
||
TEST(Color8BitTest, FromHexString) {} | ||
|
||
TEST(Color8BitTest, HexString) {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// 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 <gtest/gtest.h> | ||
|
||
#include "frc/util/Color.h" | ||
|
||
TEST(ColorTest, ConstructDefault) {} | ||
|
||
TEST(ColorTest, ConstructFromDoubles) {} | ||
|
||
TEST(ColorTest, ConstructFromInts) {} | ||
|
||
TEST(ColorTest, FromHSV) {} | ||
|
||
TEST(ColorTest, FromHexString) {} | ||
|
||
TEST(ColorTest, HexString) {} |
24 changes: 24 additions & 0 deletions
24
wpilibj/src/test/java/edu/wpi/first/wpilibj/util/Color8BitTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// 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. | ||
|
||
package edu.wpi.first.wpilibj; | ||
|
||
import org.junit.jupiter.api.Test; | ||
|
||
class Color8BitTest { | ||
@Test | ||
void testConstructDefault() {} | ||
|
||
@Test | ||
void testConstructFromInts() {} | ||
|
||
@Test | ||
void testConstructFromColor() {} | ||
|
||
@Test | ||
void testFromHexString() {} | ||
|
||
@Test | ||
void testHexString() {} | ||
} |
27 changes: 27 additions & 0 deletions
27
wpilibj/src/test/java/edu/wpi/first/wpilibj/util/ColorTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// 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. | ||
|
||
package edu.wpi.first.wpilibj; | ||
|
||
import org.junit.jupiter.api.Test; | ||
|
||
class ColorTest { | ||
@Test | ||
void testConstructDefault() {} | ||
|
||
@Test | ||
void testConstructFromDoubles() {} | ||
|
||
@Test | ||
void testConstructFromInts() {} | ||
|
||
@Test | ||
void testFromHSV() {} | ||
|
||
@Test | ||
void testFromHexString() {} | ||
|
||
@Test | ||
void testHexString() {} | ||
} |