Skip to content

Instantly share code, notes, and snippets.

@kermit-klein
Last active October 17, 2020 20:03
Show Gist options
  • Save kermit-klein/bdf080c2904807b30fba1ab86c53dca8 to your computer and use it in GitHub Desktop.
Save kermit-klein/bdf080c2904807b30fba1ab86c53dca8 to your computer and use it in GitHub Desktop.
CreateParanstest
RSpec.describe CheckParans do
it "has a version number" do
expect(CheckParans::VERSION).not_to be nil
end
it "gives true when parentheses are valid" do
expect(CheckParans.valid_parentheses('((sdf)())')).to eql(true)
end
it "gives false when parentheses are invalid" do
expect(CheckParans.valid_parentheses('(sdfs')).to eql(false)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment