The current solution to the find_language_facts exercise raises a NoMethodError when trying to access a language_name that is not listed in the languages hash. The lesson mentions the dig method for that specific purpose, but this is never tested in the exercises.
This PR
Adds a test case with a language_name that does not exist in languages.
Issue
I opened no issue as I figured this is a small enough change to be discussed directly in a PR.
Because
The current solution to the
find_language_facts
exercise raises aNoMethodError
when trying to access alanguage_name
that is not listed in thelanguages
hash. The lesson mentions thedig
method for that specific purpose, but this is never tested in the exercises.This PR
language_name
that does not exist inlanguages
.Issue
I opened no issue as I figured this is a small enough change to be discussed directly in a PR.
Additional Information
The solution is updated in #86
Pull Request Requirements
location of change: brief description of change
format, e.g.Data types exercise: Update spec files
Because
section summarizes the reason for this PRThis PR
section has a bullet point list describing the changes in this PRIssue
sectionsolutions
branch, I have created another PR (and linked it to this PR).