18 lines
382 B
C++
18 lines
382 B
C++
/*
|
|
* Copyright 2014 Cloudius Systems
|
|
*/
|
|
|
|
#define BOOST_TEST_DYN_LINK
|
|
#define BOOST_TEST_MODULE core
|
|
|
|
#include <boost/test/included/unit_test.hpp>
|
|
#include "core/sstring.hh"
|
|
|
|
BOOST_AUTO_TEST_CASE(test_equality) {
|
|
BOOST_REQUIRE_EQUAL(sstring("aaa"), sstring("aaa"));
|
|
}
|
|
|
|
BOOST_AUTO_TEST_CASE(test_to_sstring) {
|
|
BOOST_REQUIRE_EQUAL(to_sstring(1234567), sstring("1234567"));
|
|
}
|