Skip to content

Commit

Permalink
Merge pull request #1741 from demergent-labs/prop_test_errors
Browse files Browse the repository at this point in the history
Fix misc prop test errors
  • Loading branch information
lastmjs authored Apr 12, 2024
2 parents df1cb6d + b85a80a commit e22dabf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion property_tests/arbitraries/http/headers_arb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,7 @@ export function HttpHeadersArb() {

const HeaderArb = fc.tuple(HeaderNameArb, HeaderValueArb);

return fc.uniqueArray(HeaderArb, { selector: ([name, _]) => name });
return fc.uniqueArray(HeaderArb, {
selector: ([name, _]) => name.toLowerCase()
});
}
2 changes: 2 additions & 0 deletions property_tests/arbitraries/js_function_name_arb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const rustKeywords = [
'dyn',
'else',
'enum',
'Err',
'extern',
'false',
'fn',
Expand All @@ -21,6 +22,7 @@ const rustKeywords = [
'mod',
'move',
'mut',
'Ok',
'pub',
'ref',
'return',
Expand Down

0 comments on commit e22dabf

Please sign in to comment.