Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(132)

Side by Side Diff: core/src/fxcrt/fx_extension_unittest.cpp

Issue 1405253007: Revert "Revert "Cleanup some numeric code."" (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Fix mac build Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698