Skip to content

Commit

Permalink
We want to test map_type, not map_field? here
Browse files Browse the repository at this point in the history
  • Loading branch information
davebenvenuti committed Jan 31, 2025
1 parent 3b111ab commit ec488bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/codegen/field_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def test_map_type
assert_kind_of(CodeGen::Field, map_type.value)
assert_equal(:TYPE_INT32, map_type.value.type)

refute(fields["field2"].map_field?, "field2 should not have a map_type")
refute(fields["field2"].map_type, "field2 should not have a map_type")
end

def test_proto3?
Expand Down

0 comments on commit ec488bc

Please sign in to comment.