Files
wickra/testdata/golden/input.csv
T
kingchenc 8bfe24ac1d test(golden): language-neutral fixtures + per-binding parity runners (#255)
**Task 5 — golden-fixture parity for the C-ABI bindings.** Lifts the C#/Go/Java/R tests from *one indicator per archetype* toward reference-value parity, catching FFI wiring bugs (swapped params, wrong multi-output field) the math-only core tests cannot see.

## What's here
- **`examples/rust/src/bin/gen_golden.rs`** + **`testdata/golden/*.csv`** — a Rust generator computing a deterministic OHLCV series plus the core's reference outputs for a curated archetype-spanning set: scalar (`Sma`/`Ema`/`Rsi`), candle (`Atr`), scalar multi-output (`MACD`), candle multi-output (`ADX`), pairwise (`Beta`). `nan` marks warmup. Regenerate with `cargo run -p wickra-examples --bin gen_golden`.
- **Parity runners** replaying the identical fixtures through each FFI (rel-tol 1e-6), each a standard test in the binding's existing suite (no `ci.yml` change — rides `dotnet test` / `go test` / `mvn install` / `R CMD`+testthat). A walk-up search locates `testdata/golden` regardless of run dir.
  - **C#** (`bindings/csharp/.../GoldenTests.cs`) —  validated locally, 7/7 pass.
  - **Go** (`bindings/go/golden_test.go`) —  validated locally, pass.
  - **Java** (`bindings/java/.../GoldenTests.java`) — modeled on the archetype API; validated by CI (no local mvn).
  - **R** (`bindings/r/tests/testthat/test-golden.R`) — modeled on the archetype API; validated by CI (no local Rscript).

## Notes
- The curated set spans every marshalling archetype; extending the indicator list is mechanical (add to the generator + regenerate). Bars/profile archetypes can be added next.
- No new CI jobs.
2026-06-11 15:22:29 +02:00

7.3 KiB

1openhighlowclosevolume
299101981001000
3102.57761950472302104.77731091023225101.25551066110417103.45520206661341019.8669330795061
4106.10612242808222108.13914959894458104.61339756308799106.646424733950351038.941834230865
5109.26253189460714110.76487377959927107.8309272112827109.333269096274831056.4642473395036
6111.7365376962194112.90403177129735110.1528967845943111.320390859672261071.7356090899523
7113.27609348158748114.45148509543229111.29955825219574112.474949866040551084.1470984807897
8113.7284688053824115.1642566915892111.30268842257516112.738476308781961093.2039085967226
9113.06855035377954114.55977666009171110.64086736017657112.132093666488741098.544972998846
10111.40827542637513112.72390874531129109.43899848657534110.754631805511511099.9573603041506
11108.98459460176909109.99300155201126107.76539185209613108.77379880233831097.3847630878195
12106.12753789513545107.73969337995807104.79904459577605106.411200080598681090.929742682568
13103.21387328427625105.41662717550601101.71978916733775103.922543058567511080.849640381959
14100.61462528040111103.0020950210956399.18732582635697101.574795567051481067.546318055115
1598.64575078243223100.7818875893349497.4862016012575599.622338408160261051.5501371821465
1697.5303400215208199.4674818404900896.3471004568948598.284242275864121033.4988150155905
1797.37806350551499.1645467033348695.9382156255281797.724698823349031014.1120008059867
1898.1838539454502199.6734428100258896.5487650470659398.03835391164161005.837414342758
1999.8438650794075101.1529336355260197.9327846206041599.241853176722671025.5541102026832
20102.1834853863248103.20029690993537100.25554360082955101.272355124440121044.2520443294852
21104.99031673022002106.32510161131832102.65835969292533103.993144574023631061.185789094272
22108.04491654708718109.54022022493461105.7105413401633107.205845018010731075.680249530793
23111.14367593283949112.56654934841096109.24526558927202110.66813900484351087.157577241359
24114.11098793714572115.26697281350663112.95942875877287114.115413635133781095.1602073889517
25116.80109288512898118.47543335247398115.61005717653698117.284397643881991099.3691003633464
26119.09282467975903121.38046215528227117.64904116296829119.936678638491531099.616460883584
27120.88220148856881123.36781277048146119.39438848583472121.879999767747391095.8924274663138
28122.07798667229586124.2878498649492120.77557026109272122.985433453746051088.3454655720152
29122.60397744514097124.22410945235427121.57876610123756123.198898108450861077.2764487555987
30122.40925186267498123.88697089091687121.06827005264091122.54598908088281063.126663787232
31121.48461656761053122.98099977052848119.63330909790388121.129692300821831046.4602179413757
32119.8808727652764121.29920058454442117.70285703314954119.121184852417571027.9415498198925
33117.72299769788953118.8665240235534115.60101790940676116.744544235070631008.3089402817496
34115.21439166809358116.4131695096543113.05795434620948114.25673218777021011.6549204850494
35112.6270381197495114.07463180365934110.47704737833695111.924641062246791031.154136351338
36110.27641646211617111.76231568498811108.51535390119264110.001253124064581049.4113351138608
37108.48360243707184109.99872116521585107.18792367213928108.70304240028331065.6986598718788
38107.530320991091109.22424173559783106.49671695482826108.190637699335081079.3667863849153
39107.61494922421186109.90155645208623106.26786689008574108.554474117960111089.8708095811626
40108.81801012516657111.30403713029216107.32068773822765109.806714743353241096.7919672031487
41111.08434919099572113.29382811110736109.67068524069803111.880164160809671099.8543345374605
42114.22618875818226115.76972371414958113.09073586402833114.634270819995651098.9358246623383
43117.94724565362051119.15370942824079116.6612183117217117.867682086341971094.0730556679773
44121.88395973243564123.33523703654073119.88495316810628121.336230472211371085.459890808828
45125.65653611891825127.14038418498515123.29089632531003124.774744391376931073.4397097874114
46128.92069597346688130.20955349568973126.63187762484937127.920735147072241058.4917192891762
47131.41114890560974132.45313613345562129.49585703767033130.53784426551621041.2118485241756
48132.96978971477444134.3228744433646131.08387196585088132.436956694441051022.2889914100246
49133.5549991814736135.053120145851131.99497292310176133.493093887479181002.4775425453357
50133.2323987581558135.065460892756131.8235156308926133.656577765492781017.4326781222982
51132.1510588175171134.08480947785137131.0237176510951132.957468311429351036.647912925193
52130.5116755897077132.71696973631924129.29758425495962131.502878401571171054.402111088937
53128.53409061924222130.9222390672229127.07925728332546129.467405731306141069.9874687593544
54126.4306172006658128.5591966352313124.94895708842891127.077536522994441082.7826469085653
55124.38927906587094125.87336879788326123.1073244542458124.591414186258121092.2775421612807
56122.56791894474918123.61827749324543121.2254215875191122.275780136015341098.093623006649
57121.09703354508844122.45602084147426119.02315927992295120.382146576308771099.9990206550704
58120.08693553049852121.58571423995242117.62555095473105119.124329664184961097.9177729151318
59119.63399522490424121.03798192673773117.25536324735009118.659349949183581091.9328525664675
60119.82146372498268120.94065716085713117.95421275941922119.073406195293671082.2828594968707
61120.7124947130592121.93415307848436119.152517136663120.374175502088151069.3525084777123
62122.33587608239566123.94838830624106120.87761530843784122.490127532283241053.6572918000436
63124.66785812762632126.75625008370868123.18852214765032125.276914103732681035.8229282236828
64127.61552102482923129.80523536741393126.34054904004905128.530263382633761016.5604175448309
65131.00775897051096133.06294250948164129.94904333909741132.00422687806811003.3623047221139
66134.59892592769242136.79793765689536133.234137558996135.433149288198931023.1509825101539
67138.08766685694894140.0546941334019136.58837142074304138.5553986971961042.016703682664
68141.1500141222941142.5489901806554139.73776131670974141.136737375071051059.2073514707224
69143.48228026040917144.5932922665057141.8802335303824142.991245536478941074.037588995245
70144.84649927621132146.0756620034572142.76876627418082143.99792900142671085.9161814856498
71145.1098734724699146.57143212166807142.649968595823144.111527245021161094.3695669444105
72144.27024859045207145.7471249168318141.88968005898082143.366556385360551099.060735569487
73142.46200877506277143.72992039092952140.60631434563564141.87422596150241099.8026652716362
74139.9404686061768141.00752471999962138.7454488027266139.812504916549411096.5657776549278
75137.04703875358243138.78071046739933135.67655244818158137.410224161998491089.4791172140503
76134.16122174198705136.42630679247307132.66155074344638134.92663579393241078.8252067375315
77131.6480122345848134.02210748888697130.25415962109273132.62825487539491065.0287840157116
78129.80997879551026131.86785162975886128.70717960530897130.765052439557561048.6398688853799
79128.85205701193928130.78472862032595127.6154547134165129.548126321803181030.3118356745701
80128.8642014864336130.59557044803222127.39947545719488129.130844418793521010.7753652299442
81129.82321172551153131.29749357237068128.12086294416926129.595144791028421009.1906850227682