Skip to content

Commit 8c7df45

Browse files
committed
Add error test case
1 parent b9ab640 commit 8c7df45

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/test_codegen.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,8 @@ 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 "Invalid value for julia_package option:" translate_simple_proto("""syntax = "proto3"; option julia_package = "Foo/Bar/Baz";""", Options(always_use_modules=false))
133135
end
134136

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

0 commit comments

Comments
 (0)