| 39 | } |
| 40 | |
| 41 | TEST(formatable, str) { |
| 42 | JSONFormattable f; |
| 43 | get_jf("{ \"foo\": \"bar\" }", &f); |
| 44 | ASSERT_EQ((string)f["foo"], "bar"); |
| 45 | ASSERT_EQ((string)f["fooz"], ""); |
| 46 | ASSERT_EQ((string)f["fooz"]("lala"), "lala"); |
| 47 | } |
| 48 | |
| 49 | TEST(formatable, str2) { |
| 50 | JSONFormattable f; |
nothing calls this directly
no test coverage detected