Skip to content

Commit

Permalink
Improve tests
Browse files Browse the repository at this point in the history
  • Loading branch information
zhulik committed Sep 16, 2024
1 parent 925dbc2 commit f69614b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions class_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ func TestClassDefineClassMethod(t *testing.T) {
g.Expect(err).ToNot(HaveOccurred())

testCallbackResult(g, value)

value, err = grb.LoadString("class Bar < Hello; end; Bar.foo")
g.Expect(err).ToNot(HaveOccurred())

testCallbackResult(g, value)
}

func TestClassDefineConst(t *testing.T) {
Expand Down Expand Up @@ -50,6 +55,11 @@ func TestClassDefineMethod(t *testing.T) {
g.Expect(err).ToNot(HaveOccurred())

testCallbackResult(g, value)

value, err = grb.LoadString("class Bar < Hello; end; Bar.new.foo")
g.Expect(err).ToNot(HaveOccurred())

testCallbackResult(g, value)
}

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

0 comments on commit f69614b

Please sign in to comment.