Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2014 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 "core/include/fxcrt/fx_system.h" | |
| 6 #include "testing/gtest/include/gtest/gtest.h" | |
| 7 | |
|
Tom Sepez
2016/03/02 20:56:38
note: might be fun to cover the other FXYS_*toi()
dsinclair
2016/03/02 21:27:29
Done.
| |
| 8 TEST(fxcrt, FXSYS_atoui) { | |
| 9 EXPECT_EQ(0, FXSYS_atoui("0")); | |
| 10 EXPECT_EQ(2345, FXSYS_atoui("2345")); | |
| 11 EXPECT_EQ(4294967295, FXSYS_atoui("4294967295")); | |
| 12 EXPECT_EQ(4294967295, FXSYS_atoui("-1")); | |
| 13 } | |
| OLD | NEW |