about summary refs log tree commit diff stats
path: root/cpp/.traces/get_address_indirect
Commit message (Collapse)AuthorAgeFilesLines
* 1194Kartik K. Agaram2015-04-241-0/+1
|
* 1184 - finally, concurrencyKartik K. Agaram2015-04-241-0/+1
|
* 1075Kartik K. Agaram2015-04-171-1/+1
|
* 1013Kartik K. Agaram2015-04-031-1/+1
|
* 997Kartik K. Agaram2015-03-301-9/+9
|
* 983 - arc 'integer-array' => c++ 'array:integer'Kartik K. Agaram2015-03-261-1/+1
|
* 968Kartik K. Agaram2015-03-241-4/+4
|
* 949 - paving the way for jumps to labelsKartik K. Agaram2015-03-171-8/+8
| | | | Addresses for reagents are now computed after all transforms.
* 941 - c++: basic break/loop conversionKartik K. Agaram2015-03-161-0/+5
|
* 940 - c++: some changes to instruction modelKartik K. Agaram2015-03-161-9/+9
|
* 832 - call-stack for C++ versionKartik K. Agaram2015-02-251-4/+4
| | | | | | | | | | These #defines and references now span many different layers. Let's see if the lack of encapsulation causes problems. Also interesting to run into a case where I need to modify a foundational layer and touch every single scenario/trace. Only alternative was to duplicate all the different layers that add instructions. Sign of problems with this model?
* 819Kartik K. Agaram2015-02-221-4/+2
|
* 817Kartik K. Agaram2015-02-221-0/+31
pan class="w"> add := func(binding, cmd string) { b, _ := ParseBinding(binding, cmd) bindings.Add(b) } add("abc", ":abc") add("cba", ":cba") add("foo", ":foo") add("bar", ":bar") test := func(input []KeyStroke, result int, output string) { _output, _ := ParseKeyStrokes(output) r, out := bindings.GetBinding(input) assert.Equal(result, int(r), fmt.Sprintf( "%s: Expected result %d, got %d", output, result, r)) assert.Equal(_output, out, fmt.Sprintf( "%s: Expected output %v, got %v", output, _output, out)) } test([]KeyStroke{ {tcell.KeyRune, 'a'}, }, BINDING_INCOMPLETE, "") test([]KeyStroke{ {tcell.KeyRune, 'a'}, {tcell.KeyRune, 'b'}, {tcell.KeyRune, 'c'}, }, BINDING_FOUND, ":abc") test([]KeyStroke{ {tcell.KeyRune, 'c'}, {tcell.KeyRune, 'b'}, {tcell.KeyRune, 'a'}, }, BINDING_FOUND, ":cba") test([]KeyStroke{ {tcell.KeyRune, 'f'}, {tcell.KeyRune, 'o'}, }, BINDING_INCOMPLETE, "") test([]KeyStroke{ {tcell.KeyRune, '4'}, {tcell.KeyRune, '0'}, {tcell.KeyRune, '4'}, }, BINDING_NOT_FOUND, "") add("<C-a>", "c-a") test([]KeyStroke{ {tcell.KeyCtrlA, 0}, }, BINDING_FOUND, "c-a") }