Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing icon and tag system to spellbound steel #684

Merged
merged 2 commits into from
Aug 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion exercises/concept/spellbound-steel/.meta/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@
".meta/src/exemplar.cr"
]
},
"blurb": "Learn about Iteration by implementing methods to aid in the game of Spellbound Steel."
"blurb": "Learn about Iteration by implementing methods to aid in the game of Spellbound Steel.",
"icon": "role-playing-game"
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ require "../src/*"
require "spec"

describe "SpellboundSteel" do
describe "find_card?" do
describe "find_card?", tags: "task_id=1" do
it "should return the first warriors index" do
deck = ["Warrior", "Mage", "Warrior"]
SpellboundSteel.find_card?(deck, "Warrior").should eq(0)
Expand All @@ -24,7 +24,7 @@ describe "SpellboundSteel" do
end
end

describe "capitalize_names" do
describe "capitalize_names", tags: "task_id=2" do
it "should return an empty array if the input is empty" do
SpellboundSteel.capitalize_names([] of String).should eq([] of String)
end
Expand All @@ -38,7 +38,7 @@ describe "SpellboundSteel" do
end
end

describe "calculate_power_level" do
describe "calculate_power_level", tags: "task_id=3" do
it "should return 0 if the deck is empty" do
deck = [] of String
SpellboundSteel.calculate_power_level(deck).should eq(0)
Expand Down Expand Up @@ -75,7 +75,7 @@ describe "SpellboundSteel" do
end
end

describe "decode_characters" do
describe "decode_characters", tags: "task_id=4" do
it "should return an empty string if the input is empty" do
SpellboundSteel.decode_characters("").should eq("")
end
Expand Down