Skip to content

Commit 286a6b9

Browse files
roblablakalzoo
authored andcommitted
Add tests for 64-bit ints and floats
1 parent 0373fdc commit 286a6b9

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
lines changed

tests/inputs/proto3_field_presence/proto3_field_presence.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,7 @@
66
"test5": {
77
"test": "Hello"
88
},
9-
"test6": "B"
9+
"test6": "B",
10+
"test7": "8589934592",
11+
"test8": 2.5
1012
}

tests/inputs/proto3_field_presence/proto3_field_presence.proto

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ message Test {
1111
optional bytes test4 = 4;
1212
optional InnerTest test5 = 5;
1313
optional TestEnum test6 = 6;
14+
optional uint64 test7 = 7;
15+
optional float test8 = 8;
1416
}
1517

1618
enum TestEnum {

tests/inputs/proto3_field_presence/proto3_field_presence_default.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,7 @@
44
"test3": null,
55
"test4": null,
66
"test5": null,
7-
"test6": null
7+
"test6": null,
8+
"test7": null,
9+
"test8": null
810
}

tests/inputs/proto3_field_presence/proto3_field_presence_missing.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,7 @@
44
"test3": "",
55
"test4": "",
66
"test5": null,
7-
"test6": "A"
7+
"test6": "A",
8+
"test7": "0",
9+
"test8": 0
810
}

0 commit comments

Comments
 (0)