Skip to content

Commit

Permalink
Merge pull request #118 from vacantron/hotfix
Browse files Browse the repository at this point in the history
Fix unsorted slots in snapshots
  • Loading branch information
jserv authored Mar 18, 2024
2 parents 767780e + fb9cf10 commit 0ba28d1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/check-snapshots.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function check_snapshot() {

$SHECC --dump-ir -o $temp_exe $source &>/dev/null
dot -Tdot_json -o $temp_json CFG.dot
diff -q <(cat $ref) <(sed -E "/0x[0-9a-f]+/d" $temp_json | jq -c .)
diff -q <(cat $ref) <(sed -E "/0x[0-9a-f]+/d" $temp_json | jq -S -c .)
}

for file in tests/*.c; do
Expand Down
2 changes: 1 addition & 1 deletion tests/snapshots/fib.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion tests/snapshots/hello.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion tests/update-snapshots.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function update_snapshot() {
$SHECC --dump-ir -o $temp_exe $source &>/dev/null
dot -Tdot_json -o $temp_json CFG.dot
sed -i -E "/0x[0-9a-f]+/d" $temp_json
jq -c . $temp_json > $dest
jq -S -c . $temp_json > $dest
}

for file in tests/*.c; do
Expand Down

0 comments on commit 0ba28d1

Please sign in to comment.