blob: 5071c73d32facadf8bc232cf4e4531fb81d6a803 [file] [log] [blame]
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "platform/wtf/text/IntegerToStringConversion.h"
#include "platform/wtf/text/StringView.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace WTF {
TEST(IntegerToStringConversionTest, SimpleIntConversion) {
const IntegerToStringConverter<int> conv(100500);
EXPECT_EQ(StringView(conv.Characters8(), conv.length()),
StringView("100500"));
}
} // namespace WTF