e2017fc3ed35564ad1326b933c93531908eb29d0
[pdfium.git] / core / src / fxcrt / fx_extension_unittest.cpp
1 // Copyright 2015 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "testing/gtest/include/gtest/gtest.h"
6
7 #include "../../include/fxcrt/fx_ext.h"
8
9 TEST(fxcrt, HexCharToDigit) {
10   EXPECT_EQ(10, HexCharToDigit('a'));
11   EXPECT_EQ(10, HexCharToDigit('A'));
12   EXPECT_EQ(7, HexCharToDigit('7'));
13   EXPECT_EQ(0, HexCharToDigit('i'));
14 }