Don't indirect map values
We already have reference behaviour, so this is not necessary. This change highlighted fairly baroque architecture in mql that deserves some attention; the use of channels is somewhat confusing. Also rename LastResult to Result.
This commit is contained in:
parent
b89d4f392c
commit
a1453da84e
15 changed files with 59 additions and 57 deletions
|
|
@ -65,12 +65,12 @@ func TestIteratorsAndNextResultOrderA(t *testing.T) {
|
|||
expected[0] = "B"
|
||||
expected[1] = "D"
|
||||
actualOut := make([]string, 2)
|
||||
actualOut[0] = ts.NameOf(all.LastResult())
|
||||
actualOut[0] = ts.NameOf(all.Result())
|
||||
nresultOk := outerAnd.NextResult()
|
||||
if !nresultOk {
|
||||
t.Error("Expected two results got one")
|
||||
}
|
||||
actualOut[1] = ts.NameOf(all.LastResult())
|
||||
actualOut[1] = ts.NameOf(all.Result())
|
||||
nresultOk = outerAnd.NextResult()
|
||||
if nresultOk {
|
||||
t.Error("Expected two results got three")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue