We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 820fec4 commit c81c026Copy full SHA for c81c026
test/json_schema_pointer_test.rb
@@ -31,6 +31,10 @@ def test_evaluate_success
31
pointer = JSON::Schema::Pointer.new(:fragment, "#/a%2520%20b/c~1d/e%7E0f/0")
32
assert_equal(1, pointer.evaluate({'a%20 b' => {'c/d' => {'e~f' => [1]}}}))
33
end
34
+ def test_evaluate_empty_strings_success
35
+ pointer = JSON::Schema::Pointer.new(:fragment, "#/a///0//")
36
+ assert_equal(1, pointer.evaluate({'a' => {'' => {'' => [{'' => {'' => 1}}]}}}))
37
+ end
38
def test_evaluate_fail
39
assert_raises(JSON::Schema::Pointer::ReferenceError) do
40
0 commit comments