• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

kaidokert / xacro / 21131127108
89%
main: 94%

Build:
Build:
LAST BUILD BRANCH: feat/update_read
DEFAULT BRANCH: main
Ran 19 Jan 2026 08:54AM UTC
Jobs 1
Files 18
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

19 Jan 2026 08:53AM UTC coverage: 88.857%. First build
21131127108

Pull #76

github

kaidokert
Fix misleading 'Undefined variable: pow' error in math preprocessor

When a variable inside a math function call (like pow(x, 2)) was
undefined, the preprocessor would silently skip the replacement,
leaving the raw text "pow(x, 2)" for pyisheval to evaluate. Since
pyisheval doesn't know what pow is, it would report "Undefined
variable: pow" instead of "Undefined variable: x".

Root cause: In preprocess_math_functions(), when argument evaluation
failed, we used pattern matching with if-let that silently continued
to the next match on error. This masked the true error.

Fix: Explicitly match on eval results and propagate errors immediately
when argument evaluation fails. Now users see the real problem:
the undefined variable in the argument, not the function name.

Added tests to verify both single-arg (cos) and two-arg (pow) cases
report the correct undefined variable.

Fix pow() preprocessing in arithmetic parentheses

Math function preprocessing used at_top_level() which excluded
functions inside ANY parentheses, including arithmetic ones like
m*(3*pow(r,2)). Added not_in_string() to only check quotes,
allowing math functions in arithmetic expressions.
Pull Request #76: Fix misleading 'Undefined variable: pow' error in math preprocessor

58 of 83 new or added lines in 1 file covered. (69.88%)

4912 of 5528 relevant lines covered (88.86%)

273.21 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
25
86.04
src/eval/interpreter.rs
Jobs
ID Job ID Ran Files Coverage
1 21131127108.1 19 Jan 2026 08:54AM UTC 18
88.86
GitHub Action Run
Source Files on build 21131127108
  • Tree
  • List 18
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #21131127108
  • Pull Request #76
  • Next Build on feature/pow-preprocessing-fix (#21131571324)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc