diff options
| author | 2026-10-14 10:06:27 +0000 | |
|---|---|---|
| committer | 2026-10-14 10:06:27 +0000 | |
| commit | c2270cc944424579e4577e67ed17a66512d856b4 (patch) | |
| tree | 04fc1ede53e0cbf2c2562f724fd539836c450306 /tests/drivers/hover_surface_test.js | |
| parent | todo: tick the spec; list the bugs its appendix b found (diff) | |
| parent | split compiler.zc into files by phase (diff) | |
Merge the compiler split into phase files
also: ca_owners in the language server keeps the owner order in a fixed
array instead of a heap list the analyzer rejected.
Diffstat (limited to 'tests/drivers/hover_surface_test.js')
| -rw-r--r-- | tests/drivers/hover_surface_test.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/drivers/hover_surface_test.js b/tests/drivers/hover_surface_test.js index 688aca6..47056f6 100644 --- a/tests/drivers/hover_surface_test.js +++ b/tests/drivers/hover_surface_test.js @@ -17,7 +17,8 @@ function doc(uri, text) { return rid; }; } -const compiler = fs.readFileSync('src/compiler/compiler.zc', 'utf8'); +// the compiler is the files listed in src/compiler/parts, joined: the one document the server embeds +const compiler = fs.readFileSync('src/compiler/parts', 'utf8').split(/\r?\n/).filter(Boolean).map(n => fs.readFileSync('src/compiler/' + n, 'utf8')).join(''); const ask = doc('tinyvm:/compiler.zc', compiler); checks.push([ask('ifrcap = NIF', 9), /const int NIF = 431/, /431/]); checks.push([ask('capture_width = NCAP', 16), /const int NCAP = 32/, /initial capture capacity/, /32/]); |
