json-patch / json-patch-tests

Tests for implementations of json-patch
68 stars 21 forks source link

Test for trailing slash when not the root element #28

Closed morganatwishpond closed 8 years ago

morganatwishpond commented 8 years ago

A path terminating in a "/" means the final path segment is an empty string:

"/foo/bar" -> ['foo', 'bar']
"/foo/bar/" -> ['foo', 'bar', '']

The existing test covers the trailing slash at only the root node.

bruth commented 8 years ago

Good catch, thank you!