Skip to content

Commit 0d5e40d

Browse files
authored
Add additionally repeated map key test for heterogeneous equality (#315)
Signed-off-by: Justin King <[email protected]>
1 parent bccaaa1 commit 0d5e40d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/simple/testdata/fields.textproto

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,16 @@ section {
415415
## Current behavior:
416416
## value: { int64_value: 1 }
417417
}
418+
test {
419+
name: "map_value_repeat_key_heterogeneous"
420+
description: "map should not support repeated key."
421+
expr: "{0: 1, 0u: 2}[0.0]"
422+
eval_error: {
423+
errors: { message: "Failed with repeated key" }
424+
}
425+
## Current behavior:
426+
## value: { int64_value: 1 }
427+
}
418428
}
419429
section {
420430
name: "in"

0 commit comments

Comments
 (0)