Skip to content

Commit 958ff9a

Browse files
committed
Fix test logic
1 parent ae75755 commit 958ff9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test_to_chars.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ void test_error_value(const char* input, chars_format format, int precision = -1
8080
template <typename T>
8181
void test_non_finite_values()
8282
{
83-
std::uniform_real_distribution<float> dist(-1.0, 1.0);
83+
std::uniform_real_distribution<float> dist(0.0f, 1.0f);
8484

8585
const auto formats = {chars_format::fixed, chars_format::scientific, chars_format::general, chars_format::hex};
8686

0 commit comments

Comments
 (0)