Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
turbolent committed Jan 30, 2025
1 parent 181f62b commit 1c46ead
Showing 1 changed file with 32 additions and 5 deletions.
37 changes: 32 additions & 5 deletions interpreter/interpreter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@ func TestInterpreterOptionalBoxing(t *testing.T) {
t.Run("Bool to Bool?", func(t *testing.T) {
inter := newTestInterpreter(t)

value := inter.BoxOptional(TrueValue, &sema.OptionalType{Type: sema.BoolType})
value := inter.BoxOptional(
TrueValue,
&sema.OptionalType{Type: sema.BoolType},
)
assert.Equal(t,
NewUnmeteredSomeValueNonCopying(TrueValue),
value,
Expand All @@ -46,7 +49,10 @@ func TestInterpreterOptionalBoxing(t *testing.T) {
t.Run("Bool? to Bool?", func(t *testing.T) {
inter := newTestInterpreter(t)

value := inter.BoxOptional(NewUnmeteredSomeValueNonCopying(TrueValue), &sema.OptionalType{Type: sema.BoolType})
value := inter.BoxOptional(
NewUnmeteredSomeValueNonCopying(TrueValue),
&sema.OptionalType{Type: sema.BoolType},
)
assert.Equal(t,
NewUnmeteredSomeValueNonCopying(TrueValue),
value,
Expand All @@ -56,7 +62,14 @@ func TestInterpreterOptionalBoxing(t *testing.T) {
t.Run("Bool? to Bool??", func(t *testing.T) {
inter := newTestInterpreter(t)

value := inter.BoxOptional(NewUnmeteredSomeValueNonCopying(TrueValue), &sema.OptionalType{Type: &sema.OptionalType{Type: sema.BoolType}})
value := inter.BoxOptional(
NewUnmeteredSomeValueNonCopying(TrueValue),
&sema.OptionalType{
Type: &sema.OptionalType{
Type: sema.BoolType,
},
},
)
assert.Equal(t,
NewUnmeteredSomeValueNonCopying(
NewUnmeteredSomeValueNonCopying(TrueValue),
Expand All @@ -69,7 +82,14 @@ func TestInterpreterOptionalBoxing(t *testing.T) {
inter := newTestInterpreter(t)

// NOTE:
value := inter.BoxOptional(Nil, &sema.OptionalType{Type: &sema.OptionalType{Type: sema.BoolType}})
value := inter.BoxOptional(
Nil,
&sema.OptionalType{
Type: &sema.OptionalType{
Type: sema.BoolType,
},
},
)
assert.Equal(t,
Nil,
value,
Expand All @@ -80,7 +100,14 @@ func TestInterpreterOptionalBoxing(t *testing.T) {
inter := newTestInterpreter(t)

// NOTE:
value := inter.BoxOptional(NewUnmeteredSomeValueNonCopying(Nil), &sema.OptionalType{Type: &sema.OptionalType{Type: sema.BoolType}})
value := inter.BoxOptional(
NewUnmeteredSomeValueNonCopying(Nil),
&sema.OptionalType{
Type: &sema.OptionalType{
Type: sema.BoolType,
},
},
)
assert.Equal(t,
Nil,
value,
Expand Down

0 comments on commit 1c46ead

Please sign in to comment.