Skip to content

Commit

Permalink
Add new tag system to secrets (#672)
Browse files Browse the repository at this point in the history
* Add new tag system

* Fix format
  • Loading branch information
meatball133 authored Aug 7, 2024
1 parent cd29253 commit f055b94
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions exercises/concept/secrets/spec/secrets_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ require "spec"
require "../src/*"

describe "Secrets" do
describe "shift_back" do
describe "shift_back", tags: "task_id=1" do
it "should be able to shift 0 places" do
Secrets.shift_back(15, 0).should eq 15
end
Expand All @@ -20,7 +20,7 @@ describe "Secrets" do
end
end

describe "apply_mask" do
describe "apply_mask", tags: "task_id=2" do
it "should be able to AND value with mask bits all 1" do
Secrets.apply_mask(101, 255).should eq 101
end
Expand All @@ -34,7 +34,7 @@ describe "Secrets" do
end
end

describe "set_bits" do
describe "set_bits", tags: "task_id=3" do
it "should be able to OR value with 0s" do
Secrets.set_bits(107, 0).should eq 107
end
Expand All @@ -48,7 +48,7 @@ describe "Secrets" do
end
end

describe "reverse_xor" do
describe "reverse_xor", tags: "task_id=4" do
it "should be able to reverse with all 1s" do
Secrets.reverse_xor(106, 255).should eq 106
end
Expand Down

0 comments on commit f055b94

Please sign in to comment.