Test update

This commit is contained in:
Pavel Kirienko
2014-08-21 23:22:12 +04:00
parent 4773bb10f3
commit 446577e4fb
3 changed files with 10 additions and 13 deletions
+5 -6
View File
@@ -3,18 +3,17 @@
*/
#include <gtest/gtest.h>
#include <uavcan/FigureOfMerit.hpp>
#include <uavcan/Timestamp.hpp>
/*
* Objective of this test is to make sure that the generated types are being linked correcly.
* This test requests the address of some static const member variables to make sure that there
* will be no duplicated symbol linking errors.
*/
TEST(DsdlConst1, FigureOfMerit)
TEST(DsdlConst1, Timestamp)
{
using uavcan::FigureOfMerit;
using uavcan::Timestamp;
std::cout << &FigureOfMerit::MAX << std::endl;
std::cout << &FigureOfMerit::MIN << std::endl;
std::cout << &FigureOfMerit::UNKNOWN << std::endl;
std::cout << &Timestamp::USEC_PER_LSB << std::endl;
std::cout << &Timestamp::UNKNOWN << std::endl;
}