aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/library/matrix/coerce_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library/matrix/coerce_spec.rb')
-rw-r--r--spec/ruby/library/matrix/coerce_spec.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/ruby/library/matrix/coerce_spec.rb b/spec/ruby/library/matrix/coerce_spec.rb
new file mode 100644
index 0000000000..6e653315a6
--- /dev/null
+++ b/spec/ruby/library/matrix/coerce_spec.rb
@@ -0,0 +1,10 @@
+require File.expand_path('../../../spec_helper', __FILE__)
+require 'matrix'
+
+describe "Matrix#coerce" do
+ it "needs to be reviewed for spec completeness"
+
+ it "allows the division of fixnum by a Matrix " do
+ (1/Matrix[[0,1],[-1,0]]).should == Matrix[[0,-1],[1,0]]
+ end
+end