Skip to content

Commit

Permalink
Merge pull request #1057 from jonathanstiansen/patch-1
Browse files Browse the repository at this point in the history
fix: Remove argumentError doctest
  • Loading branch information
BrooklinJazz committed Apr 15, 2024
2 parents b5ae5cf + 78fb6ca commit 5f5f4e1
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions exercises/rpg_dialogue.livemd
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,10 @@ defmodule Character do
Defines a character struct, and functions for creating character dialogue.
iex> %Character{name: "Frodo"}
%Character{name: "Frodo", weapon: nil, class: nil}
iex> %Character{name: "Frodo", weapon: "Sting"}
%Character{name: "Frodo", weapon: "String", class: nil}
The :name key is required.
iex> %Character{name: "Frodo"}
** (ArgumentError) the following keys must also be given when building struct Character: [:name]
The :name key is required. But cannot be tested by doctests
"""
defstruct []

Expand Down

0 comments on commit 5f5f4e1

Please sign in to comment.