Skip to content

Commit

Permalink
cargo fmt and pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
kgutwin committed Jul 5, 2024
1 parent 1fd782d commit 0cedb64
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
**Features**:

- Added `prqlc debug json-schema` command to auto-generate JSON Schema
representations of commonly exposed IR types such as PL and RQ.
(@kgutwin, #4698)
representations of commonly exposed IR types such as PL and RQ. (@kgutwin,
#4698)

**Fixes**:

Expand Down
8 changes: 5 additions & 3 deletions prqlc/prqlc/tests/integration/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,6 @@ fn debug() {
.stderr(std::process::Stdio::null())
.status()
.unwrap();

}

// The output of `prqlc debug json-schema` is long, so rather than
Expand All @@ -543,7 +542,7 @@ fn debug() {
#[test]
fn debug_json_schema() {
use serde_json::Value;

let output = prqlc_command()
.args(["debug", "json-schema", "--ir-type", "pl"])
.output()
Expand All @@ -554,7 +553,10 @@ fn debug_json_schema() {
let stdout = std::str::from_utf8(&output.stdout).unwrap();
let parsed: Value = serde_json::from_str(stdout).unwrap();

assert_eq!(parsed["$schema"], "https://json-schema.org/draft/2020-12/schema");
assert_eq!(
parsed["$schema"],
"https://json-schema.org/draft/2020-12/schema"
);
assert_eq!(parsed["type"], "object");
assert_eq!(parsed["title"], "ModuleDef");
}
Expand Down

0 comments on commit 0cedb64

Please sign in to comment.