fmt/test
Orivej Desh b66bb6b71f Fix undefined in core-test and printf-test (#1345)
* Fix undefined in core-test

Fixes "reference binding to null pointer" in BufferTest.Ctor

buffer.operator[] attempts to return a reference to `buffer.ptr_[0]` when `ptr_`
in `mock_buffer<int> buffer` is null.

* Fix undefined in printf-test

Fixes "signed integer overflow" in PrintfTest.Length

This occurs in `TestLength<long long>("ll")`, since its minimum value minus one
does not fit in long long.

* Fix undefined in printf %0$

Printf counts arguments from 1.

Fixes "shift exponent -4 is negative" in PrintfTest.InvalidArgIndex.

`do_get` is called with index -1 when `basic_printf_context.arg` is called with
id 4294967295 when basic_printf_context::get_arg subtracts 1 from arg_index 0 in
the format string "%0$d".
2019-10-08 06:28:39 -07:00
..
add-subdirectory-test
compile-error-test prepare -> compile 2019-07-25 19:39:41 +03:00
cuda-test Making CUDA test work with CMAKE_MSVC_RUNTIME_LIBRARY 2019-09-25 06:46:11 -07:00
find-package-test
fuzzing Apply clang format and other minor formatting tweaks 2019-06-30 08:52:15 -07:00
gmock
gtest
assert-test.cc Fix EXPECT_DEBUG_DEATH_IF_SUPPORTED (#1214) 2019-07-04 07:55:36 -07:00
chrono-test.cc add oss-fuzz support 2019-06-30 06:10:07 -07:00
CMakeLists.txt Making CUDA test work with CMAKE_MSVC_RUNTIME_LIBRARY 2019-09-25 06:46:11 -07:00
color-test.cc Fix format overload that takes text_style (#1305) 2019-09-08 18:41:02 -07:00
compile-test.cc add test for multiple compilation types 2019-09-24 06:25:21 -07:00
core-test.cc Fix undefined in core-test and printf-test (#1345) 2019-10-08 06:28:39 -07:00
custom-formatter-test.cc Make buffer_range public and update custom formatting docs (#1281) 2019-08-28 06:50:20 -07:00
format Remove unused code and refactor 2019-09-01 13:08:53 -07:00
format-impl-test.cc Implement more bigint operations 2019-10-06 12:49:23 -07:00
format-test.cc Add max_value 2019-09-08 09:21:30 -07:00
gmock-gtest-all.cc Format the code using clang-format 2019-01-13 06:58:20 -08:00
grisu-test.cc Fix small number rounding with fixed precision in grisu 2019-07-04 07:11:40 -07:00
gtest-extra-test.cc FMT_EXPLICIT -> explicit, FMT_NULL -> nullptr 2019-05-30 07:42:36 -07:00
gtest-extra.cc Format the code using clang-format 2019-01-13 06:58:20 -08:00
gtest-extra.h FMT_EXPLICIT -> explicit, FMT_NULL -> nullptr 2019-05-30 07:42:36 -07:00
header-only-test2.cc
header-only-test.cc
locale-test.cc Workaround a broken C locale on Windows 2019-07-25 12:55:23 +03:00
mock-allocator.h Cleanup 2019-06-15 09:44:51 -07:00
ostream-test.cc Disable integral operator<< (#1316) 2019-09-23 20:34:08 -07:00
posix-mock-test.cc typedef -> using 2019-07-07 17:14:26 -07:00
posix-mock.h Format the code using clang-format 2019-01-13 06:58:20 -08:00
posix-test.cc Remove redundant and nonportable test (#1313) 2019-09-23 13:36:12 -07:00
printf-test.cc Fix undefined in core-test and printf-test (#1345) 2019-10-08 06:28:39 -07:00
ranges-test.cc Fix ambiguity for types with dodgy conversions 2019-09-28 11:35:20 -07:00
scan-test.cc Add preliminary user-defined type support 2019-06-08 09:04:46 -07:00
scan.h Fix a warning 2019-08-11 11:38:16 -07:00
std-format-test.cc Make numeric alignment optional 2019-09-06 09:43:53 -07:00
test-assert.h Format the code using clang-format 2019-01-13 06:58:20 -08:00
test-main.cc Format the code using clang-format 2019-01-13 06:58:20 -08:00
util.cc Format the code using clang-format 2019-01-13 06:58:20 -08:00
util.h FMT_EXPLICIT -> explicit, FMT_NULL -> nullptr 2019-05-30 07:42:36 -07:00