Skip to content

Commit 4f40f4a

Browse files
Fix map iteration expectations and trim ending whitespace (#350)
1 parent 91f3cb1 commit 4f40f4a

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

tests/simple/testdata/macros.textproto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ section {
205205
}
206206
test {
207207
name: "map_extract_keys"
208-
expr: "{'John': 'smart', 'Paul': 'cute', 'George': 'quiet', 'Ringo': 'funny'}.map(key, key) == ['John', 'Paul', 'George', 'Ringo']"
208+
expr: "{'John': 'smart'}.map(key, key) == ['John']"
209209
value: { bool_value: true }
210210
}
211211
}

tests/simple/testdata/math_ext.textproto

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -985,7 +985,7 @@ section: {
985985
value: {
986986
int64_value: 0
987987
}
988-
}
988+
}
989989
test: {
990990
name: "int_int_intersect"
991991
expr: "math.bitAnd(1, 3)"
@@ -1006,7 +1006,7 @@ section: {
10061006
value: {
10071007
uint64_value: 0
10081008
}
1009-
}
1009+
}
10101010
test: {
10111011
name: "uint_uint_intersect"
10121012
expr: "math.bitAnd(1u, 3u)"
@@ -1033,21 +1033,21 @@ section: {
10331033
value: {
10341034
int64_value: 3
10351035
}
1036-
}
1036+
}
10371037
test: {
10381038
name: "int_int_positive_negative"
10391039
expr: "math.bitOr(4, -2)"
10401040
value: {
10411041
int64_value: -2
10421042
}
1043-
}
1043+
}
10441044
test: {
10451045
name: "uint_uint"
10461046
expr: "math.bitOr(1u, 4u)"
10471047
value: {
10481048
uint64_value: 5
10491049
}
1050-
}
1050+
}
10511051
test: {
10521052
name: "dyn_int_error"
10531053
expr: "math.bitOr(dyn(1.2), 1)"
@@ -1067,21 +1067,21 @@ section: {
10671067
value: {
10681068
int64_value: 2
10691069
}
1070-
}
1070+
}
10711071
test: {
10721072
name: "int_int_positive_negative"
10731073
expr: "math.bitXor(4, -2)"
10741074
value: {
10751075
int64_value: -6
10761076
}
1077-
}
1077+
}
10781078
test: {
10791079
name: "uint_uint"
10801080
expr: "math.bitXor(1u, 3u)"
10811081
value: {
10821082
uint64_value: 2
10831083
}
1084-
}
1084+
}
10851085
test: {
10861086
name: "dyn_dyn_error"
10871087
expr: "math.bitXor(dyn([]), dyn([1]))"
@@ -1101,14 +1101,14 @@ section: {
11011101
value: {
11021102
int64_value: -2
11031103
}
1104-
}
1104+
}
11051105
test: {
11061106
name: "int_negative"
11071107
expr: "math.bitNot(-1)"
11081108
value: {
11091109
int64_value: 0
11101110
}
1111-
}
1111+
}
11121112
test: {
11131113
name: "int_zero"
11141114
expr: "math.bitNot(0)"
@@ -1122,14 +1122,14 @@ section: {
11221122
value: {
11231123
uint64_value: 18446744073709551614
11241124
}
1125-
}
1125+
}
11261126
test: {
11271127
name: "uint_zero"
11281128
expr: "math.bitNot(0u)"
11291129
value: {
11301130
uint64_value: 18446744073709551615
11311131
}
1132-
}
1132+
}
11331133
test: {
11341134
name: "dyn_error"
11351135
expr: "math.bitNot(dyn(''))"

0 commit comments

Comments
 (0)