Skip to content

Commit d9e2a4f

Browse files
m
1 parent 0d54190 commit d9e2a4f

File tree

1 file changed

+13
-14
lines changed

1 file changed

+13
-14
lines changed

TestVectors/dafny/DDBEncryption/src/WriteManifest.dfy

+13-14
Original file line numberDiff line numberDiff line change
@@ -218,21 +218,20 @@ module {:options "-functionSyntax:4"} WriteManifest {
218218
const DoNothing : CryptoAction := 3
219219

220220
const A : string := "A"
221-
const B : string := "\ud000" // Ud000"
222-
const C : string := "\ufe4c" // Ufe4c"
223-
const D : string := "\u100001" // U10001
224-
const E : string := "\u100002" // U10002 - same high surrogate as D
225-
const F : string := "\u200002" // U20002 - different high surrogate as D
221+
const B : string := "퀀" // Ud000"
222+
const C : string := "" // Ufe4c"
223+
const D : string := "𐀁" // U10001
224+
const E : string := "𐀂" // U10002 - same high surrogate as D
225+
const F : string := "𠀂" // U20002 - different high surrogate as D
226226

227-
// Dafny doesn't handle unicode surrogates correctly.
228-
// lemma CheckLengths()
229-
// ensures |A| == 1
230-
// ensures |B| == 1
231-
// ensures |C| == 1
232-
// ensures |D| == 2
233-
// ensures |E| == 2
234-
// ensures |F| == 2
235-
// {}
227+
lemma CheckLengths()
228+
ensures |A| == 1
229+
ensures |B| == 1
230+
ensures |C| == 1
231+
ensures |D| == 2
232+
ensures |E| == 2
233+
ensures |F| == 2
234+
{}
236235

237236
// Let's make attribute names with complex characters.
238237
// It shouldn't matter, but let's make sure

0 commit comments

Comments
 (0)