Skip to content

Latest commit

 

History

History
32 lines (17 loc) · 785 Bytes

File metadata and controls

32 lines (17 loc) · 785 Bytes

Ruby: Custom Set

Create a custom set type.

Sometimes it is necessary to define a custom data structure of some type, like a set. In this exercise you will define your own set. How it works internally doesn't matter, as long as it behaves like a set of unique elements.

The tests use the Minitest testing framework. To install it run the command:

gem install minitest

Run the tests with the ruby command:

ruby custom_set_test.rb

Resources

If you have never used Minitest, check out Intro to TDD tutorial from Jumpstart Lab.

Source

This exercise is from the Ruby track on Exercism