summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-complex/mrbgem.rake
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2021-03-26 17:20:25 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2021-03-26 17:20:25 +0900
commit01a8edea3530f0073f0d046c68853bfa17c058b5 (patch)
treeb79853c21859a616bb81584d75900ead83e80ceb /mrbgems/mruby-complex/mrbgem.rake
parent9492e389b801c2a4f8e605fab3b1c5d4a0dc31f3 (diff)
downloadmruby-01a8edea3530f0073f0d046c68853bfa17c058b5.tar.gz
mruby-01a8edea3530f0073f0d046c68853bfa17c058b5.zip
complex.rb: add test for arithmetic operators. [ci skip]
Tests for (`Float` or `Integer`) `op` `Complex`. Also added test dependency to `mruby-rational` since `int_div` definition relies on `Rational` when `MRB_USE_RATIONAL` is defined.
Diffstat (limited to 'mrbgems/mruby-complex/mrbgem.rake')
-rw-r--r--mrbgems/mruby-complex/mrbgem.rake1
1 files changed, 1 insertions, 0 deletions
diff --git a/mrbgems/mruby-complex/mrbgem.rake b/mrbgems/mruby-complex/mrbgem.rake
index cd81ecd02..5e88c2337 100644
--- a/mrbgems/mruby-complex/mrbgem.rake
+++ b/mrbgems/mruby-complex/mrbgem.rake
@@ -4,4 +4,5 @@ MRuby::Gem::Specification.new('mruby-complex') do |spec|
spec.summary = 'Complex class'
spec.build.defines << "MRB_USE_COMPLEX"
spec.add_dependency 'mruby-math', core: 'mruby-math'
+ spec.add_test_dependency('mruby-rational')
end