Skip to content

Commit

Permalink
Add double char utf-8 in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gcamp committed Jun 28, 2018
1 parent 83f120a commit 5bd50b7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/samples/1/routes.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
agency_id,route_id,route_short_name,route_long_name,route_type
agency_0,route_0,R0,Route 0,3
agency_0,route_x,RX,"""Route X""",3
agency_0,route_utf8,RÛTF8,route_êωn → ∞⠁⠧⠑ ⠼éöÿΚαλημέρα'´`,3
agency_0,route_utf8,RÛTF8,route_😎êωn → ∞⠁⠧⠑ ⠼éöÿΚαλημέρα'´`,3
4 changes: 2 additions & 2 deletions tests/test_gtfs_options.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ describe('Tests on GTFS constructor options', () => {
'route_text_color,route_sort_order,temp\n' +
'route_0,agency_0,R0,Route 0,,3,,,,,some value\n' +
'route_x,agency_0,RX,"""Route X""",,3,,,,,some value\n' +
'route_utf8,agency_0,RÛTF8,route_êωn → ∞⠁⠧⠑ ⠼éöÿΚαλημέρα\'´`,,3,,,,,some value\n'
'route_utf8,agency_0,RÛTF8,route_😎êωn → ∞⠁⠧⠑ ⠼éöÿΚαλημέρα\'´`,,3,,,,,some value\n'
);

fs.remove(outputPath, (removeError) => {
Expand Down Expand Up @@ -94,7 +94,7 @@ describe('Tests on GTFS constructor options', () => {
'route_text_color,route_sort_order,temp\n' +
'route_0,agency_0,R0,Route 0,,3,,,,,"{""key"":""value""}"\n' +
'route_x,agency_0,RX,"""Route X""",,3,,,,,"{""key"":""value""}"\n' +
'route_utf8,agency_0,RÛTF8,route_êωn → ∞⠁⠧⠑ ⠼éöÿΚαλημέρα\'´`,,3,,,,,"{""key"":""value""}"\n'
'route_utf8,agency_0,RÛTF8,route_😎êωn → ∞⠁⠧⠑ ⠼éöÿΚαλημέρα\'´`,,3,,,,,"{""key"":""value""}"\n'
);

fs.remove(outputPath, (removeError) => {
Expand Down
2 changes: 1 addition & 1 deletion tests/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ describe('Tests on GTFS', () => {
'route_text_color,route_sort_order,some_extra_route_field\n' +
'route_0,agency_0,R0,Route 0,Some new description,3,,,,,some_extra_route_value\n' +
'route_x,agency_0,RX,"""Route X""",Some new description,3,,,,,some_extra_route_value\n' +
'route_utf8,agency_0,RÛTF8,route_êωn → ∞⠁⠧⠑ ⠼éöÿΚαλημέρα\'´`,' +
'route_utf8,agency_0,RÛTF8,route_😎êωn → ∞⠁⠧⠑ ⠼éöÿΚαλημέρα\'´`,' +
'Some new description,3,,,,,some_extra_route_value\n'
);

Expand Down

0 comments on commit 5bd50b7

Please sign in to comment.