Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tests/simple/testdata/network_ext.textproto
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ section {
name: "parse_ipv4"
description: "Successfully parse a standard IPv4 address"
expr: "string(ip('192.168.0.1'))"
value: { string_value: "192.168.0.1" }
value: { string_value: "192.168.0.1" }
}
test {
name: "parse_invalid_ipv4"
Expand Down Expand Up @@ -320,7 +320,7 @@ section {
name: "cidr_does_not_contain_ip_ipv4_string"
expr: "cidr('192.168.0.0/24').containsIP('192.168.1.1')"
value: { bool_value: false }
}
}
test {
name: "cidr_contains_cidr_ipv4_object"
expr: "cidr('192.168.0.0/24').containsCIDR(cidr('192.168.0.0/25'))"
Expand Down
6 changes: 5 additions & 1 deletion tests/simple/testdata/parse.textproto
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ section {
name: "map_literal"
description: "Primary = '{' [MapInits] '}'. Map literals with up to 32 entries."
expr: "{0: 'zero', 1: 'one', 2: 'two', 3: 'three', 4: 'four', 5: 'five', 6: 'six', 7: 'seven', 8: 'eight', 9: 'nine', 10: 'ten', 11: 'eleven', 12: 'twelve', 13: 'thirteen', 14: 'fourteen', 15: 'fifteen', 16: 'sixteen', 17: 'seventeen', 18: 'eighteen', 19: 'nineteen', 20: 'twenty', 21: 'twenty-one', 22: 'twenty-two', 23: 'twenty-three', 24: 'twenty-four', 25: 'twenty-five', 26: 'twenty-six', 27: 'twenty-seven', 28: 'twenty-eight', 29: 'twenty-nine', 30: 'thirty', 31: 'thirty-one'}[17]"
value { string_value: 'seventeen' }
value { string_value: "seventeen" }
}
test {
name: "message_literal"
Expand All @@ -130,6 +130,8 @@ section {
value { int64_value: 30 }
}
}

# txtpbfmt: off
section {
name: "string_literals"
description: "Check that string literals are properly parsed"
Expand Down Expand Up @@ -944,6 +946,8 @@ section {
value: { bytes_value: " \\\\ \\? \\\" \\\' \\` \\a \\b \\f \\t \\v \\n \\r \\000 \\x00 \\X00 \\u0000 \\U00000000 " }
}
}
# txtpbfmt: on

section {
name: "whitespace"
description: "Check that whitespace is ignored by the grammar."
Expand Down
Loading