aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/shared/complex/constants.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/shared/complex/constants.rb')
-rw-r--r--spec/ruby/shared/complex/constants.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/ruby/shared/complex/constants.rb b/spec/ruby/shared/complex/constants.rb
new file mode 100644
index 0000000000..e8bb5fc907
--- /dev/null
+++ b/spec/ruby/shared/complex/constants.rb
@@ -0,0 +1,7 @@
+require File.expand_path('../../../spec_helper', __FILE__)
+
+describe :complex_I, shared: true do
+ it "is Complex(0, 1)" do
+ Complex::I.should eql(Complex(0, 1))
+ end
+end