| 1 |
RUN: apinotes-test %S/Inputs/Frameworks/Simple.framework/Headers/Simple.apinotes > %t.result |
| 2 |
RUN: not diff -u %S/Inputs/Frameworks/Simple.framework/Headers/Simple.apinotes %t.result | \ |
| 3 |
RUN: tail -n +5 | \ |
| 4 |
RUN: FileCheck %s --implicit-check-not="{{^\+}}" --implicit-check-not="{{^\-}}" |
| 5 |
|
| 6 |
We expect only the nullability to be different as it is canonicalized during the |
| 7 |
roudtrip. |
| 8 |
|
| 9 |
CHECK: - Nullability: N |
| 10 |
CHECK-NEXT: + Nullability: Nonnull |
| 11 |
CHECK: - Nullability: O |
| 12 |
CHECK-NEXT: + Nullability: Optional |
| 13 |
CHECK: - Nullability: U |
| 14 |
CHECK-NEXT: + Nullability: Unspecified |
| 15 |
CHECK: - Nullability: S |
| 16 |
CHECK-NEXT: + Nullability: Unspecified |
| 17 |
CHECK: - Nullability: Scalar |
| 18 |
CHECK-NEXT: + Nullability: Unspecified |
| 19 |
|
| 20 |
# The roundtrip will add document markers. It is hard to remove the last line of the |
| 21 |
# file in a cross-platform manner, so just assert it here to avoid a test failure due |
| 22 |
# to the implicit check not. |
| 23 |
# CHECK: + |