arinbasu / MetaAnalysis.jl

This repository is a Julia Meta analysis package
MIT License
3 stars 2 forks source link

Fix tests #4

Open staticfloat opened 1 year ago

staticfloat commented 1 year ago

Two small errors in the test suite.

Note that there remain a few more errors:

MetaAnalysis.jl: Error During Test at MetaAnalysis.jl/test/runtests.jl:47
  Expression evaluated to non-Boolean
  Expression: MetaAnalysis.fixedEffects(df.y, df.v)
       Value: (0.4142696715974588, 0.004094753195414615, 0.28884876474575094, 0.5396905784491667, 0.001)
MetaAnalysis.jl: Error During Test at MetaAnalysis.jl/test/runtests.jl:54
  Expression evaluated to non-Boolean
  Expression: MetaAnalysis.tausq(df.y, df.v)
       Value: 0.03731130634814963
MetaAnalysis.jl: Error During Test at MetaAnalysis.jl/test/runtests.jl:61
  Expression evaluated to non-Boolean
  Expression: MetaAnalysis.randEffects(df.y, df.v)
       Value: (0.35822941756284377, 0.011076205162668525, 0.15195205634036885, 0.5645067787853186, 0.001)
MetaAnalysis.jl: Error During Test at MetaAnalysis.jl/test/runtests.jl:84
  Expression evaluated to non-Boolean
  Expression: MetaAnalysis.isq(df.study, df.y, df.v)
       Value: (58.344621557328544, "high", 12.003251889503993, 0.03731130634814963, 0.03474324926650794)
Test Summary:   | Error  Total  Time
MetaAnalysis.jl |     4      4  0.9s

These look like tests that are not quite complete; they return non-Boolean values, so the tests need to somehow assert some property about the return value to turn it into a true or false value.