(t *testing.T)
| 65 | } |
| 66 | |
| 67 | func TestEmoji(t *testing.T) { |
| 68 | const input = `{"utf8":"Example emoji, KO: \ud83d\udd13, \ud83c\udfc3 ` + |
| 69 | `OK: \u2764\ufe0f "}` |
| 70 | value := Get(input, "utf8") |
| 71 | var s string |
| 72 | json.Unmarshal([]byte(value.Raw), &s) |
| 73 | if value.String() != s { |
| 74 | t.Fatalf("expected '%v', got '%v'", s, value.String()) |
| 75 | } |
| 76 | } |
| 77 | |
| 78 | func testEscapePath(t *testing.T, json, path, expect string) { |
| 79 | if Get(json, path).String() != expect { |