Skip to content

Commit

Permalink
Add missing icon and tag system to spellbound steel (#684)
Browse files Browse the repository at this point in the history
* Add missing icon

* Add new tag system
  • Loading branch information
meatball133 authored Aug 7, 2024
1 parent d9258ed commit dd1f89b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
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

0 comments on commit dd1f89b

Please sign in to comment.