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

stillwater-sc / universal / 23695977840
85%
master: 84%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 28 Mar 2026 11:11PM UTC
Jobs 1
Files 630
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

28 Mar 2026 10:42PM UTC coverage: 84.347% (+0.002%) from 84.345%
23695977840

push

github

web-flow
feat(ucalc): test vector generation command (testvec) (#661)

* feat(ucalc): test vector generation command (#633)

Add `testvec <type> <function> [a, b, n]` that generates golden
reference test vectors for regression tests.

Output formats:
- Plain (default): C++ constexpr initializer list, directly pasteable
  into test code
- --json: structured JSON with input/value/decimal/binary per entry
- --csv: tabular with header row
- --quiet: input-value pairs

Example:
  ucalc testvec posit16 sin [0, 3.14159, 5]
  // Golden reference vectors for sin(x) in posit< 16, 2, uint16_t>
  struct TestVector { double input; double expected; };
  constexpr TestVector sin_posit16[] = {
      { 0, 0 },  // 0.0000e+00
      { 0.785397, 0.707031 },  // 7.0703e-01
      ...
  };

Resolves #633

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* fix(ucalc): use variable binding instead of std::to_string in testvec

std::to_string(x) truncates to 6 decimal digits, causing input/output
mismatch. Now binds x as a variable into the evaluator (same pattern
as sweep) so the full double-precision value is used for evaluation.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

44584 of 52858 relevant lines covered (84.35%)

6109064.16 hits per line

Coverage Regressions

Lines Coverage ∆ File
8
93.98
-0.48% include/sw/universal/number/cfloat/cfloat_impl.hpp
3
80.58
-0.67% include/sw/universal/number/posit1/specialized/posit_16_1.hpp
Jobs
ID Job ID Ran Files Coverage
1 23695977840.1 28 Mar 2026 11:11PM UTC 630
84.35
GitHub Action Run
Source Files on build 23695977840
  • Tree
  • List 630
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #23695977840
  • 7b745b35 on github
  • Prev Build on main (#23695539103)
  • Next Build on main (#23696561882)
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