Skip to content

Commit

Permalink
Enhance test for neuronjson update.
Browse files Browse the repository at this point in the history
  • Loading branch information
DocSavage committed Feb 2, 2024
1 parent d21e8de commit cbbd1e2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions datatype/neuronjson/neuronjson_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1099,6 +1099,9 @@ func TestUserTime(t *testing.T) {
if value, found := neuron["string_time"]; !found || value == neuron1_number_time {
t.Error("Expected new string_time, got same time as before updating string field\n")
}
if value, found := neuron["string_user"]; !found || value != "user3" {
t.Errorf("Expected new string_user 'user3', got same user (%s) as before updating string field\n", value)
}
}

func TestAll(t *testing.T) {
Expand Down

0 comments on commit cbbd1e2

Please sign in to comment.