<commit_before>@routing  @guidance @perceived-angles
Feature: Simple Turns

    Background:
        Given the profile "car"
        Given a grid size of 5 meters

    Scenario: Turning into splitting road
        Given the node map
            """
              a
              b
              ^
             / \
            c   d
            |   |\
            |   | e
            |   |
            |   |
            |   |
            |   |
            |   |
            |   |
            g   f
            """

        And the ways
            | nodes | name | highway | oneway |
            | ab    | road | primary | no     |
            | bcg   | road | primary | yes    |
            | fdb   | road | primary | yes    |
            | ed    | turn | primary | yes    |

        When I route I should get
            | waypoints | turns                           | route          | intersections                                |
            | f,a       | depart,arrive                   | road,road      | true:0,true:0 false:150 false:180;true:180   |
            | e,a       | depart,turn slight right,arrive | turn,road,road | true:333;true:0 false:150 false:180;true:180 |

    Scenario: Turning into splitting road
        Given the node map
        """<commit_msg>add testcase illustrating changes to angle adjustments<commit_after>@routing  @guidance @perceived-angles
Feature: Simple Turns

    Background:
        Given the profile "car"
        Given a grid size of 5 meters

    Scenario: Turning into splitting road
        Given the node map
            """
              a
              b
              ^
             / \
            c   d
            |   |\
            |   | e
            |   |
            |   |
            |   |
            |   |
            |   |
            |   |
            g   f
            """

        And the ways
            | nodes | name | highway | oneway |
            | ab    | road | primary | no     |
            | bcg   | road | primary | yes    |
            | fdb   | road | primary | yes    |
            | ed    | turn | primary | yes    |

        When I route I should get
            | waypoints | turns                           | route          | intersections                                |
            | f,a       | depart,arrive                   | road,road      | true:0,true:0 false:150 false:180;true:180   |
            | e,a       | depart,turn slight right,arrive | turn,road,road | true:333;true:0 false:150 false:180;true:180 |

    Scenario: Turning into splitting road - no improvement
        Given the node map
            """
                a
                b
              / |
            c   d - e
            |   |
            |   |
            |   |
            |   |
            |   |
            |   |
            |   |
            |   |
            g   f
            """

        And the ways
            | nodes | name | highway | oneway |
            | ab    | road | primary | no     |
            | bcg   | road | primary | yes    |
            | fdb   | road | primary | yes    |
            | ed    | turn | primary | yes    |

        When I route I should get
            | waypoints | turns                    | route          | intersections                               |
            | f,a       | depart,arrive            | road,road      | true:0,true:15 false:90 false:180;true:180   |
            | e,a       | depart,turn right,arrive | turn,road,road | true:270;true:15 false:90 false:180;true:180 |

    Scenario: Turning into splitting road
        Given the node map
        """
{'fraction_non_alphanumeric': 0.08266072919565823, 'fraction_numerical': 0.020595602560534373, 'mean_word_length': 0.867983367983368, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6942874', 'n_tokens_mistral': 987, 'n_tokens_neox': 916, 'n_words': 250}