We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Repro:
// SPDX-License-Identifier: MIT pragma solidity ^0.8.17; import {stdJson} from "forge-std/StdJson.sol"; import "forge-std/Test.sol"; contract JsonTest is Test { function testEscapedQuotes() public { string memory json = '{"foo":"quotation mark: \'\\"\' and backslash: \\\\"}'; assertEq(stdJson.readString(json, ".foo"), 'quotation mark: \'"\' and backslash: \\'); } }
The test passes with b4f1215 but fails with f8e700e
[FAIL. Reason: Assertion failed.] testEscapedQuotes() (gas: 19525) Logs: Error: a == b not satisfied [string] Expected: quotation mark: '"' and backslash: \ Actual: quotation mark: '\' and backslash: \\
The text was updated successfully, but these errors were encountered:
Tracking in foundry-rs/foundry#3801, cc @odyslam
Sorry, something went wrong.
No branches or pull requests
Repro:
The test passes with b4f1215 but fails with f8e700e
The text was updated successfully, but these errors were encountered: