about summary refs log tree commit diff stats
Commit message (Collapse)AuthorAgeFilesLines
* .Kartik Agaram2019-06-171-160/+160
| | | | | | | Move tests adjacent to function being tested. Originally I didn't expect the helpers to get their own tests. But even so, arguably the original layout was less clear.
* .Kartik Agaram2019-06-171-6/+6
|
* .Kartik Agaram2019-06-171-13/+21
| | | | | Make a test a little less confusing; stream was initialized with data filled in but outside bounds.
* fix two hangs in trace-scanKartik Agaram2019-06-171-6/+27
| | | | | 1. skip-next-line should skip newline 2. trace-scan was falling into an infinite loop on non-matching lines
* move test data to bottom of fileKartik Agaram2019-06-171-28/+30
|
* bugfix to opcode 8f; it requires subopsKartik Agaram2019-06-171-2/+1
|
* support `CFLAGS=-g ./run_one_test.sh ...`Kartik Agaram2019-06-171-2/+3
|
* .Kartik Agaram2019-06-161-0/+1
| | | | | | | | This missing line was giving the illusion that all was well when running a single test at a time. Now trace-scan still hangs, but it hangs reliably. And it's clear what the logic error is.
* fix bug in skip-next-linenc2019-06-151-1/+2
|
* implement next-line-matches?nc2019-06-151-8/+133
|
* implement skip-next-linenc2019-06-151-9/+88
|
* pseudocode skeletons for all functionsKartik Agaram2019-06-132-7/+152
|
* .Kartik Agaram2019-06-131-1/+36
|
* flesh out survey testsKartik Agaram2019-06-122-15/+219
|
* .Kartik Agaram2019-06-121-1/+8
| | | | Fix a bug when running tests singly in the 'SubX standard library'.
* .Kartik Agaram2019-06-1219-114/+0
| | | | | Now that we don't have to edit code to run a single test, delete that commented out fragment everywhere.
* .Kartik Agaram2019-06-111-0/+1
|
* rerun most recent test if cursor not in a testKartik Agaram2019-06-112-1/+15
|
* fork vimrc for Mu and SubXKartik Agaram2019-06-112-65/+93
| | | | | I checked if we needed to bring back anything since commit 3976, but the only difference is dropping the :(scenario) DSL.
* only open the trace if test failsKartik Agaram2019-06-111-2/+16
|
* new Vim convenience macroKartik Agaram2019-06-113-0/+40
| | | | Runs test under cursor and opens its trace.
* .Kartik Agaram2019-06-114-100/+0
|
* .Kartik Agaram2019-06-091-7/+7
|
* .Kartik Agaram2019-06-081-3/+3
|
* .Kartik Agaram2019-06-081-1/+1
|
* fix stale docsKartik Agaram2019-06-081-11/+5
|
* snapshot of trace primitivesKartik Agaram2019-06-081-0/+346
|
* .Kartik Agaram2019-06-089-73/+61
|
* Fix stale `initialize-trace-stream`Kartik Agaram2019-06-0810-8/+287
|
* .Kartik Agaram2019-06-082-0/+0
|
* .Kartik Agaram2019-06-089-22/+17
| | | | Simplify `string-equal`.
* implement compute-widthnc2019-06-082-270/+357
|
* added tests for compute-widthnc2019-06-081-0/+112
|
* start fleshing out trace support some moreKartik Agaram2019-06-058-5/+23
| | | | | I think the path to readable tests for survey.subx passes through white-box tests.
* .Kartik Agaram2019-05-2712-136/+143
| | | | | | 'get-or-insert-stream' is now the more generic 'get-or-insert' that can handle tables of any value type. But callers have to be careful to cast values to the right type.
* .Kartik Agaram2019-05-266-385/+278
|
* new primitive: check-array-equalKartik Agaram2019-05-268-0/+68
|
* new primitive: parse-array-of-intsKartik Agaram2019-05-2514-8/+355
| | | | | | | | | | Mostly for tests. For every new type we want to compare in a test, we're now going to start using some primitive that can parse its value from string. In this manner we can get syntax for literals in machine code. Open question: parsing aggregates of aggregates. Like an array of structs. This is the first time we allocate from the heap in standard library tests. So we now need to start initializing the heap in all our apps.
* .Kartik Agaram2019-05-2511-18/+17
| | | | | hoist 'Heap' variable into the std library in anticipation of the parse-array-of-ints primitive.
* new primitive: array-equal?Kartik Agaram2019-05-258-0/+247
|
* new primitive for tests: check-string-equalKartik Agaram2019-05-258-0/+53
|
* .Kartik Agaram2019-05-252-1/+2
|
* .Kartik Agaram2019-05-241-7/+6
|
* .Kartik Agaram2019-05-201-0/+0
|
* .Kartik Agaram2019-05-191-0/+6
| | | | add lengths to data blobs
* initial skeleton for survey.subxKartik Agaram2019-05-182-0/+297
| | | | | | | | Start of the final phase needed to implement SubX in SubX: $ cat files.subx ... |dquotes |assort |pack |survey |hex > a.elf survey.subx is responsible for assigning addresses to labels and segments.
* 5189Kartik Agaram2019-05-187-0/+0
| | | | Fix CI.
* 5188Kartik Agaram2019-05-182-12/+9
| | | | Clean up some unused constants.
* 5187Kartik Agaram2019-05-183-2/+3
| | | | CI should have been failing for a few days. Now fixed.
* Merge pull request #33 from akkartik/new-segment-headerKartik Agaram2019-05-1842-609/+560
|\ | | | | New syntax for segment headers