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 {
|
||||
descr string
|
||||
cmd string
|
||||
}{
|
||||
{
|
||||
descr: "returns filtered items 1",
|
||||
descr: "returns hidden items 1",
|
||||
cmd: `
|
||||
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 (eq $rs.First.pk "abc") "expected First.pk == abc"
|
||||
`,
|
||||
|
|
|
|||
Loading…
Reference in a new issue