Skip to content

Commit

Permalink
Fix tests of SET String()
Browse files Browse the repository at this point in the history
  • Loading branch information
Aiee committed Dec 2, 2021
1 parent 1629bf4 commit 4f0326e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,8 @@ func TestServiceDataIO(t *testing.T) {
// test base type
{
query :=
"FETCH PROP ON person \"Bob\" YIELD person.name, person.age, person.grade," +
"FETCH PROP ON person \"Bob\" YIELD vertex as VertexID," +
"person.name, person.age, person.grade," +
"person.friends, person.book_num, person.birthday, " +
"person.start_school, person.morning, " +
"person.property, person.is_girl, person.child_name, " +
Expand All @@ -276,7 +277,8 @@ func TestServiceDataIO(t *testing.T) {
assert.Equal(t, "test_data", resp.GetSpaceName())
assert.False(t, resp.IsEmpty())
assert.Equal(t, 1, resp.GetRowSize())
names := []string{"person.name",
names := []string{"VertexID",
"person.name",
"person.age",
"person.grade",
"person.friends",
Expand Down
2 changes: 1 addition & 1 deletion result_set_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ func TestAsDedupList(t *testing.T) {
UVal: &nebula.NSet{Values: valList},
}
valWrap := ValueWrapper{&value, testTimezone}
assert.Equal(t, "[\"elem1\", \"elem2\", \"elem3\"]", valWrap.String())
assert.Equal(t, "{\"elem1\", \"elem2\", \"elem3\"}", valWrap.String())
assert.Equal(t, true, valWrap.IsSet())

res, _ := valWrap.AsList()
Expand Down

0 comments on commit 4f0326e

Please sign in to comment.