Skip to content

Commit cb0fa76

Browse files
committed
Soundness
1 parent 12d60ad commit cb0fa76

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Tests/StructuredFieldValuesTests/StructuredFieldParserTests.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,9 @@ final class StructuredFieldParserTests: XCTestCase {
9696

9797
private func _validateInnerList(_ innerList: InnerList, against schema: JSONSchema, fixtureName: String) throws {
9898
guard case .array(let arrayElements) = schema,
99-
arrayElements.count == 2,
100-
case .some(.array(let expectedItems)) = arrayElements.first,
101-
let expectedParameters = arrayElements.last
99+
arrayElements.count == 2,
100+
case .some(.array(let expectedItems)) = arrayElements.first,
101+
let expectedParameters = arrayElements.last
102102
else {
103103
XCTFail("\(fixtureName): Unexpected inner list: got \(innerList), expected \(schema)")
104104
return

scripts/soundness.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ set -eu
1717
here="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
1818
function replace_acceptable_years() {
1919
# this needs to replace all acceptable forms with 'YEARS'
20-
sed -e 's/2020-2021/YEARS/' -e 's/202[01]/YEARS/'
20+
sed -e 's/2020-2022/YEARS/' -e 's/202[012]/YEARS/'
2121
}
2222

2323

0 commit comments

Comments
 (0)