Changeset View
Changeset View
Standalone View
Standalone View
source/ps/tests/test_fmt.h
Show All 11 Lines | |||||
* GNU General Public License for more details. | * GNU General Public License for more details. | ||||
* | * | ||||
* You should have received a copy of the GNU General Public License | * You should have received a copy of the GNU General Public License | ||||
* along with 0 A.D. If not, see <http://www.gnu.org/licenses/>. | * along with 0 A.D. If not, see <http://www.gnu.org/licenses/>. | ||||
*/ | */ | ||||
#include "lib/self_test.h" | #include "lib/self_test.h" | ||||
#include "third_party/cppformat/format.h" | #include "third_party/fmt/format.h" | ||||
Itms: This line must be updated ? | |||||
class TestCppformat : public CxxTest::TestSuite | class TestFmt : public CxxTest::TestSuite | ||||
{ | { | ||||
public: | public: | ||||
void test_basic() | void test_basic() | ||||
{ | { | ||||
// Make test behave independent of current host locale | // Make test behave independent of current host locale | ||||
char* old = setlocale(LC_ALL, "en_US.UTF-8"); | char* old = setlocale(LC_ALL, "en_US.UTF-8"); | ||||
TS_ASSERT_EQUALS(fmt::sprintf("abc"), "abc"); | TS_ASSERT_EQUALS(fmt::sprintf("abc"), "abc"); | ||||
Show All 33 Lines |
Wildfire Games · Phabricator
This line must be updated ?