Skip to content

Commit

Permalink
another Object test
Browse files Browse the repository at this point in the history
  • Loading branch information
zephyrtronium committed Feb 27, 2020
1 parent 905b23b commit 30e693c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions object_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -728,6 +728,10 @@ func TestObjectMethods(t *testing.T) {
"one": {`Object clone removeAllProtos`, PassSuccess()},
"ten": {`testValues manyProtosToRemove removeAllProtos`, PassSuccess()},
},
"removeAllSlots": {
"none": {`Object clone removeAllSlots`, PassSuccess()},
"one": {`testValues slotsObj := Object clone do(x := 0); testValues slotsObj clone do(x := 1) removeAllSlots x`, PassEqual(vm.NewNumber(0))},
},
}
for name, c := range cases {
t.Run(name, func(t *testing.T) {
Expand Down

0 comments on commit 30e693c

Please sign in to comment.