We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e932289 commit 404da94Copy full SHA for 404da94
spec/rs/option_spec.rb
@@ -3,6 +3,10 @@
3
RSpec.describe(Rs::Option) do
4
# https://doc.rust-lang.org/std/option/enum.Option.html
5
6
+ it "new" do
7
+ expect { Some.new(nil) }.to(raise_error(Rs::Option::ArgumentError, "Some value cannot be nil"))
8
+ end
9
+
10
it "some?" do
11
x = Some.new(2)
12
expect(x.some?).to(be(true))
0 commit comments