Skip to content

Commit 036af25

Browse files
committed
Add error test case
1 parent ffcab2c commit 036af25

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/test_codegen.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,10 @@ end
130130
s, p, ctx = translate_simple_proto("""syntax = "proto3"; option julia_package = "Foo.Bar.Baz";""", Options(always_use_modules=false))
131131
@test "Foo.Bar.Baz" == p.preamble.options["julia_package"]
132132
@test ["Foo", "Bar", "Baz"] == namespace(p)
133+
134+
@test_throws ErrorException begin
135+
translate_simple_proto("""syntax = "proto3"; option julia_package = "Foo/Bar/Baz";""", Options(always_use_modules=false))
136+
end
133137
end
134138

135139
@testset "`force_required` option makes optional fields required" begin

0 commit comments

Comments
 (0)