Skip to content

Commit 2f600ba

Browse files
authored
code length validation
1 parent c434a9c commit 2f600ba

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ruby/test/plus_codes_test.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ def test_exceptions
6363
assert_raise ArgumentError do
6464
@olc.encode(20, 30, 1)
6565
end
66+
assert_raise ArgumentError do
67+
@olc.encode(20, 30, 9)
68+
end
6669
assert_raise ArgumentError do
6770
@olc.recover_nearest('9C3W9QCJ-2VX', 51.3708675, -1.217765625)
6871
end

0 commit comments

Comments
 (0)