Skip to content

Commit

Permalink
Adds a failing test case for 255 unicode code points
Browse files Browse the repository at this point in the history
The OSM spec says "up to 255 full unicode chars", so we should be able
to handle 255 x ๐Ÿผ --- but we don't.

The internal limit is on 255 _bytes_ in the `std::string`, but there can
be up to four bytes in a utf8 encoded code point.

References:
- http://wiki.openstreetmap.org/wiki/API_v0.6#Tags
- http://www.fileformat.info/info/unicode/char/1f43c/browsertest.htm
- https://en.wikipedia.org/wiki/UTF-8#Description
  • Loading branch information
daniel-j-h authored and Moritz Kobitzsch committed Sep 2, 2016
1 parent 6fac14d commit bb244e2
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions features/testbot/utf.feature
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,18 @@ Feature: Handling of UTF characters
| a | b | Scandinavian Kรธbenhavn,Scandinavian Kรธbenhavn |
| b | c | Japanese ๆฑไบฌ,Japanese ๆฑไบฌ |
| c | d | Cyrillic ะœะพัะบะฒะฐ,Cyrillic ะœะพัะบะฒะฐ |


@todo
Scenario: Up to 255 Unicode Code Points (255 x Panda Code Point)
Given the node map
| a | b | c |

And the ways
| nodes | name | highway |
| ab | ab | primary |
| bc | ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ | primary |

When I route 100 times I should get
| from | to | route |
| a | c | ab,๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ,๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ๐Ÿผ |

0 comments on commit bb244e2

Please sign in to comment.