Fixed tests
This commit is contained in:
parent
b4cee0e2e5
commit
82478605db
|
|
@ -154,16 +154,16 @@ func TestModRS_Query(t *testing.T) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestModRS_Filter(t *testing.T) {
|
func TestModRS_Hide(t *testing.T) {
|
||||||
tests := []struct {
|
tests := []struct {
|
||||||
descr string
|
descr string
|
||||||
cmd string
|
cmd string
|
||||||
}{
|
}{
|
||||||
{
|
{
|
||||||
descr: "returns filtered items 1",
|
descr: "returns hidden items 1",
|
||||||
cmd: `
|
cmd: `
|
||||||
rs = rs:scan -table service-test-data
|
rs = rs:scan -table service-test-data
|
||||||
rs = rs:filter $rs 'pk="abc"'
|
rs = rs:hide $rs 'pk="abc"'
|
||||||
assert (len $rs) "expected len == 2"
|
assert (len $rs) "expected len == 2"
|
||||||
assert (eq $rs.First.pk "abc") "expected First.pk == abc"
|
assert (eq $rs.First.pk "abc") "expected First.pk == abc"
|
||||||
`,
|
`,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue