<commit_before>@routing @726 @testbot
Feature: Avoid weird loops caused by rounding errors

    Background:
        Given the profile "testbot"

    Scenario: Avoid weird loops 1
        Given the node locations
            | node | lat        | lon        |
            | a    | 55.6602463 | 12.5717242 |
            | b    | 55.6600270 | 12.5723008 |
            | c    | 55.6601840 | 12.5725037 |<commit_msg>Add new regression test for looping bugs<commit_after>@routing @726 @testbot
Feature: Avoid weird loops caused by rounding errors

    Background:
        Given the profile "testbot"

    Scenario: Weired sidestreet loops
        Given the node map
            | a | 1 | b | 2 | c | 3 | d |
            |   |   |   |   |   |   |   |
            | e |   | f |   | g |   | h |

       And the ways
            | nodes  |
            | aefghd |
            | abcd   |
            | bf     |
            | cg     |

       When I route I should get
           | waypoints | route     | turns                |
           | a,1,d     | abcd,abcd | head,via,destination |
           | a,2,d     | abcd,abcd | head,via,destination |
           | a,3,d     | abcd,abcd | head,via,destination |

    Scenario: Avoid weird loops 1
        Given the node locations
            | node | lat        | lon        |
            | a    | 55.6602463 | 12.5717242 |
            | b    | 55.6600270 | 12.5723008 |
            | c    | 55.6601840 | 12.5725037 |
{'fraction_non_alphanumeric': 0.09097174362508614, 'fraction_numerical': 0.08407994486560992, 'mean_word_length': 1.2581648522550544, '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': 5, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '899797', 'n_tokens_mistral': 529, 'n_tokens_neox': 439, 'n_words': 125}