Creates a fact with the given key and value, which will be printed in a format like "key: value." The value is converted to a string by calling String.valueOf on it.
(String key, @Nullable Object value)
| 47 | * value." The value is converted to a string by calling {@code String.valueOf} on it. |
| 48 | */ |
| 49 | public static Fact fact(String key, @Nullable Object value) { |
| 50 | return new Fact(key, stringValueForFailure(value), /* padStart= */ false); |
| 51 | } |
| 52 | |
| 53 | /** |
| 54 | * Creates a fact with no value, which will be printed in the format "key" (with no colon or |