<commit_before>@routing @weight
Feature: Choosing route based on length, speed, etc
	
	Scenario: Pick the geometrically shortest route, way types being equal
		Given the node map
		 |   | s |   |
		 |   | t |   |
		 | a |   | b |

		And the ways
		 | nodes |
		 | atb   |
		 | asb   |

		When I route I should get
		 | from | to | route |
		 | a    | b  | atb   |
		 | a    | b  | atb   |

	Scenario: Pick the fastest way type, lengths being equal
		Given the node map
		 | a | s |
		 | p | b |
	
		And the ways
		 | nodes | highway   |
		 | apb   | primary   |
		 | asb   | secondary |
<commit_msg>minor updates of weight tests<commit_after>@routing @weight
Feature: Choosing route based on length, speed, etc
	
	Background:
		Given the speedprofile "testbot"
	
	Scenario: Pick the geometrically shortest route, way types being equal
		Given the node map
		 |   | s |   |
		 |   | t |   |
		 | a |   | b |

		And the ways
		 | nodes | highway |
		 | atb   | primary |
		 | asb   | primary |

		When I route I should get
		 | from | to | route |
		 | a    | b  | atb   |
		 | b    | a  | atb   |

	Scenario: Pick  the shortest travel time, even when it's longer
		Given the node map
		 |   | p |   |
		 | a | s | b |

		And the ways
		 | nodes | highway   |
		 | apb   | primary   |
		 | asb   | secondary |

		When I route I should get
		 | from | to | route |
		 | a    | b  | apb   |
		 | b    | a  | apb   |

{'fraction_non_alphanumeric': 0.09560906515580736, 'fraction_numerical': 0.0, 'mean_word_length': 1.776031434184676, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5289040', 'n_tokens_mistral': 558, 'n_tokens_neox': 462, 'n_words': 178}