CLIxIndia-Dev / CLIxIndia-Dev/MiTiRobot

Getting the parent of the "back" scenario

Open
#7 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
0
Forks
1
PR merge metrics
No merged PRs in 30d

Description

This seems like another opportunity for pulling out a method and adding some tests (~lines 115-120):

```
if last_element.is_root_node():
parent = last_element
children = last_element.get_children()
else:
parent = last_element.parent
children = parent.get_children()
```

And then a test for each scenario...

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.